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 <[email protected]
<mailto:[email protected]>> 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: [email protected]
<mailto:[email protected]>
For additional commands, e-mail: [email protected]
<mailto:[email protected]>




---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]




---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to