requests
requests copied to clipboard
A simple, yet elegant, HTTP library.
A call like this: ```python response = requests.post("https://example.com", data="👍👎") ``` auto sets the `Content-Length` header in the request to `2` when it should be `8`. I hit this issue was...
https://github.com/kennethreitz/requests/blob/master/requests/cookies.py#L346 Why do this? An escaped quote can be sent in the case of sending json in the cookie and this code mangles that json. I'm raising this because the...
I'm developing a program that scrapes news data using the requests library but while running I get this error. my proxy list is working correctly error: Proxy: 103.21.244.100:80 - Error:...
requests.get is getting weird with some combinations of dictionary keys and proxy authentication. ## Expected Result ```python print(requests.get('https://google.com', proxies={"https" : 'https://user:pass@ip:port'})) ``` Output: `` ## Actual Result Doesn't run? (Maybe...
Both an empty string `''` and an empty list `[]` are not of NoneType and are considered a falsy value and therefore should behave the same when being added as...
I initially thought `requests.certs.where` (as well as `certifi.where`) returned the location of the cacert file _actually_ being used, and I could use it to verify that the correct file was...
strange formatting: https://docs.python-requests.org/en/latest/user/advanced/#socks
### Summary This PR adds kwargs arguments to `HTTPAdapter.send`, which it passes to `HTTPConnectionPool.urlopen` in urllib3. ### Description As discussed in #4956, urrllib3 recently changed the default value of `enforce_content_length`...
We've been missing the minimum PEP 518 build specification in our pyproject.toml. This PR adds that, along with an explicit backend to remove any ambiguity for alternative build tools.