Https errors

lavoir@total.net
Wed, 05 May 1999 14:08:38 -0400


Hi All,

I have searched the archive for this mailling list and have found similar
post without answers. So I will post it myself and hope someone will be
able to help. If anyone knows of further documentation on this, please do
forward URL's.

I am trying to do a HTTPS POST with LWP and for some reason, it fails. Like
everyone one else that posted this question, a simple HTTP request works no
problem. Please find sample code found in the documentation and debug
results below:

----------------------------------------------------------------
#!/usr/local/bin/perl
  # Create a user agent object
  use LWP::Debug qw(+);
  use LWP::UserAgent;
  $ua = new LWP::UserAgent;
  $ua->agent("AgentName/0.1 " . $ua->agent);

  # Create a request
  my $req = new HTTP::Request POST=>
'https://testshop.someHost.com/cgi-bin/test';
  $req->content_type('application/x-www-form-urlencoded');
  $req->content('test=ok');

  # Pass request to the user agent and get a response back
  my $res = $ua->request($req);

  # Check the outcome of the response
  if ($res->is_success) {

      print $res->content;
  } else {
      print "Bad luck this time\n";
  }
 
---------------------------------------------------------

LWP::UserAgent::new: ()
LWP::UserAgent::request: ()
LWP::UserAgent::simple_request: POST
https://testshop.bellxperttest.com/cgi-bin/test
LWP::UserAgent::_need_proxy: Not proxied
LWP::UserAgent::request: Simple result: Not Implemented
Bad luck this time

Thanks,
Ren



_____________________________________________________________________________
Rene Lavoie | System Analyst/Prog.| Web Development | rene.lavoie@emergis.com

BCE Emergis Inc.
Phone: (514) 868-2200 X. 3692
Fax: (514) 398-0764
http://www.emergis.com

http://www.mpact.ca
http://www.total.net
http://www.isdnwire.com

" In theory, there is no difference between theory and practice. But, in
practice, there is. "