curl-library
Re: Delete remote file
Date: Mon, 7 Jan 2002 10:59:34 +0100 (CET)
> CURLOPT_CUSTOMREQUEST option to set a custom
> request:
>
> curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST,
> "DELETE");
> curl_easy_setopt(curl, CURLOPT_URL,
> "http://deleteme.com/remove");
> res = curl_easy_perform(curl);
I did something like:
setProxy(...);
curl_easy_setopt(curl,CURLOPT_CUSTOMREQUEST,"DELETE");
curl_easy_setopt(curl, CURLOPT_URL,
"ftp://toto:paass@192.168.200.138/tata/plouf");
res = curl_easy_perform(curl);
And I obtain: (the file plouf really exists)
* Connected to linrout.dsdev.in (192.168.200.5)
> DELETE ftp://toto:paass@192.168.200.138/tata/plouf
HTTP/1.1
Authorization: Basic cmM6bGVjb3VyYmU=
Host: 192.168.200.138:21
Pragma: no-cache
Accept: image/gif, image/x-xbitmap, image/jpeg,
image/pjpeg, */*
* Closing connection #0
code: 501
What's wrong ?
___________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Courrier : http://courrier.yahoo.fr
Received on 2002-01-07