cURL / Mailing Lists / curl-library / Single Mail

curl-library

How to catch SFTP commands result ?

From: muller_b <quentin.muller_at_epitech.eu>
Date: Thu, 8 Mar 2012 22:20:59 +0000

Hi,

I have a problem using libcurl as a SFTP client; I am pointing a path via the url and I would want to do operations on files.
I am using curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, &func) which allows me to get the file listing of the directory as text in my func method.
This works, but when I send a command like curl_easy_setopt(curl, CURLOPT_QUOTE, "pwd") for instance, then I dont know where the data stream is redirected and it does not seem to be towards my func method.
The CURLOPT_VERBOSE mode might be the source of what I can read in the shell (something like ">PWD \n< /printing/working/dir") but, in that case I would like to get the "/printing/working/dir" servers answer.

Regards,

--
Quentin Muller

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-03-08