Auth for remote proxy is not working
See original GitHub issueHi! I’m trying to use pproxy with a remote proxy, which is a paid proxy service. I need to authenticate the remote proxy connection with a simple http auth. Reading your docs, i understood that i need to use the username and password on the fragment part of the url, because the usual auth part on url is reserved to cyphers, right?
If i start the proxy like this: pproxy -r 'http://HOST:PORT/#USERNAME:PASSWORD' -vvv
and make a call using curl --proxy "http://localhost:8080" "http://httpbin.org/ip"
, i receive curl: (52) Empty reply from server
from the curl command.
If i do not use the pproxy and make a call using curl --proxy "http://HOST:PORT/" --proxy-user "USERNAME:PASSWORD" "http://httpbin.org/ip"
works nicely.
Am i doing something wrong?
Thanks!
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (2 by maintainers)
Top GitHub Comments
You miss understood me. Use: pproxy -r ‘http://HOST:PORT/#USERNAME:PASSWORD’ -vvv curl --proxy “http://localhost:8080” “https😕/httpbin.org/ip”
Feature: http TCP server -> http get,post is missing as shown in the main readme.
If the proxy only supports GET/POST, we cannot tunnel HTTPS traffic to this proxy, because TLS traffic needs safe CONNECT method to tunnel. You don’t need to specify http+ssl for HTTPS sites. The TLS traffic can be properly handled if the remote proxy accepts CONNECT method.