Re: Problem in using libcurl to upload a file to a sftp server ?
Date: Thu, 19 Feb 2009 10:53:00 +0100 (CET)
On Thu, 19 Feb 2009, Ngo Hoa Lan Phuong wrote:
> I'm trying to use libcurl for uploading files to a remote stfpserver and has
> experienced low speed of libcurl execution. I used curl_debug_function and a
> lot of messages "0 bytes was sended" were returned. Could anyone advise how
> to resolve this problem?
What libcurl and libssh2 versions on what platform?
low SFTP upload speeds are frequently reported as you should know after
researching this topic, and it is mostly due to libssh2 not being optimally
designed for this. (Both the API and the underlying code.) It certainly has
room for improvements. You might be able to circumvent the worst effects by
doing parallell uploads.
> From my understanding, the only method to upload file is inputing file name
> and its path to URL, am I correct??
That's how you specify the target URL to upload to, yes.
-- / daniel.haxx.seReceived on 2009-02-19