@
oldsix2 我试了下 pycurl 这个库,不行: (28, "Failed to connect to xxxx port 80 after 21178 ms: Couldn't connect to server")
@
knva 确实有可能,公司内网会有一些屏蔽策略,但我疑惑的是为什么 postman 能通
@
maybedk 抱歉没说清,是 requests ,http ,请求头应该是干净的,而且对方说对请求头没有限制。代码 po 上来吧:
import requests
url = 'http://xxxx'
response = requests.get(url)
print(response.text)
TimeoutError: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond