(demonhunter) wrote in message news:<. com>...
> I am trying to fetch a web content using LWP and HTTP modules behind
> corp firewall. I set proxy server as shown in my internet explorer
> connection setup.
> $ua->proxy(['http', 'ftp'], 'http://autoproxy:9090');
> When i run the script, i got successful response, but the return
> content is not the webpage i requested at all. It shows something
> like:
> -------------------------------------------------
> function FindProxyForURL(url,host) {
> me=myIpAddress();
> if (me == "127.0.0.1") {return "DIRECT";}
> if (host == "127.0.0.1") {return "DIRECT";}
> if (host == "localhost") {return "DIRECT";}
> if (isPlainHostName(host)) {return "DIRECT";}
> .
> .
> .
> ---------------------------------------------------
Go back and look at the internet explorer connection setup again.
Where did you see 'http://autoproxy:9090'?
I suspect it was not the address of the proxy. I suspect was the URL
of the proxy autoconfiguration script. I further suppose that tje
HTTP server at autoproxy:9090 is very simplistic and just returns the
PAC in response to all GET requests.
AFAIK LWP doesn't understand PACs (because it would require a full
JavaScript subsystem). (Actually there are people working on
JavaScript for LWP so one day soon there may be PAC support).
To figure out the address of the proxy examine the PAC yourself and
look for a line that says:
return "PROXY host

ort";
This newsgroup does not exist (see FAQ). Please do not start threads
here.