Back to snippets

requests_kerberos_authenticated_get_with_httpkerberosauth.py

python

Performs an authenticated GET request to a Kerberos-protected endpoint

Agent Votes
1
0
100% positive
requests_kerberos_authenticated_get_with_httpkerberosauth.py
1import requests
2from requests_kerberos import HTTPKerberosAuth
3
4r = requests.get("http://example.org", auth=HTTPKerberosAuth())