cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-tracker Archives

[ curl-Bugs-3138337 ] Remote-name into a redirection

From: SourceForge.net <noreply_at_sourceforge.net>
Date: Thu, 16 Dec 2010 02:58:29 +0000

Bugs item #3138337, was opened at 2010-12-16 03:58
Message generated for change (Tracker Item Submitted) made by zeokat
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=3138337&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: new feature request
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Zeokat (zeokat)
Assigned to: Daniel Stenberg (bagder)
Summary: Remote-name into a redirection

Initial Comment:
Using curl 7.21.2 (i386-pc-win32) libcurl/7.21.2 zlib/1.2.5, under Windows XP SP3.
When i make a request to get a file from a url like: http://www.web.com/getfile.html ,
then exist a redirection to http://www.web.com/myfile.zip and cURL follow it correctly
but cURL output name is getfile.html and it should be myfile.zip.

Command used: cURL -L -O --progress-bar --cookie "auth=cookie.Value" http://www.web.com/getfile.html

I know that can setup the output file name, but using "-O/--remote-name Write output to a file named as the remote file" , into a redirection cURL not writes what i can call exactly remote name, since it uses name of the first request and not the name of the redirection.
From my point of view, nowadays with "rewrite engines" and "fiendly urls" should be an option to use last redirection filename or simply use it as default output filename.

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

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

These mail archives are generated by hypermail.

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

File upload with ASP.NET