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-1467996 ] -O and -L problem

From: SourceForge.net <noreply_at_sourceforge.net>
Date: Mon, 10 Apr 2006 14:25:48 -0700

Bugs item #1467996, was opened at 2006-04-10 23:22
Message generated for change (Comment added) made by bagder
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=1467996&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: bad behaviour
>Status: Closed
>Resolution: Invalid
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Daniel Stenberg (bagder)
Summary: -O and -L problem

Initial Comment:
When there is a moved location followed by -L and the
file name is different, the file is still saved as the
original file name. eg `curl -L -O http://foo.com/bar`
redirects to http://foo/other, the file is saved as
'bar' instead of 'other'. I think this is incorrect
behavior or should be an option for 'bar' or 'other'.

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

>Comment By: Daniel Stenberg (bagder)
Date: 2006-04-10 23:25

Message:
Logged In: YES
user_id=1110

The documentation for -O explains this quite clearly:

"The remote file name to use for saving is extracted from
the given URL, nothing else."

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

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=1467996&group_id=976
Received on 2006-04-10

These mail archives are generated by hypermail.

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

File upload with ASP.NET