Bugs item #3033742, was opened at 2010-07-23 22:03
Message generated for change (Comment added) made by bagder
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=3033742&group_id=976
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: http
Group: wrong behaviour
Status: Open
>Resolution: Invalid
Priority: 5
Private: No
Submitted By: sandys ()
Assigned to: Daniel Stenberg (bagder)
Summary: redirect URL causes curl to save to wrong filename
Initial Comment:
curl -LO http://pl2.php.net/get/php-5.2.13.tar.gz/from/pl.php.net/mirror
causes the downloaded file to be named "mirror", whereas wget saves it to php-5.2.13.tar.gz correctly.
Curl is maybe fixing the name too early in the redirect process.
----------------------------------------------------------------------
>Comment By: Daniel Stenberg (bagder)
Date: 2010-07-23 23:26
Message:
-O is documented to work this way, and it works as intended. It is made to
not present any surprises so that you can know beforehand what file name
the end result will be saved as. Saying that wget acts "correctly" in the
same aspect is incorrect. It is a different tool with a different feature,
although rather similar.
If you want curl to use the filename as passed in the Content-Disposition:
headers you should use -J in addition to -O.
----------------------------------------------------------------------
Comment By: sandys ()
Date: 2010-07-23 22:05
Message:
curl 7.19.7 (x86_64-pc-linux-gnu) libcurl/7.19.7 OpenSSL/0.9.8k
zlib/1.2.3.3 libidn/1.15
Protocols: tftp ftp telnet dict ldap ldaps http file https ftps
Features: GSS-Negotiate IDN IPv6 Largefile NTLM SSL libz
Ubuntu 10.04 64-bit
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=3033742&group_id=976
Received on 2010-07-23