cURL / Mailing Lists / curl-users / Single Mail

curl-users

Launch a shell command from ftp

From: <Francesco.Donini_at_isti.cnr.it>
Date: Tue, 30 May 2006 09:42:26 +0000

I am new to FTP and LibCurl and i would like know if i it's posisble
create, in some way, something that realize (server side) the same that
appends doing

ftp>!command (used to run local commands)

in a ftp clients.

My question is, can i run a local command from the server after that i
upload a file?

I was thinking to use :

headerlist = curl_slist_append(headerlist, buf_1);
curl_easy_setopt(curl, CURLOPT_UPLOAD, TRUE) ;
curl_easy_setopt(curl,CURLOPT_URL, REMOTE_URL);
curl_easy_setopt(curl, CURLOPT_POSTQUOTE, headerlist);
curl_easy_setopt(curl, CURLOPT_READDATA, hd_src);
curl_easy_setopt(curl,
CURLOPT_INFILESIZE_LARGE,(curl_off_t)file_info.st_size);
res = curl_easy_perform(curl);

but i don't know what i could write in Buf_1 (i looked on the rfc959 but
there is nothing about my request)

Thanks in advance.
Received on 2006-05-30