Reputation: 979
Having dealt previously with WebView, it distinguishes between loadUrl() and postUrl().
But WebBrowser only has the Navigate() method which seems to be taking a different approach by providing (an optional?) postData parameter.
How does that work? Is there a tutorial out there (with sample code) that demonstrates how to use it?
Update1: I just found this tip, which doesn't really show any code but cautions in regard to using POST in WebBrowser.
Update2: This thread is better than nothing.
Upvotes: 3
Views: 474
Reputation: 9106
In Windows Forms' WebBrowser you post data by calling the form's InvokeMember("submit"):
If you know the ID of the form you would like to submit:
HtmlElement form = webBrowser1.Document.GetElementById("FormID");
if (form != null)
form.InvokeMember("submit");
Upvotes: 1