cURL / Mailing Lists / curl-users / Single Mail


RE: Uploading multiple files

From: Clayton, Richard <>
Date: Sun, 26 Jun 2005 17:02:58 +0100

I had this - and got round it by specifying the host for each file you want to send - even if all files are going to the same host.

It means you cannot use wild cards and have to read the directory to get the file names and make the command line.

Therefore I end up with something like

curl -T E:\test2.txt -T E:\test4.txt -T E:\test6.txt -u user:pass

If anyone knows of a better way I would be most grateful.


> -----Original Message-----
> From: []
> Sent: Sunday, June 26, 2005 4:05 PM
> To:
> Subject: Uploading multiple files
> Hello,
> Perhaps somebody can shed light on this simple issue:
> I'm trying to run the command below in order to upload all files in a
> directory to an FTP server:
> curl -u user:pass -T E:\*.txt
> However, I keep getting this (only first is file uploaded):
> % Total % Received % Xferd Average Speed Time Time Time
> Current
> Dload Upload Total Spent Left
> Speed
> 0 3 0 0 0 3 0 9 --:--:-- --:--:-- --:--:--
> 0
> curl: (6) Could not resolve host: E:\test2.txt; Host not found
> curl: (6) Could not resolve host: E:\test4.txt; Host not found
> curl: (6) Could not resolve host: E:\test8.txt; Host not found
> I just can't figure out what I'm doing wrong.
> My environment is WinXP. The remote FTP server is Win2000
> Thanks!

This message is sent in strict confidence for the addressee only. It may
contain legally privileged information. The contents are not to be disclosed
to anyone other than the addressee. Unauthorised recipients are requested
to preserve this confidentiality and to advise the sender immediately of any
error in transmission.
This footnote also confirms that this email message has been swept for the
presence of computer viruses, however we cannot guarantee that this message
is free from such problems.
Received on 2005-06-26