471,337 Members | 1,156 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,337 software developers and data experts.

WebBrowser - how to intercept and modify HTTP requests?

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
1 7119
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.

Similar topics

2 posts views Thread by Christopher Benson-Manica | last post: by
13 posts views Thread by yawnmoth | last post: by
4 posts views Thread by rzimerman | last post: by
8 posts views Thread by kikapu | last post: by
3 posts views Thread by decepti0n | last post: by
4 posts views Thread by K | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.