Skip to content

Instantly share code, notes, and snippets.

@matterche
Last active August 29, 2015 14:23
Show Gist options
  • Save matterche/b9ecfbc9db5d3c39d44b to your computer and use it in GitHub Desktop.
Save matterche/b9ecfbc9db5d3c39d44b to your computer and use it in GitHub Desktop.
Use https://github.com/kennethreitz/requests/ to send Json data to a server with self-signed SSL certificate
import requests
requests.packages.urllib3.disable_warnings()
r = requests.post('https://self-signed.cert/',json={"key": "value"}, verify=False)
r.status_code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment