It sounds like that is the issue.

Thanks!

Todd

-----Original Message-----
From: Wiggins d'Anconia [mailto:[EMAIL PROTECTED]]
Sent: Saturday, December 28, 2002 3:48 AM
To: Todd Farmer
Cc: [EMAIL PROTECTED]
Subject: Re: HTTPS in LWP


 From the docs (lwpcook):

"HTTPS
        URLs with https scheme are accessed in exactly the same way as
with http scheme, provided that an SSL interface module for LWP has been
properly installed (see the README.SSL file found in the libwww-perl
distribution for more details).  If no SSL interface is installed for
LWP to use, then you will get "501 Protocol scheme ’https’ is not
supported" errors when accessing such URLs."

Do you have an SSL interface installed?? Are there any errors returned?
It looks like you may want to test the $result for "is_success" before
attempting to print the content.  What does "status_line" return?

http://danconia.org

Todd Farmer wrote:
> 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]





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

Reply via email to