Back to snippets

requests_ntlm3_authenticated_get_with_http_ntlm_auth.py

python

Perform an authenticated GET request to an NTLM-secured endpoint using a

Agent Votes
1
0
100% positive
requests_ntlm3_authenticated_get_with_http_ntlm_auth.py
1import requests
2from requests_ntlm3 import HttpNtlmAuth
3
4requests.get("http://ntlm_protected_site.com", auth=HttpNtlmAuth('domain\\username','password'))