demo_requests_head_proxies.py:
import requests url = 'https://www.begtut.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)
➜ begtut>python demo_requests_head_proxies.py
200