I'm having trouble getting a response using HTTPS in LWP.  I get content
from the HTTP server, but when I change the URL to https://... it does not
return anything.  Here's the code:

#!/usr/bin/perl

use CGI;
use LWP::UserAgent;
use HTTP::Request;
use HTTP::Headers;
my $q = new CGI;

my $em = new CGI;
$em->delete_all;
$em->param( userid => "TEST" );
$em->param( password => "TESTING" );
my $pass_path = $em->query_string;

my $agent = new LWP::UserAgent;
my $req = new HTTP::Request ("POST",
"https://www.testsite.com/cgi-bin/test.cgi";);
$req->header('Accept' => 'text/html');
$req->content ($pass_path);
my $result = $agent->request( $req );
print $result->content;

Any pointers would be greatly appreciated.

Thanks!

Todd



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to