Feature Requests item #1364676, was opened at 2005-11-23 15:27
Message generated for change (Comment added) made by bagder
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
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: Daniel Stenberg (bagder)
Date: 2005-11-23 16: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 2005-11-23