开发者

How to intercept each request of WebBrowser and forward to a webproxy?

I'm working on a WinForm WebBrowser and I want to forward each request to my web proxy and receive the response from the web proxy, the web proxy will forward the response directly to user, include headers and content.

I need change the URL and postdata for each request.

About the page navigate, I have implement the method in AxWebBrowser_beforeNavigate2 , but it is no use for images, js, css etc.

And now, perhaps using Asynchronous Pluggable Protocol开发者_JAVA技巧 (APP) and override IInternetSession::RegisterNameSpace is required, but I have no experience on it.

The Development Envrionment: .Net 2.0 , VS2008

Would someone give me some sample code for it ? thanks a lot.


How about UrlMkSetSessionOption with INTERNET_OPTION_PROXY?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜