- 论坛徽章:
- 0
|
本帖最后由 dxcheng 于 2016-02-22 11:37 编辑
Virtual box centos 7 虚拟机通过代理上网,firefox可以成功访问网页,但是wget 返回error 407 proxy authentication required 错误
还请大神们帮忙看下,这是怎么回事,谢谢!
Firefox 代理设置:
Firefox 上网时提示输入用户名,密码,输入后可以正常上网:
不过在Terminal下使用wget 下载文件时返回错误407 error proxy authentication required:
# export http_proxy=http:// 135.251.33.16:8080/
# wget -d -v http:// mirrors.163.com/.help/CentOS6-Base-163.repo --proxy-user test --proxy-password test2016
Setting --verbose (verbose) to 1
Setting --proxy-user (proxyuser) to test
Setting --proxy-password (proxypassword) to test2016
DEBUG output created by Wget 1.14 on linux-gnu.
URI encoding = ‘UTF-8’
URI encoding = ‘UTF-8’
--2016-02-22 10:35:26-- http:// mirrors.163.com/.help/CentOS6-Base-163.repo
Connecting to 135.251.33.16:8080... connected.
Created socket 3.
Releasing 0x000000000173ca00 (new refcount 0).
Deleting unused 0x000000000173ca00.
---request begin---
GET http:// mirrors.163.com/.help/CentOS6-Base-163.repo HTTP/1.1
User-Agent: Wget/1.14 (linux-gnu)
Accept: */*
Host: mirrors.163.com
Connection: Close
Proxy-Connection: Keep-Alive
Proxy-Authorization: Basic Y2hhc29uZDpkeGM2NzUxNzch
---request end---
Proxy request sent, awaiting response...
---response begin---
HTTP/1.1 407 Proxy Authentication Required
Proxy-Authenticate: NTLM
Cache-Control: no-cache
Pragma: no-cache
Content-Type: text/html; charset=utf-8
Proxy-Connection: close
Set-Cookie: BCSI-CS87FB2110=2; Path=/
Connection: close
Content-Length: 810
---response end---
407 Proxy Authentication Required
Stored cookie mirrors.163.com -1 (ANY) / <session> <insecure> [expiry none] BCSI-CS87FB2110 2
URI content encoding = ‘utf-8’
Closed fd 3
2016-02-22 10:35:26 ERROR 407: Proxy Authentication Required.
PS: 为了绕过论坛发表ULR的限制,所有HTTP URL后面加了一个空格
|
|