cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: https/sftp library (need help)

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 2 Apr 2003 14:31:32 +0200 (CEST)

On Wed, 2 Apr 2003, Naved Khan wrote:

> A client application will use this cross-platform library to basically
> transfer CSV files to a server using SFTP. SFTP is not a requirement. If
> you know of a file transfer protocol that has standard APIs and that is
> secure, please tell me. I looked quickly at FTPS and it seems like a viable
> option. Do you think it would be substantially easier to implement FTPS
> client library rather than SFTP? Also, since libCurl supports FTPS, it
> might be a good option. Any suggestions on that?

If I were you, I'd go with making it use plain HTTPS PUT or POST operations,
as that is even easier to implement. Just get a web server with SSL support
(like Apache with mod_ssl) and upload the data with libcurl.

> Once, the files are successfully transferred, the client application will
> send a well formed XML request, to announce the upload and to take further
> actions, to the server. HTTPS will be used here. The standard errors I
> mentioned are any errors that might occur while posting the request and
> getting a response.

Ok, you basicly mean a good error code treatment then? If so, I think I can
say that libcurl meets this requirement.

> The requirement is to code programmatically so calling an executable is not
> an option here. Can libCurl be used in the scenario mentioned above?

It can indeed.

-- 
 Daniel Stenberg -- curl, cURL, Curl, CURL. Groks URLs.
-------------------------------------------------------
This SF.net email is sponsored by: ValueWeb: 
Dedicated Hosting for just $79/mo with 500 GB of bandwidth! 
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
Received on 2003-04-02