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-Feature Requests-1364676 ] detect -O filename from last redirect

From: SourceForge.net <noreply_at_sourceforge.net>
Date: Wed, 07 Mar 2007 04:38:01 -0800

Feature Requests item #1364676, was opened at 2005-11-23 09:27
Message generated for change (Comment added) made by jtuttle
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=350976&aid=1364676&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: command line client
Group: download
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: anatoly techtonik (techtonik)
Assigned to: Nobody/Anonymous (nobody)
Summary: detect -O filename from last redirect

Initial Comment:
If using -O option to write output file curl tries to
detect filename immediately. Quite often the links from
download sites are intermediary and lead to some kind
of redirect script such as
http://go.microsoft.com/fwlink/?LinkId=51433. When you
try to download this link specifying -O option curl
fails with the following error.

Warning: Failed to create the file ?LinkId=51433
* Failed writing body
100 212 100 212 0 0 106 0 0:00:02
 0:00:01 0:00:01 268* Closing connection #0

Can curl detect filename from last redirect?

Thanks.

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

Comment By: Jim T. (jtuttle)
Date: 2007-03-07 07:38

Message:
Logged In: YES
user_id=972831
Originator: NO

I'd like to second this motion. Could this be fixed?

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

Comment By: Daniel Stenberg (bagder)
Date: 2005-11-23 10:38

Message:
Logged In: YES
user_id=1110

It certainly _could_ do it, sure. In the similar spirit, it
could of course also be made to recognize the
Content-Disposition: header that might contain a file name
of the remote file as well...

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

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=350976&aid=1364676&group_id=976
Received on 2007-03-08

These mail archives are generated by hypermail.

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

File upload with ASP.NET