Mageia Bugzilla – Attachment 640 Details for
Bug 1614
LWP 6.02 no longer supports the https:// protocol due to a missing package
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
Script used to test perl https access.
perlhttps (text/plain), 329 bytes, created by
Dave Hodgins
on 2011-07-08 01:46:05 CEST
(
hide
)
Description:
Script used to test perl https access.
Filename:
MIME Type:
Creator:
Dave Hodgins
Created:
2011-07-08 01:46:05 CEST
Size:
329 bytes
patch
obsolete
>#!/usr/bin/perl >use LWP 5.64; >my $url = 'https://www.paypal.com/'; # Yes, HTTPS! >my $browser = LWP::UserAgent->new; >my $response = $browser->get($url); >die "Error at $url\n ", $response->status_line, "\n Aborting" > unless $response->is_success; >print "Whee, it worked! I got that ", >$response->content_type, " document!\n";
#!/usr/bin/perl use LWP 5.64; my $url = 'https://www.paypal.com/'; # Yes, HTTPS! my $browser = LWP::UserAgent->new; my $response = $browser->get($url); die "Error at $url\n ", $response->status_line, "\n Aborting" unless $response->is_success; print "Whee, it worked! I got that ", $response->content_type, " document!\n";
View Attachment As Raw
Actions:
View
Attachments on
bug 1614
: 640