cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Retrieving files using curl

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 12 Feb 2008 22:15:47 +0100 (CET)

On Tue, 12 Feb 2008, manoj rs wrote:

> I'm able to transfer files to remote server through FTPS using curl..But not
> able to retrieve files using curl.

"not able" is not a very good description of the error. Exactly what is
happening with what curl version on what operating system?

> I have used this command to upload files and its working fine.
> curl -vk -u xxxxxx:xxxxxxx -T "/tmp/samplefile.txt" -Q "CWD /File_Listing"
> FTPS://111.111.111.12:990

That -Q usage is rather odd I'd say. Why don't you just tack on the directory
name to the URL?

> I have used this command to retrieve files.but its not working..

> curl -vk -u xxxxxx:xxxx FTPS://111.111.111.12:990/Directory/Errorfile
> -O "/tmp/ErrorFile"

-O doesn't take an optional argument (-o does though - note the lowercase) so
the command line is probably not what you intended it to be.

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2008-02-12