Hi. Thank you for responding! Here is my code...
This is de jQuery call: $.ajax({ type: "DELETE", url: api.getUrl("delete", username, id), contentType: "application/json", complete: successByStatus(204, onSuccess, onError) }); I don't see anything on the Appengine Logs after making the request. This is the response I'm getting on Chrome: 1. Request URL: (..) 2. Request Method: DELETE 3. Status Code: 400 Bad Request 4. Request Headers 1. Accept: */* 2. Content-Type: application/json 3. Origin: (...) 4. Referer: (...) 5. User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/532.9 (KHTML, like Gecko) Chrome/5.0.307.5 Safari/532.9 6. X-Requested-With: XMLHttpRequest 5. Request Payload 1. undefined 6. Response Headers 1. Cache-Control: private, x-gzip-ok="" 2. Content-Length: 1350 3. Content-Type: text/html; charset=UTF-8 4. Date: Tue, 09 Feb 2010 14:14:00 GMT 5. Server: GFE/2.0 6. X-XSS-Protection: 0 <html><head> <meta http-equiv="content-type" content=" text/html;charset=utf-8"> <title>400 Bad Request</title> <style><!-- body {font-family: arial,sans-serif} div.nav {margin-top: 1ex}div.nav A {font-size: 10pt; font-family: arial,sans-serif} span.nav {font-size: 10pt; font-family: arial,sans-serif; font-weight: bold} div.nav A,span.big {font-size: 12pt; color: #0000cc} div.nav A {font-size: 10pt; color: black}A.l:link {color: #6f6f6f}A.u:link {color: green} //--></style> <script><!--var rc=400; //--> </script> </head> <body text=#000000 bgcolor=#ffffff> <table border=0 cellpadding=2 cellspacing=0 width=100%><tr><td rowspan=3 width=1% nowrap> <b><font face=times color= #0039b6 size=10>G</font><font face=times color=#c41200 size=10>o</font><font face=times color=#f3c518 size=10>o</font><font face=times color=#0039b6 size =10>g</font><font face=times color=#30a72f size=10>l</font><font face=times color=#c41200 size=10>e</font> </b> <td> </td></tr> <tr><td bgcolor="#3366cc"><font face=arial,sans-serif color="#ffffff"><b>Error</b> </td></tr> <tr><td> </td></tr></table> <blockquote> <H1>Bad Request </H1> *Your client has issued a malformed or illegal request.* <p> </blockquote> <table width=100% cellpadding=0 cellspacing=0><tr><td bgcolor ="#3366cc"><img alt="" width=1 height=4></td></tr></table> </body></html> This is the signature of my Spring 3 MVC controller mapped to the URL, though the request is not reaching this point: @RequestMapping(method = RequestMethod.DELETE) @ResponseBody @ResponseStatus(value = HttpStatus.NO_CONTENT) public final void delete(...); We've tried changing the method to POST and it works fine. But we need it to be a DELETE. Any ideas? Thanks! 2010/2/8 Johan Vallejo <jvall...@vnperu.com> > Francisco send your code for help you > > El 08/02/2010 10:55 a.m., Francisco Gonzalez escribió: > >> Hi. >> >> I'm developing an application that receives AJAX requests to perform some >> actions. I'm using jQuery to send the requests from the client. >> >> One of those requests is of type HTTP DELETE. >> >> The problem is that this request does not work when using Google Chrome on >> the deployed app. It gets a 400 error (bad request) as response. >> >> It works fine on my local SDK though. Firefox works well on both SDK and >> the deployed app. >> >> Anyone having the same trouble? Any ideas? >> >> Thank you in advance! >> -- >> You received this message because you are subscribed to the Google Groups >> "Google App Engine for Java" group. >> To post to this group, send email to >> google-appengine-j...@googlegroups.com. >> To unsubscribe from this group, send email to >> google-appengine-java+unsubscr...@googlegroups.com<google-appengine-java%2bunsubscr...@googlegroups.com> >> . >> For more options, visit this group at >> http://groups.google.com/group/google-appengine-java?hl=en. >> > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine for Java" group. > To post to this group, send email to > google-appengine-j...@googlegroups.com. > To unsubscribe from this group, send email to > google-appengine-java+unsubscr...@googlegroups.com<google-appengine-java%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/google-appengine-java?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.