cURL / Mailing Lists / curl-library / Single Mail


Re: Delete remote file

From: raoul cridlig <>
Date: Fri, 4 Jan 2002 16:12:22 +0100 (CET)

> FTP over HTTP proxies is strictly speaking not FTP.
> Curl converts over and
> uses HTTP in those cases. HTTP has one mechanism for
> removing files, and that
> is the 'DELETE' request.

So, can I use CURLOPT_QUOTE with HTTP requests, when
I'm using proxy ?

Something like:

char buf[BUF_LGTH] = "DELETE ";
struct curl_slist *hl = NULL;

strcat(buf, hostpath);
hl = curl_slist_append(hl, buf);
curl_easy_setopt(curl, CURLOPT_URL, hostURL);

curl_easy_setopt(curl, CURLOPT_PROXY, Proxyname);
curl_easy_setopt(curl, CURLOPT_PROXYPORT, port);

curl_easy_setopt(curl, CURLOPT_QUOTE, hl);
res = curl_easy_perform(curl);
return res;

Is it ok?

Do You Yahoo!? -- Une adresse gratuite et en franšais !
Yahoo! Courrier :
Received on 2002-01-04