import requests data = {\'foo\':\'bar\'} url = \'https://foo.com/bar\' r = requests.post(url, data=data)
If the URL uses a self signed certificate,
Setting export SSL_CERT_FILE=/path/file.crt should do the job.
export SSL_CERT_FILE=/path/file.crt