Get and Post methods

jamie_pattison

Well-known member
Joined
Sep 9, 2008
Messages
116
Programming Experience
Beginner
I have a form with a web browser control. I would like to do some Post and Get methods but typing in webbrowser1.*** doesnt show any methods of such - how could i do this?

Any articles to start with this would be great.

Thanks
 
That's not how the WebBrowser works. You call its Navigate method and it navigates to that URL using the GET method. If you want to do a POST then the user will have to submit the form using the button on the web form itself, just like in IE, Firefox or any other web browser.

If you want to perform a POST yourself then you will have to use a WebClient (maybe) or an HttpWebRequest and do it in code. You can then assign the result to the WebBrowser's DocumentText property and it will be rendered.
 
Back
Top