I'm trying to figure out the best way to submit web forms via a .Net application (might be a desktop app, but could be a Web Service).
Right now, I am able to use the WebBrowser control to navigate to a page and then call the Document.Forms etc. properties to set form fields and submit the form. One peculiarity of this approach is that the WebBrowser object doesn't seem to update to reflect the resulting page after the submit. In any case, I'm not even sure if WebBrowser control is the best approach. Been trying to play around with WebClient, and HttpWebRequest/HttpWebResponse. I'd like to have maximum flexibility to manipulate forms (e.g. set GET or POST, set field values, etc.) and parse web pages. Perhaps I need a need a combination of approaches? I have VS2008 and .NET 3.5. How should I approach this problem?
