Originally the latest requests the library is to support https requests, but generally write the script, we will use packet capture tool fiddler or Charles, this time will be reported:
requests.exceptions.SSLError: [SSL:CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590)
【solution】
Option One: Turn off direct capture tool.
Option Two: to verify is set to False, Requests can ignore the validation of SSL certificates (but still there will be two lines Warning, you can not control).
如:r = requests.post(url, json=payload, headers=headers,
verify=False)
[Warning Solutions]
python3 error, then add two lines of code on the line
import urllib3
urllib3.disable_warnings()