def cli(self):
curl = pycurl.Curl()
curl.setopt(pycurl.TIMEOUT, 10)
curl.setopt(pycurl.URL, self.api_url)
curl.setopt(pycurl.CAINFO, certifi.where())
curl.setopt(pycurl.HTTPHEADER, ['User-Agent: curl/7.35.0', 'Content-Type: text/plain; charset=utf-8'])
return curl.perform()
getPublicIPAddress_curlImpl.py 文件源码
python
阅读 19
收藏 0
点赞 0
评论 0
评论列表
文章目录