cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: ftp using a configuration file

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 13 Sep 2007 15:09:53 +0200 (CEST)

On Wed, 12 Sep 2007, Chris Glon wrote:

(Please don't top-post: http://curl.haxx.se/mail/etiquette.html#top-post)

> -T "{uploadfileA,uploadfileB}"

> I tried without or only with double quotes, without or only with the curly
> braces, but I keep getting a file not found error. It works if I upload only
> one file with -T myfile

Well, as far as I can see that's how it should work. Both file names should of
course be the full path to the actual files to upload.

> Secondary question: How do you emulate the ftp 'lcd' command in a config
> file?

lcd is a ftp client command and curl really has no similar thing since curl
has no interactive mode.

> Is it better to have -T /mypath/myfile, i.e. specify the full path for
> every file?

I would say that is the only way unless you 'cd' to each dir and run curl from
there.

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2007-09-13