cURL
Haxx ad
libcurl

Shopping cart software, Online file storage, Online photo storage, Hosted shopping cart, Contact management software, Email marketing software, Project management software, Issue tracking software, Online notepad, Web publishing software

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-library Archives

RE: response to quoted pwd command in libcurl

From: Xu, Qiang (FXSGSC) <Qiang.Xu_at_fujixerox.com>
Date: Wed, 11 Nov 2009 18:44:44 +0800

> -----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

These mail archives are generated by hypermail.

donate! Page updated November 16, 2009.
web site info

File upload with ASP.NET