in reply to Re: Issue with LWP:UserAgent use Proxy
in thread Issue with LWP:UserAgent use Proxy

I change the Line

my $req = HTTP::Request->new(GET =>'http://google.de');

to

my $req = HTTPS::Request->new(GET=>'https://google.de');

but it is still the same...

Replies are listed 'Best First'.
Re^3: Issue with LWP:UserAgent use Proxy
by Anonymous Monk on May 06, 2014 at 23:04 UTC
    unlikely story :)
    #!/usr/bin/perl -- use strict; use warnings; use LWP; my $ua = LWP::UserAgent->new; $ua->show_progress( 1 ); $ua->proxy( [ qw{ http https } ] => q{http://127.6.6.6} ); $ua->get( q{http://example.com} ); __END__ ** GET http://example.com ==> 500 Can't connect to 127.6.6.6:80 (10061 +) (2s)