我有一個URL列表文件,如:Wget的一個URL列表文件,但下載的文件是HTML類型的,不是原始類型
$ cat filelist2.txt
https://example.org/download.php?fileid=700&filename=Project1.exe
https://example.org/download.php?fileid=799&filename=img.sarah.exe
我用「wget的」從這個文件下載所有的網址,如:
$wget -i filelist2.txt --user='234' --password='123(123'
下載會快,但我發現下載的文件是不是.exe文件類型,但HTML。另外,文件名不是我的期望。
$ls -l
-rw-rw-r-- 1 virus virus 1000 Mar 13 10:30 download.php?fileid=799&filename=img.sarah.exe
-rw-rw-r-- 1 virus virus 1000 Mar 13 10:30 download.php?fileid=800&filename=Project1.exe
$ file *
download.php?fileid=7928799&filename=img.sarah.exe: HTML document text
download.php?fileid=7928800&filename=Project1.exe: HTML document text
我不知道爲什麼。爲什麼不下載正確的文件? 謝謝!
相反,如果我用「的wget https://virusscan.jotti.org/vendoradmin/download.php?fileid=7928799 --user ='234'--password ='123(123'「,我總是得到身份驗證失敗 – 2015-03-13 18:26:06