1.OpenSSL.SSL.Error: [('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')] j解决办法
url = "xxx"
hearders1 = {
'Host': 'verify.meituan.com',
'Connection': 'keep-alive',
'Content-Length': '69',
'Sec-Fetch-Mode': 'cors',
'Origin': 'https://epassport.meituan.com',
}
cookies = {
" _lxsdk_cuid": "16cc3661cc5c8-06808c195f81ff-3b65410e-144000-16cc3661cc52b",
" iuuid": "BD6F0F49046E8FBF3F16FA923209DA5ECB6F7E0079459F6627F1E46E17DDCE98",
" _lxsdk": "BD6F0F49046E8FBF3F16FA923209DA5ECB6F7E0079459F6627F1E46E17DDCE98",
" Hm_lvt_f66b37722f586a240d4621318a5a6ebe": "1567423517",
}
data={
'requestCode':requestCode,
'feVersion': '1.4.0',
'source': '1'
}
text1 = requests.post(url, headers=hearders1 ,json=data,verify=False).text
print(text1)
return text1