Request method 'PUT' not supported

October 18, 2012 - 8:29am #1

Hi

Trying to update an existing target using PUT in place of POST and get:

INFO: <html><head><title>Apache Tomcat/6.0.35 - Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP Status 405 - Request method 'PUT' not supported</h1><HR size="1" noshade="noshade"><p><b>type</b> Status report</p><p><b>message</b> <u>Request method 'PUT' not supported</u></p><p><b>description</b> <u>The specified HTTP method is not allowed for the requested resource (Request method 'PUT' not supported).</u></p><HR size="1" noshade="noshade"><h3>Apache Tomcat/6.0.35</h3></body></html>

Can you look into enabling that or let me know what I am doing wrong? My assumption is that everything about the request is the same as a POST with the exception of the method itself.

Thanks, Jesper

Request method 'PUT' not supported

October 19, 2012 - 7:14am #5

Hi Duane

You were totally right and thanks for taking the time to guide this headless coder :)

Have a great weekend!

/Jesper

 

Request method 'PUT' not supported

October 18, 2012 - 1:20pm #4

I'm not with Qualcomm - I'm on standard business-class cable (RoadRunner).

You can't just simply change the POST to a PUT, since the PUT requires the target_id in the request path.  Is it possible you're putting it in the JSON instead?

Request method 'PUT' not supported

October 18, 2012 - 11:42am #3

Ok thanks!

The response I get from you server is still:

HTTP Status 405 - Request method 'PUT' not supported

Can you explain that?

Have you tried from outside your network?

All I have done is to take the PostRequest that goes through fine and responds that target already exists and change the java HttpPost to a  HttpPut.

Request method 'PUT' not supported

October 18, 2012 - 11:23am #2

It's working for me - I've successfully update the application_metadata for an existing target using PUT /targets/{target_id} and confirmed delivery of that new metadata to the client.

Log in or register to post comments