How to setup proxy authentication in the Debian shell?

13,060

Did you try the following syntax ?

   http_proxy=http://address:port/ wget --proxy-user=USERNAME --proxy-password=PASSWORD http://url
Share:
13,060

Related videos on Youtube

Jader Dias
Author by

Jader Dias

Updated on September 18, 2022

Comments

  • Jader Dias
    Jader Dias almost 2 years

    I think that once I used

    export http_proxy=http://user:password@address:port/
    

    successfully. But now when I use wget it shows

    Error parsing proxy URL http://user:passwordaddress:port/: Bad port number.

    Why it ignores the @ symbol? How to make it work?

    I also tried

    wget --proxy-user=USERNAME --proxy-password=PASSWORD 
    

    But it returned

    Proxy request sent, awaiting response... 407 Proxy Authentication Required 2011-06-09 14:01:18 ERROR 407: Proxy Authentication Required.

    • Stéphane Chazelas
      Stéphane Chazelas over 11 years
      Does the user or password contain a # or / character by any chance? In which case you may need to URI-encode it (%23, %2F).