in reply to Re^2: Downloads in firefox using perl WWW::Mechanize::Firefox
in thread Downloads in firefox using perl WWW::Mechanize::Firefox

Are you running this behind a proxy? Chances are, your firefox got stuck when trying to resolve the url you're downloading, with that proxy and failed to authenticate your credentials. Why not use WWW::Mechanize? I'm pretty sure it has some options for proxy authentication.
  • Comment on Re^3: Downloads in firefox using perl WWW::Mechanize::Firefox

Replies are listed 'Best First'.
Re^4: Downloads in firefox using perl WWW::Mechanize::Firefox
by pawaniitd (Initiate) on Mar 12, 2014 at 06:38 UTC

    I solved the problem. I realized that the $mech->get() function might be waiting for the page to load. But as i set Firefox to download the file automatically, there was no page being loaded. Thus, i set the function to not wait for response from browser and it worked.

    I thank you for helping me out. As this was my first post i made some error in reporting the problem and the code. Next time i will try to frame the question better.