- 論壇徽章:
- 0
|
本帖最后由 dxcheng 于 2016-02-22 11:37 編輯
Virtual box centos 7 虛擬機通過代理上網(wǎng),firefox可以成功訪問網(wǎng)頁,但是wget 返回error 407 proxy authentication required 錯誤
還請大神們幫忙看下,這是怎么回事,謝謝!
Firefox 代理設(shè)置:
Capture2.PNG (24.18 KB, 下載次數(shù): 137)
下載附件
2016-02-22 11:02 上傳
Firefox 上網(wǎng)時提示輸入用戶名,密碼,輸入后可以正常上網(wǎng):
Capture.PNG (114.99 KB, 下載次數(shù): 139)
下載附件
2016-02-22 11:02 上傳
不過在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: 為了繞過論壇發(fā)表ULR的限制,所有HTTP URL后面加了一個空格
|
|