[BangPypers] How to fetch a file from url

Nitin Kumar nitin.nitp at gmail.com
Sat Aug 11 08:19:38 CEST 2012


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<https://cdx-dev.cisco.com/ecm/view/objectId/090dca388000cbff/versionLabel/CURRENT>
",data)
>>> x.url
'https://abcd/autho/forms/CDClogin.html<https://sso-nprd.cisco.com/autho/forms/CDClogin.html>
'

-- 
Nitin K


More information about the BangPypers mailing list