Python seems to have partially solved my problems. In particular, the requests-ntlm package works. So far, I’ve done this:
- sudo apt-get install python-pip
- sudo pip install requests_ntlm
- Follow the instructions on the requests_ntlm page in the Python interpreter:
>>> import requests >>> from requests_ntlm import HttpNtlmAuth >>> requests.get("http://www.intranet.ou.nl", auth=HttpNtlmAuth('pwo\\XXX', 'mypassword'))
Eeeks! We get a 200! Most likely, it’s an HTTP 200 status code – i.e. here’s the goods!! Darnit, now all I need is to get my hands at the result. (r=requests.get("...") and r.text was sufficient)