cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: How to download files to a specific directory?

From: Linus Nielsen Feltzing <linus_at_haxx.se>
Date: Thu, 08 Jul 2004 08:38:46 +0200

Glenn wrote:

> The command row looks something like this:
> D:\curl --cert D:\vib.crt --cacert D:\XXXXXX.pem "https://myURL.se/%product%/%
> 1" -O
>
> So, to resume, my question is: How can I specify (hardcode) so my files will
> be downloaded to d:\downloaded ??

Try the -o switch instead:

D:\curl --cert D:\vib.crt --cacert D:\XXXXXX.pem
"https://myURL.se/%product%/%1" -o "d:\downloaded\%1"

Linus
Received on 2004-07-08