I am trying to use the system. Windows.Forms.WebBrowser creates a request that sends both postal data and custom HTTP headers. I also want to set the user-agent of the request. How can I do this?
You can send postal data and additional HTTP headers using this surcharge. But to keep full control over the request form, including the user agent and pressing headers, that will send IE by default (if possible) so the interop is required that you only roll your own requests using HttpWebRequest And make the output better to output the browser in any way.
Here's some additional information to note that this is based on the COM base of the .NET WebBrowser control. For all but the most common scenario you need to go through the control of the IWebBrowser2 interface, which means that you are familiar with COM interop. It's not really fun, but it's not bad.
Comments
Post a Comment