Answers for "requests.get for https request"

0

python send get request with headers

r=requests.get("http://www.example.com/", headers={"content-type":"text"})
Posted by: Guest on November-16-2020
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"}}'
Posted by: Guest on January-14-2020

Python Answers by Framework

Browse Popular Code Answers by Language