[ProxyPoolPlugin] Trouble on https request through http upstream proxy #477
-
Hi, thank you so much in building this awesome proxy. I'm trying to upstream from proxy.py to a remote http proxy and and do an https request but I'm having no success. For the upstreaming I'm using the ProxyPoolPlugin. I'm able to do http requests the problem are https requests. Here is an example trying to connect to https://ipinfo.io/ CURL:
Proxy.py I'm using HTTP request are working without problem e.g. I'm really lost and any help would be highly appreciated, thank you in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hi @Samll-Kosmos , Thanks for opening this discussion. I see code is broken as rebuilt request doesn't match the original CONNECT request. Example here https://github.com/abhinavsingh/proxy.py/blob/develop/proxy/plugin/proxy_pool.py#L77-L83 must be changed to But perhaps even after this fix, https proxy pool won't work as expected. Due to I currently have little time on hands to address this. @paul-alkhimov in the past has given this a shot and recommended exposing internal event loop to plugins, which seems to be at the core of all issues (note that pool plugin makes synchronous call within asynchronous proxy core). |
Beta Was this translation helpful? Give feedback.
-
jFYI, #638 landed support for allowing plugins to register custom descriptors for read/write. This will now allow plugins to asynchronously work with upstream socket objects. |
Beta Was this translation helpful? Give feedback.
jFYI, #638 landed support for allowing plugins to register custom descriptors for read/write. This will now allow plugins to asynchronously work with upstream socket objects.