亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費注冊 查看新帖 |

Chinaunix

  平臺 論壇 博客 文庫
最近訪問板塊 發(fā)新帖
查看: 7750 | 回復(fù): 5
打印 上一主題 下一主題

[網(wǎng)絡(luò)管理] wget 407 error: proxy authentication required? [復(fù)制鏈接]

論壇徽章:
0
跳轉(zhuǎn)到指定樓層
1 [收藏(0)] [報告]
發(fā)表于 2016-02-22 11:36 |只看該作者 |倒序瀏覽
本帖最后由 dxcheng 于 2016-02-22 11:37 編輯

Virtual box centos 7 虛擬機通過代理上網(wǎng),firefox可以成功訪問網(wǎng)頁,但是wget 返回error 407 proxy authentication required 錯誤
還請大神們幫忙看下,這是怎么回事,謝謝!

Firefox 代理設(shè)置:


Firefox 上網(wǎng)時提示輸入用戶名,密碼,輸入后可以正常上網(wǎng):


不過在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后面加了一個空格

論壇徽章:
41
操作系統(tǒng)版塊每日發(fā)帖之星
日期:2016-08-21 06:20:00每日論壇發(fā)貼之星
日期:2016-05-05 06:20:00操作系統(tǒng)版塊每日發(fā)帖之星
日期:2016-05-05 06:20:00IT運維版塊每日發(fā)帖之星
日期:2016-05-05 06:20:0015-16賽季CBA聯(lián)賽之山西
日期:2016-04-27 08:49:00操作系統(tǒng)版塊每日發(fā)帖之星
日期:2016-04-25 06:20:00操作系統(tǒng)版塊每日發(fā)帖之星
日期:2016-04-17 06:23:2815-16賽季CBA聯(lián)賽之吉林
日期:2016-03-25 15:46:3415-16賽季CBA聯(lián)賽之四川
日期:2016-03-25 14:26:19操作系統(tǒng)版塊每日發(fā)帖之星
日期:2016-05-27 06:20:00操作系統(tǒng)版塊每日發(fā)帖之星
日期:2016-05-28 06:20:00IT運維版塊每日發(fā)帖之星
日期:2016-08-18 06:20:00
2 [報告]
發(fā)表于 2016-02-22 14:19 |只看該作者
提示就是代理驗證失敗,配置代理請加上賬號密碼

論壇徽章:
0
3 [報告]
發(fā)表于 2016-02-22 14:30 |只看該作者
回復(fù) 2# jixuuse


已經(jīng)加進去了,
# 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


而且這樣也是不行的:
# export http_proxy=http:// test:test2016@135.251.33.16:8080/
# wget -d -v http:// mirrors.163.com/.help/CentOS6-Base-163.repo


PS:注意到HTTP的response中有這么一句,不知道和這個有關(guān)嗎?
---response begin---
HTTP/1.1 407 Proxy Authentication Required
Proxy-Authenticate: NTLM
Cache-Control: no-cache

求職 : Linux運維
論壇徽章:
203
拜羊年徽章
日期:2015-03-03 16:15:432015年辭舊歲徽章
日期:2015-03-03 16:54:152015年迎新春徽章
日期:2015-03-04 09:57:092015小元宵徽章
日期:2015-03-06 15:58:182015年亞洲杯之約旦
日期:2015-04-05 20:08:292015年亞洲杯之澳大利亞
日期:2015-04-09 09:25:552015年亞洲杯之約旦
日期:2015-04-10 17:34:102015年亞洲杯之巴勒斯坦
日期:2015-04-10 17:35:342015年亞洲杯之日本
日期:2015-04-16 16:28:552015年亞洲杯紀(jì)念徽章
日期:2015-04-27 23:29:17操作系統(tǒng)版塊每日發(fā)帖之星
日期:2015-06-06 22:20:00操作系統(tǒng)版塊每日發(fā)帖之星
日期:2015-06-09 22:20:00
4 [報告]
發(fā)表于 2016-02-22 17:31 |只看該作者
Proxy-Authenticate: NTLM 就是本地認(rèn)證吧

論壇徽章:
0
5 [報告]
發(fā)表于 2016-02-23 10:45 |只看該作者
回復(fù) 4# lyhabc

Thanks,網(wǎng)上搜索了一些資料,和大家一起學(xué)習(xí)下。

NTLM是一種身份認(rèn)證協(xié)議,這種協(xié)議適用于Window操作系統(tǒng)。和他相對應(yīng)的協(xié)議有Basic 和 Digest(wget的man help里面看到的)

--http-password=password
           Specify the username user and password password on an HTTP
           server.  According to the type of the challenge, Wget will encode
           them using either the "basic" (insecure), the "digest", or the
           Windows "NTLM" authentication scheme.



wget僅支持Basic方式的身份認(rèn)證協(xié)議,因此會出現(xiàn)Proxy Authentication Required
       --proxy-user=user
       --proxy-password=password
           Specify the username user and password password for
           authentication on a proxy server.  Wget will encode them using
           the "basic" authentication scheme.


           Security considerations similar to those with --http-password
           pertain here as well.


解決方案:
使用NTLMAPS搭建一個本地代理服務(wù)器,實現(xiàn)認(rèn)證協(xié)議的轉(zhuǎn)換。
具體參考如下:
Web Browsing Behind ISA Server HOWTO
Linux下通過Windows的ISA代理認(rèn)證上網(wǎng)

PS:Firefox 內(nèi)部實現(xiàn)了認(rèn)證協(xié)議的支持,所以Firefox沒有這個問題。

評分

參與人數(shù) 1可用積分 +6 收起 理由
chenyx + 6 很給力!

查看全部評分

論壇徽章:
381
CU十二周年紀(jì)念徽章
日期:2014-01-04 22:46:58CU大;照
日期:2013-03-13 15:32:35CU大;照
日期:2013-03-13 15:38:15CU大牛徽章
日期:2013-03-13 15:38:52CU大;照
日期:2013-03-14 14:08:55CU大;照
日期:2013-04-17 11:17:19CU大牛徽章
日期:2013-04-17 11:17:32CU大;照
日期:2013-04-17 11:17:37CU大;照
日期:2013-04-17 11:17:42CU大;照
日期:2013-04-17 11:17:47CU大;照
日期:2013-04-17 11:17:52CU大;照
日期:2013-04-17 11:17:56
6 [報告]
發(fā)表于 2016-02-26 19:23 |只看該作者
感謝樓主分享
您需要登錄后才可以回帖 登錄 | 注冊

本版積分規(guī)則 發(fā)表回復(fù)

  

北京盛拓優(yōu)訊信息技術(shù)有限公司. 版權(quán)所有 京ICP備16024965號-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報專區(qū)
中國互聯(lián)網(wǎng)協(xié)會會員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關(guān)心和支持過ChinaUnix的朋友們 轉(zhuǎn)載本站內(nèi)容請注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP