Click here to Skip to main content
15,891,184 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hi!

How might you suggest that I detect the location of the proxy server, as configured in a PAC script?

Proxies can be configured in a number of ways. One way that many large companies use, is a script which is located on a server. This script is usually javascript (using a few non-standard functions). (this makes it impossible to "just execute the javascript")

When the browser needs to make a connection, it downloads and executes the script -- which then determines whether a proxy is required -- and which one to use.

Currently, I do this:
1) In a C# DLL -- I call "DefaultWebProxy"
2) From my C++ code, I load and remotely execute the DLL

This used to work, but is now causing a fatal crash... so bad, that my crash detection code cannot catch it. Seems like it might be a stack error? Not sure, as the debugger doesn't seem to have a problem with it.

Anyhow, I was wondering whether anyone had another way to do this.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900