If it is a configuration problem, what may be wrong?

There is not a single reference in all apache 2.4 configuration files about the methods. Only one exception, the user directories,
where the configuration is:

<IfModule mod_userdir.c>
     UserDir disabled
</IfModule>

#
# Control access to UserDir directories.  The following is an example
# for a site where these directories are restricted to read-only.
#
<Directory "/home/*/public_html">
    AllowOverride FileInfo AuthConfig Limit Indexes
    Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
    Require method GET POST OPTIONS
</Directory>

Is DELETE in apache 2.4 disabled by default? I looked into documentation and some forums, but couldn't find anything useful.
Tomorrow I will test if php can accept a DELETE request...

George

Στις 17/5/2013 00:19, ο/η Massimo Manghi έγραψε:
just a quick try gave

pokemon:~/Projects/rivet> curl -i -H 'Content-Type: application/x-rivet-tcl' -X DELETE http://localhost/webservices/AnnotationTool/simple.tcl
HTTP/1.1 405 Method Not Allowed
Date: Thu, 16 May 2013 21:17:12 GMT
Server: Apache/2.2.22 (Debian)
Allow: GET,HEAD,POST,OPTIONS
Vary: Accept-Encoding
Content-Length: 336
Content-Type: text/html; charset=iso-8859-1

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>405 Method Not Allowed</title>
</head><body>
<h1>Method Not Allowed</h1>
<p>The requested method DELETE is not allowed for the URL /webservices/AnnotationTool/simple.tcl.</p>
<hr>
<address>Apache/2.2.22 (Debian) Server at localhost Port 80</address>
</body></html>

please forgive the confused formatting. This looks like a configuration problem

 -- Massimo

On 05/16/2013 10:55 PM, Georgios Petasis wrote:
The simplest script is:

puts [::rivet::env REQUEST_METHOD]

The client is:

curl -i -H 'Content-Type: application/x-rivet-tcl' -X DELETE
http://localhost/webservices/AnnotationTool/simple.tcl

HTTP/1.1 405 Method Not Allowed
Date: Thu, 16 May 2013 20:54:07 GMT
Server: Apache/2.4.4 (Fedora) OpenSSL/1.0.1e-fips PHP/5.4.14 Rivet/2.1.2
mod_perl/2.0.8-dev Perl/v5.16.3
Allow: POST,OPTIONS,GET,HEAD,TRACE
Content-Length: 261
Content-Type: text/html; charset=iso-8859-1

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>405 Method Not Allowed</title>
</head><body>
<h1>Method Not Allowed</h1>
<p>The requested method DELETE is not allowed for the URL
/webservices/AnnotationTool/simple.tcl.</p>
</body></html>

George

Στις 16/5/2013 23:43, ο/η Massimo Manghi έγραψε:
please would you post a sample script that causes the 500 error code?

-- Massimo

On 05/16/2013 09:01 PM, Georgios Petasis wrote:
Στις 16/5/2013 21:43, ο/η Jeff Lawson έγραψε:
Make sure you are using Rivet 2.1.1

That version adds support for the DELETE and PUT method
https://issues.apache.org/bugzilla/show_bug.cgi?id=53892

I am using the latest sources. I just downloaded them today.




On Thu, May 16, 2013 at 12:59 PM, Georgios Petasis <petas...@yahoo.gr
<mailto:petas...@yahoo.gr>> wrote:

Hi all,

I am trying to create a REST api in Rivet, but I am having
problems with the DELETE http method.
What I get in the client, is HTTP 500, internal server error. I am
not sure if my tcl script gets called.

Has anyone tried this?

George



---------------------------------------------------------------------
To unsubscribe, e-mail: rivet-dev-unsubscr...@tcl.apache.org
<mailto:rivet-dev-unsubscr...@tcl.apache.org>
For additional commands, e-mail: rivet-dev-h...@tcl.apache.org
<mailto:rivet-dev-h...@tcl.apache.org>




---------------------------------------------------------------------
To unsubscribe, e-mail: rivet-dev-unsubscr...@tcl.apache.org
For additional commands, e-mail: rivet-dev-h...@tcl.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: rivet-dev-unsubscr...@tcl.apache.org
For additional commands, e-mail: rivet-dev-h...@tcl.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: rivet-dev-unsubscr...@tcl.apache.org
For additional commands, e-mail: rivet-dev-h...@tcl.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: rivet-dev-unsubscr...@tcl.apache.org
For additional commands, e-mail: rivet-dev-h...@tcl.apache.org

Reply via email to