cURL / Mailing Lists / curl-users / Single Mail

curl-users

RE: WPAD, PAC files, and FindProxyForURL()

From: Roth, Kevin P. <kproth_at_mapllc.com>
Date: Mon, 7 Feb 2005 08:49:53 -0500

If my memory serves me correctly, I've been able to successfully insert
alert() statements inside the FindProxyForURL() function to serve as
temporary "debugging" statements. You could also add code to write
something to a temp file or to your event viewer (if on windows). Have
it display the URL being looked up and the response as calculated by the
FindProxyForURL() method and you're all set.

- Kevin

On Fri, 4 Feb 2005 13:33:41 -0800, Edward Chan <echan_at_macromedia.com>
wrote:
> This is probably not the right place to ask this, but I'm hoping
somebody on
> this list might know about this. I'm trying to use WPAD (Web Proxy
> Auto-Discovery Protocol). I've set up a PAC (Proxy
Auto-Configuration)
> file, and set my browser to auto detect proxy. The browser is able to
find
> the PAC file by using WPAD, and I guess executes the FindProxyForURL()
> function defined in the PAC file. But I would like to be able to call
this
> function from my JavaScript embedded in my HTML page to see what this
> function returns. Is this possible?
Received on 2005-02-07