Wednesday, May 1, 2024
 Popular · Latest · Hot · Upcoming
5
rated 0 times [  5] [ 0]  / answers: 1 / hits: 21905  / 1 Year ago, fri, november 25, 2022, 10:51:49

sorry,.. I'm noob in Ubuntu ... and I'm trying to make a robots for downloading file..



i can download the zip file via web browser's address bar like this



http://www.mysite.com/getFile.php?mirror=1&categori=advanture&file=001.zip



but, when i try to use wget, the file never been downloaded...



this is how i use wget :



$ wget -H http://www.mysite.com/getFile.php?mirror=1&categori=images&file=001.zip
$ wget -H -k http://www.mysite.com/getFile.php?mirror=1&categori=images&file=001.zip
$ wget -H -m http://www.mysite.com/getFile.php?mirror=1&categori=images&file=001.zip
$ wget -H -m -k http://www.mysite.com/getFile.php?mirror=1&categori=images&file=001.zip


all wget just download the php file.. when i open it, it's just

<font color=red>invalid url</font>



does it because of redirect ? or cookie ? when i clear all cookie in mozilla, and download again.. it still wokrs..



or session ? mysite.com is never use login user to download


More From » cron

 Answers
4

You have to use apostrophes or double quotes around the URL, because it contains the special character &.


[#44766] Sunday, November 27, 2022, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
uffno

Total Points: 283
Total Questions: 93
Total Answers: 111

Location: Saint Vincent and the Grenadines
Member since Thu, Oct 15, 2020
4 Years ago
uffno questions
Thu, Sep 2, 21, 18:08, 3 Years ago
Sun, Apr 2, 23, 15:15, 1 Year ago
Sat, Jan 8, 22, 16:37, 2 Years ago
;