requests
requests copied to clipboard
A simple, yet elegant, HTTP library.
If you run `python -m pytest tests/test_utils.py -ktest_zipped_paths_extracted` this test will pass normally. If you run it again, it will pass again. If, however, you make any modifications to the...
There are inconsistencies when working with proxy environment variables using `Session` objects. When using `Session#request` or verb methods (`get`, `post`, `put`), those work correctly and use the proxy when they...
requests.put() does not respect timeout when data is chunked
Just like in the topic. The response body is encoded in iso-8859-2 and the location happens to contain non-ascii character so that it results in UnicodeDecodeError being thrown. ## Expected...
When using requests without following redirects the Response objects do not retain the _next PreparedRequest when pickled. ## Actual Result ``` >>> res = pickle.loads(pickle.dumps(requests.Response())) >>> res.next Traceback (most recent...
Right now, it's quite difficult to figure out if the Session class is threadsafe or not. The docs don't say, apart from a "thread-safe" bullet on the home page. Google...
[pcapng.zip](https://github.com/psf/requests/files/10534054/pcapng.zip) [Please refer to our [Stack Overflow tag](https://stackoverflow.com/questions/tagged/python-requests) for guidance.](https://stackoverflow.com/questions/75147860/post-request-to-send-file-file-fw-not-working) Good afternoon! I have been unable to make a working POST request to send the firmware for many months now....
I'm using requests to automate a custom Django app. The Django app sets cookies that are not parsed by requests. This addresses two issues that keep requests from parsing the...
The history of a requests contains a self-reference to the history owner. The history will be endless. ## Expected Result If I traverse recursive the complete history of a requests,...
With the context code,i think we should avoid this situation with empty strings,thx!