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
400 Bad Request
Google Error
Bad Request
*Your client has issued a malformed or illegal request.*
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
> 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
>> .
>> 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.
>
>
--
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.