greenphoenix has asked for the wisdom of the Perl Monks concerning the following question:
use LWP::UserAgent; use Crypt::SSLeay; $hdrs = new HTTP::Headers(Accept => 'text/plain', User-Agent => 'MegaB +rowser/1.0'); $url = new URI::URL('https://payflowlink.verisign.com/payflowlink.cfm' +); $url = new URI::URL('https://www.nodeworks.com'); $req = new HTTP::Request('GET', $url, $hdrs); $ua = new LWP::UserAgent; $resp = $ua->request($req); if ($resp->is_success) { print "did work. yay!"; print $resp->content; } else { print "didn't work.\n"; print $resp->message; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: CTX:SSLeay and https
by BeernuT (Pilgrim) on Mar 18, 2002 at 01:29 UTC | |
by Amoe (Friar) on Mar 18, 2002 at 17:43 UTC |