{"action":"created","issue":{"url":"https://api.github.com/repos/requests/requests-ntlm/issues/59","labels_url":"https://api.github.com/repos/requests/requests-ntlm/issues/59/labels{/name}","comments_url":"https://api.github.com/repos/requests/requests-ntlm/issues/59/comments","events_url":"https://api.github.com/repos/requests/requests-ntlm/issues/59/events","html_url":"https://github.com/requests/requests-ntlm/issues/59","id":93788723,"number":59,"title":"IndexError: list index out of range","user":{"login":"sfesfizh","id":13018569,"avatar_url":"https://avatars.githubusercontent.com/u/13018569?v=3","gravatar_id":"","url":"https://api.github.com/users/sfesfizh","html_url":"https://github.com/sfesfizh","followers_url":"https://api.github.com/users/sfesfizh/followers","following_url":"https://api.github.com/users/sfesfizh/following{/other_user}","gists_url":"https://api.github.com/users/sfesfizh/gists{/gist_id}","starred_url":"https://api.github.com/users/sfesfizh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sfesfizh/subscriptions","organizations_url":"https://api.github.com/users/sfesfizh/orgs","repos_url":"https://api.github.com/users/sfesfizh/repos","events_url":"https://api.github.com/users/sfesfizh/events{/privacy}","received_events_url":"https://api.github.com/users/sfesfizh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-08T13:26:11Z","updated_at":"2015-07-08T13:45:43Z","closed_at":null,"body":"Hi!\r\n\r\nInstalled:\r\n`user@note:~> pip freeze`\r\n`python-ntlm3==1.0.2`\r\n`requests==2.7.0`\r\n`requests-ntlm==0.1.0`\r\n\r\nMy company use web-filter \"Websense\" with proxy connection and I wrote script for NTLM authentication on \"websense\":\r\n\r\n`#!/usr/bin/python`\r\n\r\n`import requests`\r\n`from requests_ntlm import HttpNtlmAuth`\r\n\r\n`ip = x.x.x.x`\r\n`host = 'hostname'`\r\n`username = 'domain\\user'`\r\n`password = 'password'`\r\n`session = requests.Session()`\r\n`session.auth = HttpNtlmAuth(username,password,session)`\r\n`session.get('http://x.x.x.x:15880/websense?action=login&hostname='+host+'&persistent=1&domain=DOMAIN&ip='+ip+'&ntlm_sess_sec=1')`\r\n\r\nBut when launch the script I get following error:\r\n`user@note:~> ./websense.py`\r\n`Traceback (most recent call last):`\r\n`  File \"./websense.py\", line 25, in <module>\r\n    session.get('http://x.x.x.x:15880/websense?action=login&hostname='+host+'&persistent=1&domain=DOMAIN&ip='+ip+'&ntlm_sess_sec=1')`\r\n`  File \"/usr/lib/python2.7/site-packages/requests/sessions.py\", line 477, in get\r\n    return self.request('GET', url, **kwargs)`\r\n`  File \"/usr/lib/python2.7/site-packages/requests/sessions.py\", line 465, in request\r\n    resp = self.send(prep, **send_kwargs)`\r\n`  File \"/usr/lib/python2.7/site-packages/requests/sessions.py\", line 579, in send\r\n    r = dispatch_hook('response', hooks, r, **kwargs)`\r\n`  File \"/usr/lib/python2.7/site-packages/requests/hooks.py\", line 41, in dispatch_hook\r\n    _hook_data = hook(hook_data, **kwargs)`\r\n`  File \"/usr/lib/python2.7/site-packages/requests_ntlm/requests_ntlm.py\", line 125, in response_hook\r\n    'Authorization', r, kwargs)`\r\n`  File \"/usr/lib/python2.7/site-packages/requests_ntlm/requests_ntlm.py\", line 97, in retry_using_http_NTLM_auth`\r\n`    ))[0].strip()`\r\n`IndexError: list index out of range`\r\n\r\nNote, when I have installed this configuration:\r\n`python-ntlm3==1.0.2`\r\n`requests==2.2.1`\r\n`requests-ntlm==0.1.0`\r\nit works fine"},"comment":{"url":"https://api.github.com/repos/requests/requests-ntlm/issues/comments/119583470","html_url":"https://github.com/requests/requests-ntlm/issues/59#issuecomment-119583470","issue_url":"https://api.github.com/repos/requests/requests-ntlm/issues/59","id":119583470,"user":{"login":"sfesfizh","id":13018569,"avatar_url":"https://avatars.githubusercontent.com/u/13018569?v=3","gravatar_id":"","url":"https://api.github.com/users/sfesfizh","html_url":"https://github.com/sfesfizh","followers_url":"https://api.github.com/users/sfesfizh/followers","following_url":"https://api.github.com/users/sfesfizh/following{/other_user}","gists_url":"https://api.github.com/users/sfesfizh/gists{/gist_id}","starred_url":"https://api.github.com/users/sfesfizh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sfesfizh/subscriptions","organizations_url":"https://api.github.com/users/sfesfizh/orgs","repos_url":"https://api.github.com/users/sfesfizh/repos","events_url":"https://api.github.com/users/sfesfizh/events{/privacy}","received_events_url":"https://api.github.com/users/sfesfizh/received_events","type":"User","site_admin":false},"created_at":"2015-07-08T13:45:42Z","updated_at":"2015-07-08T13:45:42Z","body":"If any actions I should do?"}}