I want to write a perl program to POST data to an SSL website and determine if it was successful, most likely based on the text returned by the website? The data to be posted is a registration number (8 digits).
I'm using Windows NT perl (not unix), and I've downloaded the LWP module, but It keeps reporting the following error code: Failed: 501 Protocol scheme 'https' is not supported.
Here is the sample program: (actual website addr changed to protect the innocent)
the rest of the code would consist of POSTing the actual data value, then GETting the response to see if it was successful.#!/usr/local/bin/perl use LWP::UserAgent; my $ua = LWP::UserAgent->new; my $req = HTTP::Request->new(GET => https://webbroker.tdwaterhouse.c +a/'); my $res = $ua->request($req); if ($res->is_success) { print $res->as_string; } else { print "Failed: ", $res->status_line, "\n"; }
Well, first off, I can't even access the SSL page. Does anyone know how to get this done using perl with module support for a Microsoft platform?
janitored by ybiC: <code> tags around example code, <tt> tags around error message
In reply to Post to SSL Site by booter
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |