curl-users
Re: FTP command problem
Date: Thu, 19 Feb 2004 17:15:08 -0500
>On Thu, 19 Feb 2004, Ken Shmidheiser wrote:
>
>> In attempting to use cURL to upload a file named "test.txt", residing in my
>> Desktop directory, to the FTP subdirectory, I have checked the examples
>> here:
>
>....
>
>> curl -T -u userName:password
>> ftp://myDomain.com/directory/subdirectory/ ~/Desktop/test.txt
>
>Try this:
>
> curl -u userName:password -T ~/Desktop/test.txt
> ftp://myDomain.com/directory/subdirectory/
>
>It is important that the file you want to upload is immediately following the
>-T option.
>
>--
> Daniel Stenberg -- http://curl.haxx.se/ -- http://daniel.haxx.se/
> [[ Do not send mails to this email address. They won't reach me. ]]
Daniel,
Thanks for the almost instant response. Using your hint, I finally
got it to work with this:
curl -T ~/Desktop/test.txt ftp://user:pwd@ftp.thatsite.com/imdb_input/image/
Thanks again.
Ken
Received on 2004-02-19