requests icon indicating copy to clipboard operation
requests copied to clipboard

A simple, yet elegant, HTTP library.

Results 287 requests issues
Sort by recently updated
recently updated
newest added

Hello, this was reported for requests 2.18.4 on Debian BTS[¹] by Jonathan Lynch, since it's not Debian specific I'm forwarding here: >When a server reaps a keep-alive session it sends...

- add test cases reported in #5131 - fix utils functions `address_in_network`, `is_ipv4_address` and `is_valid_cidr` - replace socket with `ipaddress` module - prepare ipv6 support Fixes #5131

## Reproducing the problem Let's consider the following script. It runs a bunch of concurrent requests against a URL, both with certificate verification enabled and disabled, and outputs the time...

Ask to document which exceptions request() might raise I notice that the .[json function documents that it might raise](https://requests.readthedocs.io/en/latest/api/#requests.Response.json) a `JSONDecodeError`. This is very helpful for writing comprehensive error handling...

This runs pytest within coverage, enables pytest-xdist to improve test run times, and reports the coverage on GitHub Actions for us. This also ensures that the parallel mode coverage files...

`requests.utils.get_encoding_from_headers` assumes that the charset parameter always specifies a name. In very rare cases a server can send a malformed content-type header which does not specify a name. In these...

This change adds tests for the highlevel api that exposes the http methods directly.

Bug in requests.sessions.py: https://github.com/psf/requests/blob/b8be93a721792deeadd2f498b8f77cf610e7765f/src/requests/sessions.py#L579-L589 session.merge_environment_settings is called in session.request and not in session.send which means if users want to build their own prepared requests (see example below), the correct certificates...

Issue #3829 tracks that Session.verify is ignored whenever `REQUESTS_CA_BUNDLES` or `CURL_CA_BUNDLES` is set. The underlying behavior will apparently be changed in 3.x, but in the meantime it would be helpful...