-
Notifications
You must be signed in to change notification settings - Fork 319
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
Auth for remote proxy is not working #24
Comments
As far as i understand http is not supported. Try with https. Would be awesome if you (the project owner) can add this functionality :) |
Already tried using HTTPS and does not work either. Tried: I generated a self-signed certificate and started pproxy with: Direct calls on the server via I tested pproxy with remote proxies that doesn't need authentication and works nicely, but unfortunately, it is not my case |
You miss understood me. Feature: http TCP server -> http get,post is missing as shown in the main readme. |
Oh, i totally misunderstood you, thanks for the clarification! I made a few more tests, and i discovered that HTTP Get works! I tried on another proxy server with the following commands: So... based on my "investigation" about this issue, i'm concluding that the issue is about the authentication... or am i missing something here? Oh! And i tried using SOCKS5 on the local proxy instead of HTTP, and works the same way as if i was using HTTP. (https calls work, http calls don't) And @SeameX , thank you from the bottom of my heart for your assistance! |
You can try httponly:// instead of http://, if the remote http proxy server supports only GET/POST instead of CONNECT method. You can also use "--test http://google.com" to test the availability of remote proxy instead of "curl --proxy http://localhost:8080" |
Looks like you are right! My remote proxy does not accept CONNECT, and httponly works! But now we have another issue. It is working only for HTTP sites. Oh, apparently if i use the --test argument, it does not accept HTTPS sites, i'm getting an assertion error: Anyway, now the issue has changed. Authentication is working properly... |
If the proxy only supports GET/POST, we cannot tunnel HTTPS traffic to this proxy, because TLS traffic needs safe CONNECT method to tunnel. |
Hi!
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 usingcurl --proxy "http://localhost:8080" "http://httpbin.org/ip"
, i receivecurl: (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!
The text was updated successfully, but these errors were encountered: