-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Request via aiohttp proxy does not work (url is None) #1413
Comments
Yeah I can reproduce. Seems like MITM-proxy responds with following message:
and request does not go through. Bisecting suggests that first wrong commit is e81a478
|
* fix bug that broke HTTP proxy support * add functional tests via mitmdump fixes aio-libs#1413
* fix bug that broke HTTP proxy support * add functional tests via mitmdump fixes aio-libs#1413
There are also suspicions that the squid proxy does not properly handle redirect requests or aiohttp does not know how to read some of the headers code
unknown proxy software - status 200headers
squid proxy - status 400headers
|
I believe it's solved by @1421 |
Yes it works correctly, thank you very much. |
Long story short
I tried to perform a request via http proxy, but the request via aiohtpp doesn't work, example is taken from official documentation, put a random proxy, and you get the same result
random proxy list http://hideme.ru/proxy-list/?ports=80#list
or
python proxy for test https://github.com/abhinavsingh/proxy.py
Expected behaviour
status 200
Actual behaviour
proxy response: status 400 - Invalid URL / Some aspect of the requested URL is incorrect.
Steps to reproduce
Your environment
tried on both python 3.5.2 and python 3.6 (latest)
aiohttp (1.1.5)
Debug
I turned on my proxy, look at the results
curl
2016-11-20 18:30:54,049 - INFO - pid:24748 - 127.0.0.1:33562 - b'HEAD' b'httpbin.org':80b'/' - b'200' b'OK' - 225 bytes
aiohttp:
2016-11-20 18:30:07,162 - INFO - pid:20625 - 127.0.0.1:33548 - b'GET' None:80b'/' - None None - 0 bytes
The text was updated successfully, but these errors were encountered: