cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: url malformed error with simple curl usage

From: Kamil Dudka <kdudka_at_redhat.com>
Date: Sat, 20 Mar 2010 20:47:00 +0100

On Saturday 20 of March 2010 20:00:46 Scott Haneda wrote:
> So it is not possible to do what I desire, which is to use -O to parse the
> filename from the URL, and set an alternate save destination in the same
> command. curl will always save with -O to the cwd?

AFAIK, yes.

> If that is the case, that is great to know, as I now know I will simply
> have to cd to the preferred directory first.

Sure, doing so in a subshell might be also good idea:

$ (cd ~/Desktop && curl -O ...)

Kamil
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-03-20