Hi All,
My requirement is to extract html from any site ( HTTPS) and then parse
it for selective contents

I am able to connect to HTTP sites but when it comes to HTTPS , it is
throwing errors.

Code snippet for HTTP
-------------------

my $res;
use LWP::Request;
require LWP::UserAgent;
require Io::All;

 
 my $ua = LWP::UserAgent->new;
 $ua->timeout(10);
 $ua->env_proxy;
 $ua->proxy('http', 'http://proxy:80/');


 my $response = $ua->get('http://email.indiatimes.com');
 
 if ($response->is_success) {
   print $response->content;  # or whatever
 }
 else {
     die $response->status_line;
 }
-------------------------------------------------

This is working fine. Can any body help me with HTTPS?

Thanks 
Anas Perwez

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to