Browsing A Ntlm Protected Website Using Python With Python Ntlm
I have been tasked with creating a script that logs on to a corporate portal goes to a particular page, downloads the page, compares it to an earlier version and then emails a cert
Solution 1:
If the site is using NTLM authentication, the headers attribute of the resulting HTTPError should say so:
>>> try:
... handle = urllib2.urlopen(req)
... except IOError, e:
... print e.headers
...
<other headers>
WWW-Authenticate: Negotiate
WWW-Authenticate: NTLM
Post a Comment for "Browsing A Ntlm Protected Website Using Python With Python Ntlm"