in reply to download a file from a web page

Try adding noproxy => 1 to the constructor
my $mech = WWW::Mechanize->new( noproxy => 1 );

Replies are listed 'Best First'.
Re^2: download a file from a web page
by tony1234567893 (Initiate) on Aug 06, 2010 at 19:07 UTC
    Thanks for your feedback. That helps but I still do not get the file. I instead get the following error stack,

    LWP::UserAgent::_need_proxy: Not proxied
    LWP::Protocol::http::request: ()
    LWP::Protocol::collect: read 816 bytes
    LWP::Protocol::collect: read 840 bytes
    LWP::UserAgent::request: Simple response: Unauthorized

    Cheers!