[BangPypers] How to fetch a file from url

Noufal Ibrahim noufal at nibrahim.net.in
Sat Aug 11 08:15:57 CEST 2012

Nitin Kumar <nitin.nitp at gmail.com> writes:

> Hi,
> I am trying to download a file from url. but every time it redirecting to
> login url only even if i provide username and password?

Hard to say. A missing cookie perhaps or maybe some field that prevents
the app from redirecting back to the login page is missing. 

You should perform a successful login and fetch in a browser and inspect
the transaction using something like firebug. Then replicate the
scenario in your own script. 



More information about the BangPypers mailing list