centos6.8 wget error: Proxy Authentication Required
centos6.8 wget error: Proxy Authentication Required
当我尝试在 centos 6.8 上使用 wget
通过代理连接到网站时收到以下错误消息。
错误
wget http://www.yahoo.co.jp
--2016-12-16 14:47:04 http://www.yahoo.co.jp
Connecting to 172.30.10.124:8080... connected.
Proxy request sent, awaiting response... 407 Proxy Authentication Required
2016-12-16 14:47:04 ERROR 407: Proxy Authentication Required
检查
我确认这个命令是运行。
export http_proxy='http://guest:gstPass@172.30.10.124:8080'
wget http://www.yahoo.co.jp
~/.wgetrc
这是 ~/.wgetrc 的内容
http_proxy = 172.30.10.124:8080
https_proxy = 172.30.10.124:8080
ftp_proxy = 172.30.10.124:8080
proxy_user = "guest"
proxy_passwd = "gstPass"
(I do not edit /etc/wgetrc)
wget版本
这是 wget
的版本
GNU Wget 1.12 built on linux-gnu
我也看了但没改。
我应该在哪里检查?错误在哪里?
我可以解决这个问题。我更改了 proxy_user
和 proxy_passwd
的值。
之前
http_proxy = 172.30.10.124:8080
https_proxy = 172.30.10.124:8080
ftp_proxy = 172.30.10.124:8080
proxy_user = "guest"
proxy_passwd = "gstPass"
之后
http_proxy = 172.30.10.124:8080
https_proxy = 172.30.10.124:8080
ftp_proxy = 172.30.10.124:8080
proxy_user = guest
proxy_passwd = gstPass
proxy_user
和 proxy_passwd
我不需要 ' " '
当我尝试在 centos 6.8 上使用 wget
通过代理连接到网站时收到以下错误消息。
错误
wget http://www.yahoo.co.jp
--2016-12-16 14:47:04 http://www.yahoo.co.jp
Connecting to 172.30.10.124:8080... connected.
Proxy request sent, awaiting response... 407 Proxy Authentication Required
2016-12-16 14:47:04 ERROR 407: Proxy Authentication Required
检查
我确认这个命令是运行。
export http_proxy='http://guest:gstPass@172.30.10.124:8080'
wget http://www.yahoo.co.jp
~/.wgetrc
这是 ~/.wgetrc 的内容
http_proxy = 172.30.10.124:8080
https_proxy = 172.30.10.124:8080
ftp_proxy = 172.30.10.124:8080
proxy_user = "guest"
proxy_passwd = "gstPass"
(I do not edit /etc/wgetrc)
wget版本
这是 wget
GNU Wget 1.12 built on linux-gnu
我也看了
我应该在哪里检查?错误在哪里?
我可以解决这个问题。我更改了 proxy_user
和 proxy_passwd
的值。
之前
http_proxy = 172.30.10.124:8080
https_proxy = 172.30.10.124:8080
ftp_proxy = 172.30.10.124:8080
proxy_user = "guest"
proxy_passwd = "gstPass"
之后
http_proxy = 172.30.10.124:8080
https_proxy = 172.30.10.124:8080
ftp_proxy = 172.30.10.124:8080
proxy_user = guest
proxy_passwd = gstPass
proxy_user
和 proxy_passwd