tags:

views:

156

answers:

2

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 (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.

A: 

How about UrlMkSetSessionOption with INTERNET_OPTION_PROXY?

Sheng Jiang 蒋晟
Thank you. I'm going to use a webproxy, not a standard proxy, so I need a temperory Asynchronous Pluggable Protocol to handle it. But I have not found a temperory example for it yet.
Yale
A: 

Resolved. The Example is from: http://stackoverflow.com/questions/2013050/asynchronous-pluggable-protocols

Yale