Hey all, you may or may not been aware that to my recent problems i got recommend to reinstall perl ActiveState. Since i couldn't do that (due to old programs which need to keep running for the company), i installed portable Strawberry Perl 5.26.1.1 64bit on Windows Server 2008 R2. My knowledge about Server matters is restricted, but following issues came up:

1) I opened up an own application pool on the IIS-Manager for strawberry perl applications. Always when a module is not known or when trying to set a path a library (see code), it totally crashes and close down the pool with the msg:  HTTP Error 503. The service is unavailable. Any idea why and how to prevent that?

2)Furthermore there is a proxy installed. So when using LWP-requests, i can not get content of https pages. The following code receives the following error msgs, which is strange since the demanded module is installed!

LWP will support https URLs if the LWP::Protocol::https module is inst +alled.
Update: /running the script via windows shell:
can't connect to moz.com:443, the given host is not known at D:/Straw +berry_Perl/perl/vendor/lib/LWP/Pr otocol/http.pm line 46.
Code:
#!d:\Strawberry_Perl\perl\bin\perl.exe use strict; use warnings; use LWP::Protocol; use LWP::UserAgent; use Mozilla::CA; use CGI qw(:standard); use CGI::Carp 'fatalsToBrowser'; #use lib 'd:\\Strawberry_Perl\\perl\\vendor\\lib\\LWP\\Protocol\\'; #a +nother attempt which failed #use https; my $q= new CGI; print $q->header; my $B = new LWP::UserAgent (keep_alive => 1, agent => 'Mozilla/5.0', c +ookie_jar =>{}); my $proxy = 'http://localhost:5800'; my $Skript = "http:\/\/$ENV{SERVER_NAME}$ENV{SCRIPT_NAME}"; my $Server = "http:\/\/$ENV{SERVER_NAME}"; $B->proxy('http', $proxy); $ENV{HTTPS_PROXY} = $proxy; $ENV{'PERL_LWP_SSL_CA_PATH'} = "D:\\cert\\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;
Did I install Strawberry Perl right? I downloaded the portable version, transfered to the server, unpacked it, executed the bash file and then just set the path to the perl file ("hello world" script works)

In reply to Server Issues and https-Requests 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.