I have written a Script which only downloads the content of a https page. On server side- via the terminal it works. On the Webpage (client side) it doesn't work.

Now with the portable version of Strawberry Perl 64 bit, I received the error msg when opening the webpage:

Can't load 'D:/Strawberry_Perl/perl/vendor/lib/auto/Net/SSLeay/SSLeay. +xs.dll' for module Net::SSLeay: load_file:called modul not found at D +:/Strawberry_Perl/perl/lib/DynaLoader.pm line 193. at D:/Strawberry_P +erl/perl/vendor/lib/IO/Socket/SSL.pm line 19. Compilation failed in r +equire at D:/Strawberry_Perl/perl/vendor/lib/IO/Socket/SSL.pm line 19 +. BEGIN failed--compilation aborted at D:/Strawberry_Perl/perl/vendor +/lib/IO/Socket/SSL.pm line 19. Compilation failed in require at D:/St +rawberry_Perl/perl/vendor/lib/Net/HTTPS.pm line 25. Can't load 'D:/St +rawberry_Perl/perl/vendor/lib/auto/Crypt/SSLeay/SSLeay.xs.dll' for mo +dule Crypt::SSLeay: load_file:called modul not found at D:/Strawberry +_Perl/perl/lib/DynaLoader.pm line 193. at D:/Strawberry_Perl/perl/ven +dor/lib/Net/SSL.pm line 20. Compilation failed in require at D:/Straw +berry_Perl/perl/vendor/lib/Net/SSL.pm line 20. Compilation failed in +require at D:/Strawberry_Perl/perl/vendor/lib/Net/HTTPS.pm line 29. C +ompilation failed in require at D:/Strawberry_Perl/perl/vendor/lib/LW +P/Protocol/https.pm line 8. Compilation failed in require at D:/Straw +berry_Perl/perl/vendor/lib/LWP/Protocol.pm line 68. .

I read that some people assumed a compartiblity problem, so I installed the PDL edition of Strawberry Perl likewise and the receiving error msg on the webpage is now:

 Can't locate object method "new" via package "LWP::Protocol::https::Socket" at D:/PerlPDL/perl/vendor/lib/LWP/Protocol/http.pm line 31.

of course i installed the modul via "cpan LWP::Protocol::https and cpan LWP::Protocol::https::Socket and LWP::Protocol"



In both tries the script is the same:
!d:\Strawberry_Perl\perl\bin\perl.exe use strict; use warnings; use LWP::Protocol; use LWP::UserAgent; use Mozilla::CA; use CGI qw(:standard); my $q= new CGI; print $q->header; my $B = new LWP::UserAgent (keep_alive => 1, agent => 'Mozilla/5.0', c +ookie_jar =>{}); print qq(@INC); my $proxy = 'http://vproxy.ab.de:80'; my $Skript = "http:\/\/$ENV{SERVER_NAME}$ENV{SCRIPT_NAME}"; $B->proxy( ['http', 'https'] => $proxy ); $ENV{HTTPS_PROXY} = $proxy; $ENV{'PERL_LWP_SSL_CA_PATH'} = "D:\\CA_certs\\input\\certs"; $B->ssl_opts( SSL_ca_file => Mozilla::CA::SSL_ca_file() ); $B->ssl_opts( verify_hostname => 0 ); my $GET = $B->get('https://moz.com ')->content; print $GET, "<br>";

In reply to Download of https Pages by amitsq

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.