cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-tracker mailing list Archives

[ curl-Bugs-1381170 ] curl -L -O uses "remote filename" of initial, not result URL

From: SourceForge.net <noreply_at_sourceforge.net>
Date: Thu, 15 Dec 2005 00:02:13 -0800

Bugs item #1381170, was opened at 2005-12-15 05:17
Message generated for change (Settings changed) made by bagder
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=1381170&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: Closed
>Resolution: Invalid
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Daniel Stenberg (bagder)
Summary: curl -L -O uses "remote filename" of initial, not result URL

Initial Comment:
Look at the attached log: I'm using both -L and -O to
retrieve a file through a redirected URL which fails
because cURL uses the "basename" of the initial
(redirected) URL instead of the basename of the
resolved URL (which should be the expected behaviour).
The initial URL used here contains invalid characters
for a filename.

Proposed fix: retrieve the remote filename from the
final URL.

<skanthak_at_nexgo.de>

----------------------------------------------------------------------

>Comment By: Daniel Stenberg (bagder)
Date: 2005-12-15 09:02

Message:
Logged In: YES
user_id=1110

Well, the -O behaviour is documented in the man page and it
clearly says it extracts the name from the given URL.

You're asking for a new feature that I wouldn't object to,
but that is not how -O works today.

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=1381170&group_id=976
Received on 2005-12-15

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET