Either you are behind a proxy and hence you need to supply WWW::Mechanize (and LWP::UserAgent) with the appropriate data, or you are behind a transparent proxy which dislikes your new headers.

If you are behind a normal proxy, you can read the proxy settings from your browser settings and set $ENV{HTTP_PROXY} to the appropriate value, either from the shell or in a BEGIN block of your script. You can check whether your browser is configured for a proxy by asking your network administrator or inspecting your browser's connection settings.

If you are behind a transparent proxy, you're out of luck. You can check that by removing the headers and seeing whether you can reach the outside world then. You can check whether your machine is behind a transparent proxy by asking your network administrator otherwise.


In reply to Re^5: How do I add headers using WWW::Mechanize? by Corion
in thread How do I add headers using WWW::Mechanize? by ppowell

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • 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:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.