Perl Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesPerl Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old June 4th, 2001, 04:21 AM
walshs walshs is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2000
Posts: 112 walshs User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
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
__________________
World Cup Football (Soccer) Forums
http://www.todayinsoccer.com

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPerl Programming > LWP and SSL


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT