I am new to SSL and I've made a simple shopping cart that works great in http:// but I can't seem to run it in the SSL that's installed and in which I can browse the rest of the site just fine in https://. However, when I go to the perl script directory I get an error: 404
    Not Found
    The requested URL /cgi-bin/shop.cgi was not found on this server.

I've used the super seaches to find out how possible causes and so far I've learned I need to use a module or two allow https to allow the execution. Node 348806 Seems somewhat helpfull, and I've tried implementing parts of the code to mine, yet no luck. So I still don't get it.

Searching my server for SSL or HTTPS installed modules, I've found only these:
LWP::Protocol::https
LWP::Protocol::https10
URI::https
Net::HTTPS
Crypt::SSLeay     «sounds usefull
Net::SSLeay::Handle     «sounds usefull
Net::SSLeay     «sounds usefull
Net::SSL

Can someone please show me some examples? Or if you think it's worth installing a new module on the server, I can try and request it from the providers...

I'm accessing the file directly and also through SHTML
Here's the top portion of my code if it helps:

#!/usr/bin/perl use CGI ':standard'; use CGI::Carp "fatalsToBrowser"; use LWP::UserAgent; use LWP::Protocol::https; my $ua = LWP::UserAgent->new; my $request = POST 'https://myurl.com/cgi-bin/shop.cgi', [ UserID => $uid, Password => $upass, ]; if (!param()) { gofresh(); } elsif (param('start') =~ /mid/) { gofresh(2); } elsif (param('start') =~ /img/) { viewimg(); } elsif (param('start') =~ /checkout/) { checkout(); } elsif (param('start') =~ /addcart/) { $itnum=param('itnum'); &addtocart($itnum); print redirect( "../shop/#$itnum" ); } elsif (param('start') =~ /remove/) { $itnum=param('itnum'); &remove(param('itnum')); print redirect( "../shop/#$itnum" ); } elsif (param('start') =~ /shopdone/) { &addtocart(param('itnum')); paybill(); } elsif (param('start') =~ /paybill/) { paybill(); } else { print redirect( "../shop/" ); exit; }
Also most of the documentation on CPAN is over my head and they seem to have changed some of their setup... Thank you for your help in advance. JB

In reply to https://script not found on port 443 by JayBee

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.