cURL / Mailing Lists / curl-library / Single Mail

curl-library

https/sftp library (need help)

From: Naved Khan <navedk_at_cybage.com>
Date: Wed, 2 Apr 2003 14:41:11 +0530

Hi,

Thanks for the prompt reply. I will try to elaborate a few things...

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?
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. The requirement is to code programmatically so calling
an executable is not an option here. Can libCurl be used in the scenario
mentioned above?
Sorry if the questions sound very elementary.

Regards,
Naved

-----Original Message-----
From: Daniel Stenberg [mailto:daniel_at_haxx.se]
Sent: Wednesday, April 02, 2003 1:56 PM
To: libcurl Mailing list
Cc: Naved Khan
Subject: Re: https/sftp library (need help)

On Wed, 2 Apr 2003, Naved Khan wrote:

> I want to develop a cross-platform library of api for https and sftp.

I figure this is the ftp-lookalike thing on top of SSH? Isn't that basicly a
user-interface thing to perform the same operation 'scp' does?

> All the basic functionality is needed for both protocols, including the
> timeouts. Redirects should preferably be handled automatically. All
> standard HTTPS errors must be recognized.

What "standard HTTPS errors" are you referring to then?

> It should be packaged in an easy to use (preferably object-oriented) api.
> Can I use libCURL to achieve the same.

I believe it can, for HTTPS at least.

> I will look into the documentation provided on this site. Does anyone
> have a C++ wrapper library build around libCurl for https

As is shown on the curl site, curlpp is one:
http://www.sourceforge.net/projects/curlpp

> and sftp?

libcurl has no sftp support, and I don't see it happening in the nearest
future either (if ever).

> Is FTPS a feasible alternative to SFTP considering the fact that FTPS is a
> somewhat "hacky" protocol with SSL for the initial control connection and
> the transfer connection is unencrypted?

"FTPS" is not a standardized protocol so your description above is only true
for certain implementations. libcurl's "FTPS" support was written against a
server that supported the kind you explain above.

There are however more serious attempts on making secure FTP using SSL that
are more secure, but libcurl does not currently support those.

Of course, any help to make libcurl support them will be appreciated.

--
 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