demo_requests_post_verify.py:
import requests url = 'https://begtut.com/python/demopage.php' myobj = {'somekey': 'somevalue'} #make the request with the path to a TLS certificate: x = requests.post(url, data = myobj, verify='folder/tlscertificate') print(x.status_code)
➜ begtut>python demo_requests_post_verify.py
200