Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

Re^2: Downloading files from a Secured Site - response to update

by imp (Priest)
on May 24, 2007 at 17:52 UTC ( #617292=note: print w/ replies, xml ) Need Help??

in reply to Re: Downloading files from a Secured Site
in thread Downloading files from a Secured Site

In response to your update:
You will need Crypt::SSLeay for https traffic. See the section on PKCS12 support.

Updated example:

use strict; use warnings; use WWW::Mechanize; use Crypt::SSLeay; $ENV{HTTPS_PKCS12_FILE} = 'certs/pkcs12.pkcs12'; $ENV{HTTPS_PKCS12_PASSWORD} = 'PKCS12_PASSWORD'; my $mech = WWW::Mechanize->new; $mech->credentials('user', 'pass'); my $response = $mech->get(''); die $response->status_line unless $response->is_success; printf "content-type: %s\n", $response->header('Content-Type'); my $data = $response->content;

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://617292]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2016-08-27 14:24 GMT
Find Nodes?
    Voting Booth?
    The best thing I ever won in a lottery was:

    Results (380 votes). Check out past polls.