Proxy server c++ programming?

I made a application in windows forms application and it's a web browser. I'd like to get it to work with a proxy built into the application. Is there a way to do this?

Comments

  • Not the way you mean. A proxy is a server that's running on a different computer than the browser - one that's not blocked from sites the browser's computer is blocked from. Running the proxy on the same computer as the browser is like wondering why your tire is flat when you filled the tank in the back seat.

  • You can't change the proxy settings directly through the web browser control, but since that control is really just Internet Explorer, you can change the IE settings and the change will take effect in your control.

    See the link below for code that does just that. It's written in C#, not VB, but should be fairly easy to convert (or you can Google for the VB equivalent, it's probably out there somewhere).

    Bear in mind that if you do that, your proxy will handle ALL IE requests, not just the requests from your application.

    Despite what Colanth says, there are legitimate reasons to run a proxy on localhost (tracing HTTP traffic being one common reason). However, if you are trying to create an IP hiding proxy (the common reason for running a proxy), then Colanth is quite right...you can't do that on your local machine.

    What is it you are really trying to do?

Sign In or Register to comment.