Re: [BangPypers] How to fetch a file from url

2012-08-11 Thread Senthil Kumaran
Use the redirected URL directly ( if you trust it) with the Basic or Digest Auth support with urllib2. Redirecting with authentication is not a correct thing to do on the Server Part. urllib2 will not send the post headers in such cases. HTH, Senthil On Fri, Aug 10, 2012 at 11:19 PM, Nitin Kumar

Re: [BangPypers] How to fetch a file from url

2012-08-10 Thread Noufal Ibrahim
Nitin Kumar 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.

[BangPypers] How to fetch a file from url

2012-08-10 Thread Nitin Kumar
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? ex: import urllib >>> x = >>> urllib.urlopen("https://abcd/versionLabel/CURRENT