cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Prevent directory listing when removing a file

From: pc world <0188801_at_googlemail.com>
Date: Sat, 15 Jan 2011 09:58:38 +0100

Daniel Stenberg <daniel <at> haxx.se> writes:

> It gets the dir because you give it a URL that is a directory (the
trailing
> slash is implied when there's only a host name).
>
> Set CURLOPT_NOBODY to 1, and I'm not sure if you also need to make the URL

> identify a file, and it should stop.

Thank you, setting CURLOPT_NOBODY to 1 worked.

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-01-15