> -----Original Message-----
> From: curl-library-bounces_at_cool.haxx.se
> [mailto:curl-library-bounces_at_cool.haxx.se] On Behalf Of Xu,
> Qiang (FXSGSC)
> Sent: Wednesday, November 11, 2009 5:00 PM
> To: libcurl development
> Subject: RE: response to quoted pwd command in libcurl
>
> By the way, what is the command-line option to use to have
> the same effect as "curl_easy_setopt(handle, CURLOPT_HEADER, 1)"?
From man page, I found to achieve the purpose, the option to use is "-i/--include". However, this still doesn't add the command feedback into the output body:
=============================================================
qxu@durian(pts/1):~/opensrc/curl-7.19.6/src[128]$ ./curl -u qxu:fair123 sftp://13.198.98.190/~/scan/ -i --quote "pwd" --libcurl sftp_pwd_test.c
drwxrwxr-x 3 qxu XOG_cc 9216 Nov 6 18:30 .
drwxrwxr-x 20 qxu XOG_cc 3072 Nov 11 18:37 ..
drwxrwxr-x 2 qxu XOG_cc 7168 Nov 5 16:14 sxc
-rwxr-xr-x 1 qxu XOG_cc 560 Nov 5 16:13 ren3.pl
-rwxr-xr-x 1 qxu XOG_cc 131 Nov 2 11:56 ren1.sh
-rw-r--r-- 1 qxu XOG_cc 2106 Nov 6 18:29 test.txt
-rwxr-xr-x 1 qxu XOG_cc 88 Nov 5 16:15 ren2.sh
-rw-r--r-- 1 qxu XOG_cc 2106 Nov 6 18:30 test1.txt
=============================================================
To get the response to the command "pwd", what shall I do?
Looking forward to help,
Xu Qiang
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2009-11-11