cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Unexpected cURL Behavior

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 24 Jun 2009 19:56:08 +0200 (CEST)

On Wed, 24 Jun 2009, ShivanX wrote:

> I used the following command: "curl -X DELETE
> https://friends-site/test.html" which did delete the file but also deleted
> the entire document root directory. Can someone explain how this might have
> happened?

Sure: your web server decided that "DELETE /test.html" meant that and
performed that action. I'd suggest you contact the server vendor and ask them
for further support on this. Your server deleting "the entire document root
directory" is not curl's fault.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users
FAQ:        http://curl.haxx.se/docs/faq.html
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2009-06-24