requests icon indicating copy to clipboard operation
requests copied to clipboard

A simple, yet elegant, HTTP library.

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

One would expect that when the caller explicitly asks to make unverified requests, then the `REQUESTS_CA_BUNDLE` environment variable doesn't affect it. The reality is different, however. ```python import os import...

Bug
Planned

Hello, The following tests fail if HTTP proxy environment variables are already set: ``` FAILED tests/test_requests.py::TestRequests::test_mixed_case_scheme_acceptable FAILED tests/test_requests.py::TestRequests::test_HTTP_302_ALLOW_REDIRECT_GET FAILED tests/test_requests.py::TestRequests::test_errors[http://doesnotexist.google.com-ConnectionError] FAILED tests/test_requests.py::TestRequests::test_respect_proxy_env_on_send_self_prepared_request FAILED tests/test_requests.py::TestRequests::test_respect_proxy_env_on_send_session_prepared_request FAILED tests/test_requests.py::TestRequests::test_respect_proxy_env_on_send_with_redirects FAILED tests/test_requests.py::TestRequests::test_respect_proxy_env_on_get - ......

Currently, requests does not detect when the length of a response body does not match the `Content-Length` header. This behavior results in undetected failures when a TCP connection is closed...

Ran into an error where we were having an exception raised from the requests library: `'bool' object has no attribute 'strip'` Seems the server was returning an empty charset value...

Case - request with data which consists of empty values only ```python get('http://localhost:80', data={'foo': None}) ``` Response in nginx: ``` 172.17.0.1 - - [05/May/2022:19:34:30 +0000] "GET / HTTP/1.1" 200 615...

Bug

Feature described in issue https://github.com/psf/requests/issues/6120 new `InvalidRedirectURL` inherits `InvalidURL, InvalidSchema, LocationParseError` for backward compatibility

Currently when redirect response with invalid redirect URL is returned, we receive the same error (`InvalidURL, InvalidSchema, LocationParseError`) as when passing wrong URL that is used for first request in...

When performing a request to an https location that doesn't include a port explicitly (for example: `https://localhost`) and that location returns a cookie that includes a `port` flag set to...

It's been raised repeatedly, mostly by people using Linux systems, that it's annoying that requests doesn't use the system trust store and instead uses the one that certifi ships. This...

Please Review
Question/Not a bug
Needs More Information

I am using requests 2.23.0 with Python 3.8. My app configures the `requests.packages.urllib3.util.retry.Retry` instance and then passes it via the `max_retries` arg to `requests.adapters.HTTPAdapter` constructor and then mounts the adapter...