We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
requests.get is getting weird with some combinations of dictionary keys and proxy authentication.
print(requests.get('https://google.com', proxies={"https" : 'https://user:pass@ip:port'}))
Output: <Response [200]>
<Response [200]>
Doesn't run? (Maybe timeout) But it somehow fixes itself with these changes
print(requests.get('https://google.com', proxies={"http" : 'http://user:pass@ip:port'}))
import requests print(requests.get('https://google.com', proxies={"https" : 'https://user:pass@ip:port'})) print(requests.get('https://google.com', proxies={"http" : 'http://user:pass@ip:port'}))
$ python -m requests.help
{ "chardet": { "version": null }, "charset_normalizer": { "version": "2.0.12" }, "cryptography": { "version": "" }, "idna": { "version": "3.4" }, "implementation": { "name": "CPython", "version": "3.10.11" }, "platform": { "release": "10", "system": "Windows" }, "pyOpenSSL": { "openssl_version": "", "version": null }, "requests": { "version": "2.27.1" }, "system_ssl": { "version": "1010114f" }, "urllib3": { "version": "1.26.9" }, "using_charset_normalizer": true, "using_pyopenssl": false }
$ python --version Python 3.10.11
The text was updated successfully, but these errors were encountered:
proxies im using are https capable
Sorry, something went wrong.
misclick
its most likely that your proxies only support http protocol, it should work the way you have it, so its probably proxy issues.
No branches or pull requests
requests.get is getting weird with some combinations of dictionary keys and proxy authentication.
Expected Result
Output:
<Response [200]>
Actual Result
Doesn't run? (Maybe timeout)
But it somehow fixes itself with these changes
Output:
<Response [200]>
Reproduction Steps
System Information
The text was updated successfully, but these errors were encountered: