cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-users Mailing List Archives

Re: FTP command problem

From: Ken Shmidheiser <kshmidheiser_at_alltel.net>
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

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET