From 7c958ee28e54be838785b9f4388045005a7f1ffb Mon Sep 17 00:00:00 2001 From: Cory Benfield Date: Mon, 31 Aug 2015 10:26:06 +0100 Subject: [PATCH] Document the string form of the verify parameter. --- docs/user/advanced.rst | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/user/advanced.rst b/docs/user/advanced.rst index 8466a4af..f53cbed7 100644 --- a/docs/user/advanced.rst +++ b/docs/user/advanced.rst @@ -201,7 +201,11 @@ I don't have SSL setup on this domain, so it fails. Excellent. GitHub does thoug >>> requests.get('https://github.com', verify=True) -You can pass ``verify`` the path to a CA_BUNDLE file with certificates of trusted CAs. This list of trusted CAs can also be specified through the ``REQUESTS_CA_BUNDLE`` environment variable. +You can pass ``verify`` the path to a CA_BUNDLE file with certificates of trusted CAs:: + + >>> requests.get('https://github.com', verify='/path/to/certfile') + +This list of trusted CAs can also be specified through the ``REQUESTS_CA_BUNDLE`` environment variable. Requests can also ignore verifying the SSL certificate if you set ``verify`` to False.