I am trying to use a proxy with mechanize, I understand that methods used in LWP::Useragent should work with WWW::Mechanize, so far, I only get the first page or get an "uninitialised value" when I try to get any page with a proxy with WWW::Mechanize, or only get the first page and no more succeeding pages.
I understand that for proxies with LWP::Useragent
my $ua = LWP::Useragent->new; $ua->proxy('http' => 'proxy'); I have tried it with Mechanize as
my $mech = WWW::Mechanize->new(); $mech->proxy('http','proxy'); The pages are not https, and I do not understand why the same proxy works fine in ie6/firefox but not with any perl script, I did try LWP::Debug qw(+ -conns) and received the error message "simple resonse not implemented", I also used use LWP::Useragent::ProxyAny, and the method set_proxy_by_name(...); for LWP and for Mechanize, still the same error msg, I am out of ideas as to how to getting a proxy to work with any perl script!
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.