Get your
own
website
×
Change Orientation
Change Theme, Dark/Light
Go to Spaces
import requests url = 'https://www.w3schools.com/python/demopage.php' #use the 'cookies' parameter to send cookies to the server: x = requests.head(url, cookies = {"favcolor": "Red"}) print(x.status_code)
200