[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [jetty-users] Enabling HTTP PUT
|
Try using: http://jetty.codehaus.org/jetty/jetty-6/xref/org/mortbay/servlet/PutFilter.html
Jan
On 15 August 2012 01:53, Thornton Rose <thornton@xxxxxxxxxxxxxxx> wrote:
> That section in webdefault.xml looks like this:
>
> <security-constraint>
> <web-resource-collection>
> <web-resource-name>Disable TRACE</web-resource-name>
> <url-pattern>/</url-pattern>
> <http-method>TRACE</http-method>
> </web-resource-collection>
> <auth-constraint/>
> </security-constraint>
>
> When I send a PUT, I get status code 405. I have read the PUT is disabled by
> default. If that's true, how do I enable it?
>
> On Sat, Aug 11, 2012 at 6:24 PM, Joakim Erdfelt <joakim@xxxxxxxxxxx> wrote:
>>
>> The only way I know of to disable a method like PUT, in jetty, is to
>> specify it in a security constraint in your web.xml
>>
>> Do you have something like this in your web.xml?
>> <security-constraint>
>> <web-resource-collection>
>> <web-resource-name>NoPut</web-resource-name>
>> <url-pattern>/*</url-pattern>
>> <http-method>PUT</http-method>
>> </web-resource-collection>
>> <auth-constraint>
>> </auth-constraint>
>> </security-constraint>
>>
>>
>> --
>> Joakim Erdfelt <joakim@xxxxxxxxxxx>
>> www.webtide.com
>> Developer advice, services and support
>> from the Jetty & CometD experts.
>>
>>
>>
>> On Sat, Aug 11, 2012 at 10:08 AM, Thornton Rose <thornton@xxxxxxxxxxxxxxx>
>> wrote:
>>>
>>> I'm developing a REST app with Jersey on Jetty 6. I get HTTP error 405
>>> for PUT. How do I enable HTTP PUT in the Jetty config?
>>> _______________________________________________
>>> jetty-users mailing list
>>> jetty-users@xxxxxxxxxxx
>>> https://dev.eclipse.org/mailman/listinfo/jetty-users
>>>
>>
>>
>> _______________________________________________
>> jetty-users mailing list
>> jetty-users@xxxxxxxxxxx
>> https://dev.eclipse.org/mailman/listinfo/jetty-users
>>
>
>
> _______________________________________________
> jetty-users mailing list
> jetty-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/jetty-users
>
--
Jan Bartel <janb@xxxxxxxxxxx>
www.webtide.com – Developer advice, services and support
from the Jetty & CometD experts.