lamp has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl use LWP; use Data::Dumper; $ENV{HTTPS_CERT_FILE} = '/tmp/34556_cert.pem'; # $ENV{HTTPS_PKCS12_FILE} = '/tmp/34556_pkcs.pfx'; # $ENV{HTTPS_PKCS12_PASSWORD} = '34556'; my $url = 'https://sitename.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";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Handling SSL digital certificate using LWP
by zentara (Cardinal) on Jun 06, 2007 at 11:59 UTC | |
|
Re: Handling SSL digital certificate using LWP
by Anonymous Monk on Jun 06, 2007 at 06:39 UTC | |
by lamp (Chaplain) on Jun 06, 2007 at 10:51 UTC | |
by Herkum (Parson) on Jun 06, 2007 at 11:52 UTC |