"André Warnier" <a...@ice-sa.com> wrote in message news:4bb5a06e.4080...@ice-sa.com...
Stacy Mobley wrote:
Hi,

I was wondering if there was a way to enable HTTP Put via the API's.

What makes you think it is not enabled ?
(at least, presuming you are talking about Tomcat)

I've tried using ServletContext.setAttribute("readonly", "false") without any success.

What would that have to do with "enabling" HTTP PUT requests ?


I think that the OP wants to enable PUT in the DefaultServlet in an embedded configuration. If my psychic powers are even close, then the OP needs to override the settings for DefaultServlet in his own web.xml to enable it. It looks like it would be possible from the Embedding API, using a totally obscene combination of JMX and reflection ;).

Tomcat itself does not forbid or disable any type of valid HTTP request, PUT included. Now, it is your responsibility to provide an application, within Tomcat, which can handle PUT requests. For an example, look at the DAV application usually distributed along with Tomcat. That one allows appropriate clients to upload files to a server, and this works among other things via PUT requests.



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to