I know it is pretty straightforward to use/export http_proxy and https_proxy in any Linux variant but, when it becomes tricky if we want to use with authentication like below,
I have test this it is works fine with curl directly without http_proxy or https_proxy on,
unset http_proxy; curl -x http://proxy-abc-xyz.com:8080 --proxy-user iam@abc-xyz.com -L http://www.yahoo.com
Above command asks for the password :
I enter it on the screen, the page loads up, which is completely fine.
My Password is something like this :
A@CDe2022@@@
But when I try with simple export command, I couldn't able to make it work,
export http_proxy="http://iam@abc-xyz.com:A@CDe2022@@@@proxy-abc-xyz.com:8080"
export https_proxy="http://iam@abc-xyz.com:A@CDe2022@@@@proxy-abc-xyz.com:8080"
Three @@@'s are in password the next one is for the domain.
But the above is not working somehow.
When I try with curl -v https://www.google.com
the command just stalls there no output at all, it tries to connect but it is not able to get through.
Could someone help with this?
Thank you!