Proxy server with authentication not working at command line

command linePROXY

I'm running Debian 6 in a VM on a network that requires Windows authentication to a proxy server before it can run any http/https/ftp connection.

I've tried:

export http_proxy=http://domain\\username:password@proxyIPaddress:8080 

and same for ftp_proxy, but I keep getting: "Proxy server requires authentication".

My password does have a few special characters so I've escaped them using the backslash, just like I do for the domain name. If I hit the up arrow to view my history, the command looks correct (the escape backslashes are gone and the command and password look correct).

What else should I try?

Best Answer

You should pass the export http_proxy command as a string. This should do the trick:

export http_proxy='http://domain\username@proxyIPaddress:8080/'
Related Question