tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bill Barker" <billwbar...@verizon.net>
Subject Re: Enabling HTTP Put
Date Sat, 03 Apr 2010 01:28:07 GMT


"André Warnier" <aw@ice-sa.com> wrote in message 
news:4BB5A06E.4080600@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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message