-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
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
Can we use auth proxies? #28
Comments
This library supports normal http proxies (example: http://proxy.example.com:8080). But I couldn't get it to work with proxies that require username password authentication (example: http://username:[email protected]:8080). I'd appreciate if you could me know whether and how this could be achieved. |
@cosmicsplendor hey, are able to find any workaround with this lib? |
Related to bogdanfinn/tls-client#66. |
I haven't been able to get this to work yet. Will update here if I find a workaround. |
this works, but you have to rely on requests library to create session: import requests proxies = { session = requests.Session() response = hrequests.get('http://httpbin.org/ip', session=session) |
@cosmicsplendor What
|
Mine is v0.7.1 too. I tried hard, but could not make it work. Normal proxies work fine, but when I try authentication, it always fails. |
- Bump to tls-client to 1.7.2 - Detect & override encoding (#24, #31, #32). Works by encoding non-UTF-8 responses in Base64, then sending to Python. Requires faust-cchardet for encoding detection. - Add support for auth http proxies & https (#19) - Add support for socks5 (#28) - `proxies` keyword deprecated in favor of `proxy` - Support for Python 3.7-3.8 (#30) - Added certificate pinning - Added option to disable IPv6 - More descriptive ClientException errors - Added proxy support for Firefox and Chromium - Added `raise_exception` parameter in HTML parser's .find and .find_all - Updated README for 0.8.0-beta.2 - (Hopefully) Fixed crashing issue when importing. Open ports are now found by go's http api rather than python sockets.
to use proxy in sessions you can do like this: |
How could we accomplish something like this using hrequests?
The text was updated successfully, but these errors were encountered: