Haxx ad

curl's project page on


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: <>
Date: Wed, 14 Dec 2005 20:17:46 -0800

Bugs item #1381170, was opened at 2005-12-14 20:17
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:

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: None
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.



You can respond by visiting:
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