def http_request(self):
import requests
import urllib3
urllib3.disable_warnings()
headers = {
'cache-control': "no-cache",
}
response = requests.request("GET", self.url, headers=headers)
if response.status_code == 200:
return response.text.encode('utf-8')
else:
return ""
zabbix-monitor-nginx-stub-status.py 文件源码
python
阅读 34
收藏 0
点赞 0
评论 0
评论列表
文章目录