I have a request URI and a token. If I use:
curl -s \"\" -H \"Authorization: TOK:\"
etc., I get a 200 and vie
You can also set headers for the entire session:
TOKEN = 'abcd0123' HEADERS = {'Authorization': 'token {}'.format(TOKEN)} with requests.Session() as s: s.headers.update(HEADERS) resp = s.get('http://example.com/')