2009-10-02 44 views
0

我使用wget自動下載Eclipse的炮轟擴展,但我收到一個錯誤:wget的 - HTTP://:主機名無效

http://: Invalid host name. 

我以前使用過它成功了幾次,所以我認爲這是因爲SourceForge使用鏡像。我查看了man page for wget,關注referer和http_proxy,但我仍然沒有成功。這裏是我的腳本:

dowloadFile="http://downloads.sourceforge.net/project/shelled/shelled/Shelled%201.0.4/shelled_1_0_4.zip?use_mirror=voxel" 
wget "$downloadFile" 

謝謝!

+2

可能的候選人? – 2009-10-02 11:11:59

回答

8

是否dowload文件下載文件?有一個差異有

+0

謝謝!當你得到第二組眼睛時,這是很好的... – 2009-10-02 12:23:31

+0

是的,很多時候我發現它有幫助。 – pavium 2009-10-02 12:30:26

1

我pavium同意

超級用戶
$ wget "$dowloadFile" 
--2009-10-02 07:11:41-- http://downloads.sourceforge.net/project/shelled/shelled/Shelled%201.0.4/shelled_1_0_4.zip?use_mirror=voxel 
Resolving downloads.sourceforge.net... 216.34.181.59 
Connecting to downloads.sourceforge.net|216.34.181.59|:80... connected. 
HTTP request sent, awaiting response... 302 Found 
Location: http://voxel.dl.sourceforge.net/project/shelled/shelled/Shelled%201.0.4/shelled_1_0_4.zip [following] 
--2009-10-02 07:11:41-- http://voxel.dl.sourceforge.net/project/shelled/shelled/Shelled%201.0.4/shelled_1_0_4.zip 
Resolving voxel.dl.sourceforge.net... 72.26.192.194 
Connecting to voxel.dl.sourceforge.net|72.26.192.194|:80... connected. 
HTTP request sent, awaiting response... 200 OK 
Length: 2020011 (1.9M) [application/zip] 
Saving to: `shelled_1_0_4.zip.4' 

100%[==============================================================================================================================>] 2,020,011 53.8K/s in 37s 

2009-10-02 07:12:18 (53.6 KB/s) - `shelled_1_0_4.zip.4' saved [2020011/2020011] 
相關問題