Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

writing a client to access a https site.

Status
Not open for further replies.

cb49747

MIS
Apr 23, 2002
181
0
0
US
Hello I'm trying to write a simple client to access a https site, here is what I got.

#!/usr/local/bin/perl -w
use LWP::Simple;
$url = "$content = get($url);
print $content;

If I run the same program to a http site it works, but not to a https site. I believe I must have to add a certificate or something, any help point me in the right direction would be appreciated.

Thanks

Chris Burger
 
May sound like an obvious question... have you loaded content into the https directories?

There's always a better way. The fun is trying to find it!
 
You cannot access HTTPS sites with just LWP alone, you need a module. I cannot remember the name off the top of my head but you can NOT install it on Windows. I ran into this problem 2 months and gave up.

cgimonk
 
cgimonk,

Thanks for your help. After some more diging I figured I needed to get another module, unfortunetly I have been unable to find a https module for LWP. If you remember what it is, or if anyone knows I would apprieciate it if you could let me know.

Thanks

Chris Burger
 
ftp://fr2.rpmfind.net/linux/contrib/noarch/noarch/perl-Net-SFTP-0.05-1.noarch.rpm
 
I looked back at what it was, it requires OpenSSL to be running in order to attach yourself to an HTTPS site.

cgimonk
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top