Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: LWP https proxy trouble

by Anonymous Monk
on Jul 22, 2013 at 12:09 UTC ( #1045640=note: print w/ replies, xml ) Need Help??


in reply to LWP https proxy trouble

I just uploaded the LWP::Protocol::connect module to CPAN. This module adds the missing HTTP/CONNECT method support to LWP.

use LWP::UserAgent; $ua = LWP::UserAgent->new(); $ua->proxy('https', 'connect://proxyhost.domain:3128/'); $ua->get('https://www.somesslsite.com');
With this module you can use the regular IO::Socket::SSL implementation for LWP >=6.00.


Comment on Re: LWP https proxy trouble
Download Code
Re^2: LWP https proxy trouble
by Anonymous Monk on Oct 16, 2013 at 15:50 UTC
    Tried LWP::Protocol::connect to get over this problem: $userAgent->proxy('https',"connect://my-proxy:8080/"); 500 Bad arg length for Socket6::unpack_sockaddr_in6, length is 16, should be 28 Content-Type: text/plain Client-Date: Wed, 16 Oct 2013 15:46:07 GMT Client-Warning: Internal response Bad arg length for Socket6::unpack_sockaddr_in6, length is 16, should be 28 at /usr/lib/perl5/Socket6.pm line 282, <> line 1.
Re^2: LWP https proxy trouble
by Anonymous Monk on Oct 16, 2013 at 15:52 UTC
    (sorry about malformed comment)

    Tried LWP::Protocol::connect to get over this problem:

    $userAgent->proxy('https',"connect://my-proxy:8080/");

    500 Bad arg length for Socket6::unpack_sockaddr_in6, length is 16, sho +uld be 28 Content-Type: text/plain Client-Date: Wed, 16 Oct 2013 15:46:07 GMT Client-Warning: Internal response
    Bad arg length for Socket6::unpack_sockaddr_in6, length is 16, should be 28 at /usr/lib/perl5/Socket6.pm line 282, <> line 1.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1045640]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2015-07-04 10:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (59 votes), past polls