Sunny
2008-09-09 14:31:02 UTC
Hi,
I have a situation, in which the proxy.pac file is deployed locally on the
users' hard drives, and not on a web server. I.e. the IE setting for the
proxy.pac url looks like: file://C:/somefolder/proxy.pac
IE works OK with that setting, and succeeds to fetch and use the proxy, but
when I pass this to WinHttpGetProxyForUrl to get the real proxy server, the
function fails with error 12006 (ERROR_WINHTTP_UNRECOGNIZED_SCHEME).
According to the documentation found here:
http://msdn.microsoft.com/en-us/library/aa384097(VS.85).aspx
this error means: "The URL of the PAC file specified a scheme other than
"http:" or "https:".
So, what other function I can use to get the right proxy server for a given
url from a locally deployed proxy.pac?
Thanks
I have a situation, in which the proxy.pac file is deployed locally on the
users' hard drives, and not on a web server. I.e. the IE setting for the
proxy.pac url looks like: file://C:/somefolder/proxy.pac
IE works OK with that setting, and succeeds to fetch and use the proxy, but
when I pass this to WinHttpGetProxyForUrl to get the real proxy server, the
function fails with error 12006 (ERROR_WINHTTP_UNRECOGNIZED_SCHEME).
According to the documentation found here:
http://msdn.microsoft.com/en-us/library/aa384097(VS.85).aspx
this error means: "The URL of the PAC file specified a scheme other than
"http:" or "https:".
So, what other function I can use to get the right proxy server for a given
url from a locally deployed proxy.pac?
Thanks