Get your
own Python
server
×
Change Orientation
Change Theme, Dark/Light
Go to Spaces
import requests url = 'https://w3.p2hp.com/python/demopage.asp' #use the 'headers' parameter to set the HTTP headers: x = requests.head(url, headers = {"HTTP_HOST": "MyVeryOwnHost"}) print(x.status_code)
200