line_noise has asked for the wisdom of the Perl Monks concerning the following question:
I'm trying to pass https requests through a squid proxy
with LWP::UserAgent and having no luck. The relevant code
looks something like this.
Any suggestions? Does the proxy method not know that it
needs to send a CONNECT and wait for a RC200 from the proxy
so it can build a tunnel to the actual server? What gives?
Thanks.
with LWP::UserAgent and having no luck. The relevant code
looks something like this.
At which I get back a response from the proxy server that says:$PROXY_IP = "proxy.mydomain.com:8080"; $ua = LWP::UserAgent->new; $ua->proxy(['http', 'https'], "http://$PROXY_IP/"); $URL = "https://www.somedomain.com/index.htm"; $request = HTTP::Request->new('GET', "$URL"); $response = $ua->request($request);
the last of which I find a bit insulting...The following error was encountered: Unsupported Request Method and Protocol Squid does not support all request methods for all access protocols. For example, you can not POST a Gopher request.
Any suggestions? Does the proxy method not know that it
needs to send a CONNECT and wait for a RC200 from the proxy
so it can build a tunnel to the actual server? What gives?
Thanks.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: https through a proxy
by igorash (Initiate) on May 05, 2001 at 01:10 UTC | |
by line_noise (Sexton) on May 05, 2001 at 01:26 UTC | |
Re: https through a proxy (igorash++, Crypt::SSLeay)
by ybiC (Prior) on May 05, 2001 at 01:12 UTC | |
(jeffa) Re: https through a proxy
by jeffa (Bishop) on May 05, 2001 at 00:47 UTC | |
Re: https through a proxy
by strredwolf (Chaplain) on May 05, 2001 at 03:51 UTC | |
Re: https through a proxy
by line_noise (Sexton) on May 05, 2001 at 01:01 UTC |
Back to
Seekers of Perl Wisdom