cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Curl gives files from sourceforge strange names

From: Kamil Dudka <kdudka_at_redhat.com>
Date: Fri, 04 Dec 2015 20:27:13 +0100

On Friday 04 December 2015 14:07:45 David Niklas wrote:
> Hello,
> curl -O -C - -L
> http://sourceforge.net/projects/absolute-linux/files/Absolute_14.12/absolute
> -14.12.iso/download?use_mirror=heanet
>
> Gives the files weird names, this prevents resuming, due to the
> difference in file names (hint: notice the ts value?):
> absolute-14.12.iso?r=http%3A%2F%2Fsourceforge.net%2Fsettings%2Fmirror_choice
> s%3Fprojectname%3Dabsolute-linux%26filename%3DAbsolute_14.12%2Fabsolute-14.1
> 2.iso&ts=1449255232&use_mirror=heanet
>
> absolute-14.12.iso?r=http%3A%2F%2Fsourceforge.net%2Fsettings%2Fmirror_choice
> s%3Fprojectname%3Dabsolute-linux%26filename%3DAbsolute_14.12%2Fabsolute-14.1
> 2.iso&ts=1449255624&use_mirror=heanet
>
> To resolve this, I use -o absolute-14.12.iso, but I think that curl
> could figure this out, since the file name is in the url.

Have you tried to use the -J option of curl?

Kamil

> But curl is yours, so what do you think is the correct behaviour?
>
> Thanks, David
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2015-12-04