Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

How can I enable REST methods (POST, GET, PUT, DELETE) for Apache 2 under Windows ?

share|improve this question

2 Answers 2

You may consider running the Axis2 engine. You may also be interested in wso2.

Hope this helps.

share|improve this answer

As I understand it, REST simply makes use of the existing HTTP protocol - so when you wnat to use a REST POST, at teh protocol layer you're really using an HTTP POST. That would mean that REST methods should be enabled by default on all web servers. Now, if you want the server to do anything interesting with REST calls, you'd still need to write a program to do interesting stuff - just like writing any other CGI program.

share|improve this answer
    
I know that, but by default Apache does not support other methods than GET and POST. –  Christian Toma Aug 10 '09 at 13:47
1  
According to apacheweek.com/features/put : <quote>There is some confusion about whether Apache supports the PUT method. In fact, Apache handles PUT exactly like it handles the POST method. That is, it supports it, but in order for it to do anything useful you need to supply a suitable CGI program. This is on contrast to the GET method, which Apache supports internally by sending back files or SSI documents. </quote> There's further instruction for setting up a CGI script to handle HTTP methods under that link. –  atk Aug 10 '09 at 14:40

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.