requests.get for https request code example
Example 1: python send get request with headers
r=requests.get("http://www.example.com/", headers={"content-type":"text"})
Example 2: 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"}}'