requests
requests copied to clipboard
A simple, yet elegant, HTTP library.
Hey! So I was playing around with requests and pytest and trying to see how unit tests work. While messing around with the tests cases in `test_utils.py`, I ran into...
Recently I was using [requests_toolbelt](https://github.com/requests/toolbelt) alongside the `requests` library, more specifically, I was leveraging the `HostHeaderSSLAdapter` from `requests_toolbelt` to make sure I could request a private URL endpoint (e.g. `https://1.2.3.4:5678/api/check`)...
fixed #6890, #3759
## Expected Result Legitimate escaped quotes (e.g., `\"`) in cookie values should be preserved. For example: Input value `"159\\"687"` (actual string: `159\"687`) should remain unchanged. ## Actual Result Requests incorrectly...
I just spent the last several hours trying to figure out why I was able to successfully send an API POST request through `curl` but not through requests. After much...
Added paragraph (copied from `quickstart.rst`) with information where Requests search for `.netrc` file. It should make it easier to find this information when somebody reads regular documentation (as opposite to...
This issue occurs only when TLS is enabled on both the client and server sides. When a `requests` client sends a large `PUT` request and receives an **HTTP 307 redirect**,...
`requests.URLRequired` has been dead code since ab27027 (2012) and is never raised. This commit adds a `DeprecationWarning` to notify users that it will be removed in a future version. Invalid...
Unsure whether this is the right place to handle this error – happy to report this elsewhere if you disagree. When opening a request with a malformed URL through a...
The documentation lists a [relatively small list](https://requests.readthedocs.io/en/latest/api/#exceptions) of exceptions, among them: > exception `requests.URLRequired(*args, **kwargs)` > A valid URL is required to make a request. which would imply that passing...