LWP issuing two CONNECT requests when only one is asked for?by mickey (Acolyte)
|on Apr 04, 2005 at 16:15 UTC||Need Help??|
mickey has asked for the
wisdom of the Perl Monks concerning the following question:
I'm trying to access an HTTPS website from behind a proxy server using LWP::UserAgent and Crypt::SSLeay.
My test script looks like this:
This returns a "403 Forbidden" error from the proxy. When I watch the transaction with Ethereal, though, I get the following:
It looks like the first CONNECT request is working fine, but LWP::UserAgent is actually sending two CONNECT requests when I've only asked it to send one, and the second request is failing because it's trying to connect directly to the proxy rather than to the remote server.
Any thoughts on why this would be happening?