Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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"}}'
Source by requests.readthedocs.io #
 
PREVIOUS NEXT
Tagged: #requests #sessions
ADD COMMENT
Topic
Name
2+5 =