From: Kenneth Reitz Date: Sat, 7 Jan 2012 18:44:09 +0000 (-0500) Subject: Update docs/user/advanced.rst X-Git-Tag: v0.9.2~17^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=15396fb2f90e30f1abe7ed63ddcf07f7706ba75b;p=services%2Fpython-requests.git Update docs/user/advanced.rst --- diff --git a/docs/user/advanced.rst b/docs/user/advanced.rst index 216367a..d1c2cd0 100644 --- a/docs/user/advanced.rst +++ b/docs/user/advanced.rst @@ -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) 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.