实例 Python 请求 post() 方法 verify 参数 false

x
 
import requests
url = 'https://cankaoshouce.com/python/demopage.php'
myobj = {'somekey': 'somevalue'}
#make the request and specify that there will be no verifying:
x = requests.post(url, data = myobj, verify=False)
print(x.status_code)
                    

输出结果