|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
LWP and SSL
I am using LWP and Crypt::SSLeay to grab a page with a https://
url , with most sites this works fine however with one partcular site the script times out all the time, if i put the URL into the browser window it takes a few secs, however via LWP the page is never displayed , I was wondering if this was something to do with this particualr sites SSL certificate , beaucse all the none SSL pages on the site are easily grabbed it is just the ones which have SSL security my code is below for you to have a look at: #!/usr/bin/perl -w print "Content-type: text/html\n\n"; use LWP::Simple; use HTTP::Request::Common qw(POST); use HTTP::Request::Common qw(GET); use LWP::UserAgent; my $URL = "https://xyz.com"; my $ua = new LWP::UserAgent; $ua->timeout(60); $ua->agent("AgentName/0.1 " . $ua->agent); my $req = new HTTP::Request GET => $URL; #$req->content_type('application/x-www-form-urlencoded'); # #$req->content("ContactTitle=Mr&ContactForenames=XtestX&ContactSurname=Walsh&ContactEmail=p\@start.co.uk&ContactEveTel=0161 123 4567&ContactDayTel=0161 123 4567&ContactHouseNo=272&ContactPostcode=OL16 4AP&PolicyIncepDate=01/06/2001&next="); my $res = $ua->request($req); $content2 = $ua ->request($req)->as_string; print $content2; ###-------------- end of code ------------------ If anyone can help i would be very grateful as this problem has me stumped Waseem |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Perl Programming > LWP and SSL |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|