This is the mail archive of the
mailing list for the Cygwin project.
RE: The -O option of curl under cygwin.
Hongyi Zhao Wrote on Monday, January 02, 2012 10:51 PM
On Mon, 02 Jan 2012 15:51:09 +0100, marco atzeri wrote:
>> I think you misunderstood the curl documentation, in this way it works
>> as you expect
>> curl -L
>> -o ./miktex/setup/setup-2.9.4321.exe --create-dirs
>Thanks for your hints. But you can see the following explanations in the curl
>-O/--remote-name Write output to a file named as the remote file
>Furthermore, in my case the destination folder, i.e, ./miktex/setup/,
>already exists there, so I shouldn't trouble the --create-dirs option.
>I only want to put the setup-2.9.4321.exe in the destination folder
>without giving the destination filename, i.e, let curl use the filename
>appeared in the remote site/webpage to name the downloaded file automatically.
>Any hints for my purpose?>
curl -O http://mirrors.ctan.org/systems/win32/miktex/setup/setup-2.9.4321.exe
Works for me
Disclaimer: Statements made herein are not made on behalf of NIAID.