Haxx ad

curl's project page on


cURL > Mailing List > Monthly Index > Single Mail

curl-library Mailing List Archives

RE: libcurl and libssh2

From: Xu, Qiang (FXSGSC) <>
Date: Fri, 9 Oct 2009 16:05:50 +0800

> -----Original Message-----
> From:
> [] On Behalf Of Michael Wood
> Sent: Friday, October 09, 2009 3:24 PM
> To: libcurl development
> Subject: Re: libcurl and libssh2
> 2009/10/8 Xu, Qiang (FXSGSC) <>:
> [...]
> > Our printer does not use the executable "curl", but only
> its library. In this case, can I know its version? One more
> thing is, how to ensure is compiled with the
> support of
> When you build libcurl you can specify the path to the
> libssh2 pkgcconfig file in the PKG_CONFIG_PATH environment
> variable. You could also use --with-libssh2=PATH option to
> the "configure" script.
> See also "./configure --help":
> michael_at_egret:~/src/curl-7.19.4$ ./configure --help
> `configure' configures curl - to adapt to many kinds of systems.
> Usage: ./configure [OPTION]... [VAR=VALUE]...
> [...]
> --with-libssh2=PATH Where to look for libssh2, PATH
> points to the
> LIBSSH2 installation (default:
> /usr/local/lib); when
> possible, set the PKG_CONFIG_PATH
> environment
> variable instead of using this option
> --without-libssh2 disable LIBSSH2
> [...]

Thanks a lot, Michael!

By the way, from, I got to know that ---

1. Get a file from an SSH server using SFTP:
        curl -u username s

2. Upload data from a specified file, login with user and password:
        curl -T uploadfile -u user:passwd

This is command-line usage. Our printer is using the library, so I want to know what option should be set with curl_easy_setopt(), in case of file transfer via SFTP?

Thanks a lot,
Xu Qiang
List admin:
Received on 2009-10-09

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET