import requests data = {\'foo\':\'bar\'} url = \'https://foo.com/bar\' r = requests.post(url, data=data)
If the URL uses a self signed certificate,
try:
r = requests.post(url, data=data, verify='/path/to/public_key.pem')