Hello to all! I am using LWP to get simple content (http) via local proxy, but when I get content with via https protocol I get error:  https://kuix.de/: Can't connect to kuix.de:443 (10051)

My script

use strict; use warnings; use feature qw (say switch); use LWP; $ENV{PERL_LWP_SSL_VERIFY_HOSTNAME} = 0; $ENV{HTTPS_DEBUG} = 1; #my $url = 'http://google.com'; my $url = 'https://kuix.de/'; my $ua = LWP::UserAgent->new(); $ua->agent('User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:18 +.0) Gecko/20100101 Firefox/18.0'); $ua->show_progress('true'); $ua->ssl_opts ( verify_hostname => '0', SSL_ca_file => 'CA.crt'); + $ua->proxy( ['http'], 'http://user:pass@host:port' ); my $req = HTTP::Request->new( 'GET' => $url ); my $res = $ua->request($req); $res->is_success or die "$url: ", $res->message, "\n"; say $res->content;

Please help me! Sorry but I am new perl user


In reply to LWP https proxy trouble by Pazitiff

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.