python requests default headers code example
Example 1: requests sessions
s = requests.Session()
s.get('https://httpbin.org/cookies/set/sessioncookie/123456789')
r = s.get('https://httpbin.org/cookies')
print(r.text)
# '{"cookies": {"sessioncookie": "123456789"}}'
Example 2: how do you set headers in python get requests
b'{\n "cookies": {\n "cookie1": "value1"\n }\n}\n'