主页
Python
Python Requests head() 方法
demo_requests_head_proxies
运行 ❯
×
更改方向
保存代码
更改主题
import requests url = 'https://www.freew3c.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