cURL / Mailing Lists / curl-library / Single Mail


RE: libcurl and libssh2

From: Xu, Qiang (FXSGSC) <>
Date: Sat, 24 Oct 2009 14:36:46 +0800

> -----Original Message-----
> From:
> [] On Behalf Of
> Daniel Stenberg
> Sent: Friday, October 23, 2009 7:31 PM
> To: libcurl development
> Subject: RE: libcurl and libssh2
> On Fri, 23 Oct 2009, Xu, Qiang (FXSGSC) wrote:
> > If this option is set with a valid file pointer, I guess the "ls"
> > result displayed in stdout will be redirected to the file.
> Yes it will. libcurl delivers data this way only.

Another question. Can the function curl_easy_getinfo() only be used in http connection and transfer?
/* from */

Pass a pointer to a long to receive the last received HTTP or FTP code. This option was known as CURLINFO_HTTP_CODE in libcurl 7.10.7 and earlier. This will be zero if no server response code has been received. Note that a proxy's CONNECT response should be read with CURLINFO_HTTP_CONNECTCODE and not this.
In SFTP communication with libcurl, can the function still be used with CURLINFO_RESPONSE_CODE?

Xu Qiang
List admin:
Received on 2009-10-24