Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
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.

Replies are listed 'Best First'.
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?
[Corion]: At least in my area, experience can beat most new tech anyway because most new tech is just a rehash of things abandoned in the 70s and we still have a lot of that ;)
[Corion]: choroba: Ah, that will be next Friday for $work ;) Drinking enough water is key ;))
[Corion]: But then, maybe that's just my experience with things, and maybe Hacker News is just people much younger who haven't seen more than one tech cycle...
[choroba]: s/water/bear/ and s/enough/too much/
[choroba]: beer
[choroba]: oh ok
[marto]: I crashed the ScotLUG Christmas night, having never actually been to ScotLUG
[choroba]: Corion yeah, I probably already told you about how Bjarne Stroustrup was asked whether he still watched the new tech trends and what really impressed him
[choroba]: His reply was "I watch them, but I haven't been impressed in the last 10 years. There's been nothing new". That was 2 years ago :)
[ambrus]: Ok, the docs is somewhat unclear. It does say that when an object is garbage collected, it will get cleaned up, and eventually can no longer get messages. It's not clear how long this takes, eg. I think it's kept alive until its queued events are handled

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (7)
As of 2016-12-09 10:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (150 votes). Check out past polls.