Basically, I can see two different possibilities.
First, you can send HTTP request using the page presented in the
WebBrower
control instance, using Javascript and Ajax:
http://en.wikipedia.org/wiki/Ajax_%28programming%29[
^].
A very convenient way would be using jQuery
.Ajax()
:
http://api.jquery.com/jquery.ajax[
^].
Also, you can send an HTTP request directly, outside of
WebBrowser
, using the instance of
System.Net.HttpWebRequest
:
http://msdn.microsoft.com/en-us/library/system.net.httpwebrequest%28v=vs.110%29.aspx[
^].
You can then receive HTTP response, parse it if it is required, and use this data to directly modify the DOM tree of your instance of
WebBrower
.
Unfortunately, you won't be always able to freely mix the requests from different instances. For example, if you perform authentication using
HttpWebRequest
instance, you cannot assume that the Web application treats your browser's client as authenticated; it will be a different session.
—SA