Update docs/user/advanced.rst

This commit is contained in:
Kenneth Reitz
2012-01-07 13:44:09 -05:00
parent 1acef81ed3
commit 15396fb2f9
+2 -2
View File
@@ -53,9 +53,9 @@ Requests can verify SSL certificates for HTTPS requests, just like a web browser
>>> requests.get('https://kennethreitz.com', verify=True)
requests.exceptions.SSLError: hostname 'kennethreitz.com' doesn't match either of '*.herokuapp.com', 'herokuapp.com'
I don't have SSL setup on this domain, so it fails. Excellent. I do have certs for httpbin.org though::
I don't have SSL setup on this domain, so it fails. Excellent. Github does though::
>>> requests.get('https://httpbin.org', verify=True)
>>> requests.get('https://github.com', verify=True)
<Response [200]>
You can also pass ``verify`` the path to a CA_BUNDLE file for private certs. You can also set the ``REQUESTS_CA_BUNDLE`` environment variable.