|
|
|
|
|
by istjohn
425 days ago
|
|
This is neat, but I did find an error in the output pretty quickly. (Disregard the mangled indentation) # Use the Session as a context manager
with requests.Session() as s:
s.get('https://httpbin.org/cookies/set/contextcookie/abc')
response = s.get(url) # ???
print("Cookies sent within 'with' block:", response.json())
https://the-pocket.github.io/Tutorial-Codebase-Knowledge/Req... |
|
I may miss the error, but could you elaborate where it is?