2016-01-11 137 views
-2

我需要從我的文件雲在Linux下載文件,但現在我得到以下錯誤在Linux上,如果我在Windows上執行此鏈接,那麼它下載文件。無法使用wget下載文件

wget https://cloud.xxxxx.xx/core/downloadfile?filepath=/SHARED /gf/xxxxxxx/my-filename-v6b.box&filename=my-filename-v6b.box& disposition=attachment 
[1] 62347 
[2] 62348 
$ --2016-01-11 10:45:53-- https://cloud.xxxxx.xx /core/downloadfile?filepath=/SHARED/ah/xxxxxxxxxxx/my-filename-v6b.box 
Resolving cloud.xxxxx.xx (cloud.xxxxx.xx)... xxx.xx.xx.xxx 
Connecting to cloud.xxxxx.xx (cloud.xxxxx.xx)|xxx.xxx.xx.xxx|:443... connected. 
HTTP request sent, awaiting response... 200 OK 

The file is already fully retrieved; nothing to do. 


[1]- Done     wget https://cloud.xxxxx.xx/core/downloadfile?filepath=/SHARED/ah/xxxxxxxxxxx/my-filename-v6b.box 
[2]+ Done     filename=my-filename-v6b.box 
+0

請問您的網址有它的空間?他們應該在那裏嗎?如果是這樣,你可能需要[URL編碼](http://www.w3schools.com/tags/ref_urlencode.asp)。另外,請嘗試用單引號括住整個URL,以便bash將其視爲單個參數。 – Praveen

回答

0

儘量附上您的網址進入單括號:

wget 'https://cloud.xxxxx.xx/core/downloadfile?filepath=/SHARED /gf/xxxxxxx/my-filename-v6b.box&filename=my-filename-v6b.box& disposition=attachment'