By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,851 Members | 1,074 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,851 IT Pros & Developers. It's quick & easy.

WebBrowser - how to intercept and modify HTTP requests?

P: n/a
Hello,
I would like to intercept WebBrowser's HTTP requests in order to be able to
supply custom login to the proxy server, as well as choose the right
certificate for several specific sites. I'm trying to use the stock
WebBrowser control in .NET v2.0 and have no idea how to extend it with
additional interfaces that are supported by the underlying AxWebBrowser
control.
Many thanks for any help concerning the suitable interfaces to handle this -
and how to implement them!
Feb 6 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Ondrej,

You really aren't able to do this with the webbrowser (the managed
wrapper or the unmanaged version). The hooks simply are not in there to
intercept the HTTP request that the web browser makes.

You are better off using the HttpWebRequest/HttpWebResponse classes to
perform the request/get the response, and then feeding the response into the
web browser control for rendering.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Ondrej Dobias" <On**********@discussions.microsoft.com> wrote in message
news:C2**********************************@microsof t.com...
Hello,
I would like to intercept WebBrowser's HTTP requests in order to be able
to
supply custom login to the proxy server, as well as choose the right
certificate for several specific sites. I'm trying to use the stock
WebBrowser control in .NET v2.0 and have no idea how to extend it with
additional interfaces that are supported by the underlying AxWebBrowser
control.
Many thanks for any help concerning the suitable interfaces to handle
this -
and how to implement them!

Feb 6 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.