requests
requests copied to clipboard
A simple, yet elegant, HTTP library.
requests 2.32.3 with IPv6 link local address fails with error: [Errno -2] Name or service not known
When using an IPv6 link local address with requests > v2.31.0, seeing an error `[Errno -2] Name or service not known`. The same works with requests 2.31.0. urllib3 2.2.1 also...
Create a new file using requests.utils. atomic_open with umask set to 0o000 ## Expected Result 0o777 ## Actual Result 0o600 ## Reproduction Steps ```python import os import requests.utils os.umask(0o000) with...
We use `requests` with multiple mTLS client certificates - each certificate is signed by the same CA, but they have different subjects - each subject has different permissions. Each distinct...
When making an HTTP request using the requests library, I encountered a connection failure. The error message provided was not very clear or actionable, especially for someone new to the...
The code for reference: https://github.com/psf/requests/blob/7335bbf480adc8e6aa88feb2022797a549a00aa3/src/requests/adapters.py#L336
When making a request to a link-local IPv6 address, it becomes necessary to specify the "zone id" aka "scope id". [RFC 6874](https://www.rfc-editor.org/rfc/rfc6874) specifies zone ids as follows: > According to...
I am trying to send an xml in a post request to a SOAP endpoint of a TMS server. The code is the following: ``` response = requests.post( url, data=xml_output,...
In windows pycharm jupyterlab when i open windows system proxy requests will use the proxy i set on windows system. but cannot close this proxy direct to the internet ....
This patch uses the "hostname" attribute from the parsed url to get the host, instead of trying to calculate the host from netloc that can produce errors when "http://username:[email protected]" format...