You are not logged in.

#1 2010-05-24 16:06:01

rpgswallow
Member
Registered: 2009-11-08
Posts: 9

Question regarding downloading dynamic link with wget

Hi. Hope this is the correct place to ask, and sorry for my bad english.
I've question, suppose I want to download from site www.example.com/files.zip using wget.
First, I create a text file with the list of link I want to download.
Then I use this command to download:

wget --no-cache --no-cookies --header "Cookie: blabla=xxx;blabber=yyy" --save-cookies="cookie.txt" --keep-session-cookies -c -ilist.txt

Now, the problem is, whenever the download is made, the server generate a dynamic link, like www.mirror.example.com/{random_string}/files.zip so when the wget retry on the event of error, it can't resume because it try to get from the generated link not the original link.
Anyone knows how to make the wget retry to the original link, not the redirected link? Thanks.
PS: I've already search for the answer but haven't found them.

Offline

#2 2010-05-24 16:16:52

lymphatik
Member
From: Somewhere else
Registered: 2009-03-07
Posts: 119

Re: Question regarding downloading dynamic link with wget

Try aria2c it might work out of the box. And it uses almost the same command than wget

Offline

#3 2010-05-24 17:30:33

Richer
Member
Registered: 2008-02-26
Posts: 19

Re: Question regarding downloading dynamic link with wget

snarf can work too in that case

Offline

#4 2010-05-25 11:52:40

rpgswallow
Member
Registered: 2009-11-08
Posts: 9

Re: Question regarding downloading dynamic link with wget

OK, I'll try both of them. Thanks. smile
By the way, I assume wget can't do that then??

Offline

Board footer

Powered by FluxBB