demo_requests_head_proxies.py:
import requests url = 'https://www.w3schools.com/python/demopage.php' #find a free proxy address and send your request via that proxy: x = requests.head(url, proxies = { "https" : "https://1.1.0.1:80"}) print(x.status_code)
C:\Users\My Name>python demo_requests_head_proxies.py
200