justinm1 has asked for the wisdom of the Perl Monks concerning the following question:
Anything I'm obviously doing wrong here? I've hit a wall with my little project due to this. Any help would be much appreciated...use strict; $ENV{HTTPS_PROXY} = 'my_proxy:8080'; use HTML::Parser; use WWW::Mechanize; use Crypt::SSLeay; use LWP::Debug qw(+); my $mech = WWW::Mechanize->new(); $mech->agent('Mozilla/5.0'); $mech->proxy(['https', 'http', 'ftp'], 'my_proxy:8080'); # http $mech->get("http://www.google.com"); # https #$mech->get("https://www.cia.gov"); my $c = $mech->content; print $c;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: WWW::Mechanize with https and a proxy
by almut (Canon) on Oct 10, 2007 at 00:35 UTC | |
by Gangabass (Vicar) on Oct 10, 2007 at 03:41 UTC | |
|
Re: WWW::Mechanize with https and a proxy
by Gangabass (Vicar) on Oct 10, 2007 at 03:37 UTC | |
by grinder (Bishop) on Oct 10, 2007 at 06:07 UTC | |
by Gangabass (Vicar) on Oct 10, 2007 at 07:54 UTC | |
by almut (Canon) on Oct 10, 2007 at 06:21 UTC | |
by justinm1 (Initiate) on Oct 10, 2007 at 14:09 UTC | |
by Anonymous Monk on Apr 03, 2009 at 15:22 UTC | |
by Gangabass (Vicar) on Oct 10, 2007 at 08:00 UTC |