cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Delete remote file

From: raoul cridlig <rcridlig_at_yahoo.fr>
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 @yahoo.fr gratuite et en franšais !
Yahoo! Courrier : http://courrier.yahoo.fr
Received on 2002-01-04