requests
requests copied to clipboard
A simple, yet elegant, HTTP library.
Resolution for the issue https://github.com/psf/requests/issues/6102 Now, If a username and password are passed already encoded, they will not be affected by being expected as a string. In this case, the...
This adds a short and simple header-based auth backend (and tests!). This allows greater flexibility in auth mechanisms out of the box. For example, I'm working on on an internal...
This PR reverts the changes from #6667 to the previous behavior. Due to the number of edge cases and concurrency issues we've encountered with this change, we've decided the benefit...
It appears that in version `2.32.3` default certificates are no longer loaded for custom `HTTPAdapter` contexts when they were previously. I guess this might be a duplicate/related to https://github.com/psf/requests/issues/6726#issuecomment-2138406456. Also...
If it is necessary to [extract the certs from a zip file](https://github.com/psf/requests/blob/0e322af87745eff34caffe4df68456ebc20d9068/src/requests/utils.py#L296-L302), they'll be written to somewhere like `/tmp/cacert.pem`. This is problematic for subsequent users who may not have have...
I set verify to False, but it still need cerfiticate. As we have catched ImportError, why not catch FileNotFoundError together? ## Expected Result won't Traceback ## Actual Result ``` [root@localhost...
If I use requests to send a POST request and pass in a generator (and therefore the request uses chunked encoding), the timeout parameter is not respected. If I use...
## Overview This PR is intended to address two distinct issues introduced with the default cert optimizations originally introduced in 2.32.0. While we continue to refine the settings considered when...
I'm building requests 2.32.3 in Fedora Linux and I have a problem with `test_unicode_header_name` - the test hangs. It's reproducible - when I use urllib3 at least 2.0.2, the code...
This issue a suggestion for handling partial elements of issues #1737 and #2086 (#1774 and others too). I'm bringing this up in a separate ticket because it is a specific...