> -----Original Message-----
> From: [email protected] 
> [mailto:[email protected]] 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) <[email protected]>:
> [...]
> > 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 libcurl.so is compiled with the 
> support of libssh2.so?
> 
> 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":
> 
> mich...@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 http://curl.netmirror.org/docs/manual.html, I got to know that 
---

1. Get a file from an SSH server using SFTP:
 
        curl -u username sftp://shell.example.com/etc/issue

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

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: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html

Reply via email to