wget 代理身份验证错误 [英] wget proxy authentication error

查看:53
本文介绍了wget 代理身份验证错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试使用 wget 通过代理连接到 http URL 时出现以下错误

I get the following error when trying to connect to a http URL through a proxy using wget

错误:

  wget "http://pro.fastmarkets.com/feeds/default.aspx?usr=anzbank&pwd=587345bv98735vb2b56&feed=physicals-csv" -O /tmp/test.csv
**wget: Error in /home/acdbaqa/.wgetrc at line 3.**
--06:04:15--  http://pro.fastmarkets.com/feeds/default.aspx?usr=anzbank&pwd=587345bv98735vb2b56&feed=physicals-csv
           => `/tmp/test.csv'

Connecting to 59.154.134.109:80... connected.
Proxy request sent, awaiting response... 407 Proxy Authentication Required
06:04:15 ERROR 407: Proxy Authentication Required.

我的 .wgetrc 文件内容:

my .wgetrc file contents:

http_proxy=59.154.134.109:80
proxy_user=ACPROXYPROD
proxy_password=test
#password='Ev*luti*n0456789'
#proxy-password='Ev*luti*n0456789'
ftp_proxy=204.2.23.10:80

第 3 行是密码.我在这里错过了什么吗?不知道为什么它在第 3 行显示错误

line 3 is the password. am i missing anything here? not sure why it says error at line 3

推荐答案

这是通过使用以下参数更改 .wgetrc 文件来解决的

Τhis was solved by changing the .wgetrc file with the below parameters

proxy-user=ACPROXYPROD
proxy-passwd=test1245

它是不是 proxy_userproxy_password.

这篇关于wget 代理身份验证错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆