Hi,

    Can someone please forward me sample script to get connected to a
https server. I am behind the firewall.

Thanks
Rajesh

Note: forwarded message attached.


__________________________________________________
Do You Yahoo!?
Get Yahoo! Mail - Free email you can access from anywhere!
http://mail.yahoo.com/



 Hi,
 
  
  I need some help in https connection in perl.
  
  I am writing an API for command line interface to a web based form.
  I have downloaded and installed Crypt::SSLeay and Net::SSLeay
 modules.
   
 
  But when I run the following script to get a file from the https    
  
   server, I get an error saying  :
  
  " Failed: 500 Can't connect to halsted.ecg.csg.mot.com:443 (Bad file
  number)"
  
  
  My test script is :
  
  #! /usr/local/bin/perl5
  
         use LWP::UserAgent;
         use LWP::Protocol::https;
  
         my $ua = LWP::UserAgent->new;
         my $req = HTTP::Request->new(GET =>
  'https://halsted.ecg.csg.mot.com/cedat/index.html');
         my $res = $ua->request($req);
         if ($res->is_success) {
             print $res->as_string;
         } else {
             print "Failed: ", $res->status_line, "\n";
         }
  
  
  Could someone please help me out or give me some exapmles using
  https request.
  
  Regards
  Rajesh
  


__________________________________________________
Do You Yahoo!?
Send instant messages with Yahoo! Messenger.
http://im.yahoo.com/


Reply via email to