Answers for "python get element of request header"

8

get request python

import requests

x = requests.get('https://w3schools.com')
print(x.status_code)
Posted by: Guest on August-14-2020
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

Python Answers by Framework

Browse Popular Code Answers by Language