Proxy without usr/psw authentication and IP-based auntenthication #73
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Chromium based solutions do not support user/password proxy authentication and given the fact that it is outdated/unsecure option it will rather not change in future. To bypass this, this request:
No breaking changes, although I don't know why in case of proxies without username and password this check_alive directly reaching to proxy fails:
result = requests.get("http://" + ip_address + ":8899", timeout=3)
and returns this error (after removing timeout restriction):
Unable to connect Tinyproxy was unable to connect to the remote web server. Generated by [tinyproxy](https://tinyproxy.github.io/) version 1.11.0.
However, using the very same IP as a proxy works without issues, hence I updated the line to:
result = requests.get("http://ipecho.net/plain", proxies={'http': "http://" + ip_address + ":8899"}, timeout=3)
.