Please note, this is a STATIC archive of website www.w3schools.com from 05 May 2020, cach3.com does not collect or store any user information, there is no "phishing" involved.
demo_requests_head_headers.py:
import requests url = 'https://www.w3schools.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)
C:\Users\My Name>python demo_requests_head_headers.py
200