Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks,
I have a problem while extracting a web page via proxy server using WWW::Mechanize.
I tried this one in LWP::UserAgent i got result but not in WWW::Mechanize.
I have a doubt where to give my proxy username and password?. Any can help me?
Note: I am using Window OS. so $mech->env_proxy(); is not working.
Here my try isThanks, PerlUseruse WWW::Mechanize; my $mech = WWW::Mechanize->new(); $mech->proxy(['http', 'ftp'], 'http://10.16.5.11:3030'); #$mech->env_proxy(); my $url = 'http://search.cpan.org'; my $response = $mech->get( $url ); my $html = $response->content; print $html;
Edited by planetscape - replaced <pre> tags with code tags
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Extracting Pages via proxy server using WWW::Mechanize
by Limbic~Region (Chancellor) on Jan 04, 2006 at 07:30 UTC | |
by Anonymous Monk on Jan 04, 2006 at 09:37 UTC | |
|
Re: Extracting Pages via proxy server using WWW::Mechanize
by reasonablekeith (Deacon) on Jan 04, 2006 at 09:49 UTC | |
|
Re: Extracting Pages via proxy server using WWW::Mechanize
by planetscape (Chancellor) on Jan 04, 2006 at 13:56 UTC | |
|
Re: Extracting Pages via proxy server using WWW::Mechanize
by tweetiepooh (Hermit) on Jan 04, 2006 at 10:47 UTC |