question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Auth for remote proxy is not working

See original GitHub issue

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 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:closed
  • Created 5 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
SeameXcommented, Feb 1, 2019

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.

0reactions
qwjcommented, Feb 8, 2019

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Your computer can't connect to the remote ...
I have Win 2008 R2 server with remote access working, ... to the remote computer because the web proxy server requires authentication.
Read more >
Troubleshooting XenCenter Proxy Authentication Issues
This article provides general guidance to troubleshoot XenCenter proxy authentication related-issues.
Read more >
Authentication Proxy - FAQ and Troubleshooting
Open your file in a text editor other than Notepad, verify that the configuration is correct, save the file, and try starting the...
Read more >
Web application using Windows authentication can't go ...
My problem is that I keep receiving error The remote server returned an error: (407) Proxy Authentication Required. . I can verify that...
Read more >
Troubleshooting Authentication Proxy
... the available troubleshooting mechanisms within Cisco IOS to troubleshoot Authentication Proxy (Auth-Proxy) related problems.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found