I have a request URI and a token. If I use:
curl -s \"\" -H \"Authorization: TOK:\"
etc., I get a 200 and vie
In python:
('')
is equivalent to
''
And requests interprets
('TOK', '')
As you wanting requests to use Basic Authentication and craft an authorization header like so:
'VE9LOjxNWV9UT0tFTj4K'
Which is the base64 representation of 'TOK:
To pass your own header you pass in a dictionary like so:
r = requests.get('', headers={'Authorization': 'TOK:'})