Hi All-

I have seen mention of this same problem here:
http://stackoverflow.com/questions/2398012/how-to-use-http-method-delete-on-google-app-engine

and here:
http://www.mail-archive.com/[email protected]/msg06571.html

I am using javascipt to send a DELETE request to a specific URL.  It
works (properly deletes the resource) when I use the SDK locally using
both Chrome and Firefox.  Additionally, it works properly when I use
Firefox against the production app itself.  When I use Chrome against
the production app, I get a 400 error.  Nothing shows up in the log
(no record of a request at all) so it is obviously getting the 400
before reaching application code.

Here's the actual request and request headers from Firefox (gotten
from Firebug) (this works):

DELETE http://meta-box.appspot.com/item/aghtZXRhLWJveHIMCxIESXRlbRjBuwEM

Host: meta-box.appspot.com

User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.3) Gecko/
20100402 Namoroka/3.6.3

Accept: */*

Accept-Language: en-us,en;q=0.5

Accept-Encoding: gzip,deflate

Accept-Charset: UTF-8,*

Keep-Alive: 115

Connection: keep-alive

X-Requested-With: XMLHttpRequest

Referer: http://meta-box.appspot.com/items

Cookie:
ACSID=AJKiYcFf9c4ImzqZepfxUjGrl9M3nl8FdFP_xh14gqhrn3QZFvAO3TqJX14Z2AFNX6AtTi3iXjQKD5yvVUlgfQBZBjZ_aJhkJUOyuW4y0mt7QFkgciufavVbWbzM_4HpR_4Tr9d_aWumF2cGZ1Av1V9wF1Y5y3Y4j7duOPJuBuIPaFA7nZ8NoNK8kD41CNnmo74i6ULeGtczfQ2kxprOrazduU6dwzMIu0UQ94Rmwf9l0JKWH8jASvRp63u4as0Qg-
Zo0NMO96Qi8zEGoJwJyb7pFyup-
NlOo6JinHV68Q2TLkrWCxvdSosi21CFER7jAD0xJpCSd3qQ62gQPbaH09QiVkte7qbWcQ-
fd3ENnmxVBpzD_u2UaxpS6XP4hA2MkWUcLcaye1NQZlkDW0vm7A67LX0iWJIn_YS7bmhS8cyJSkB71QUqXEhUcbDKec99sQFpcPpQeuMcgyHSLofzv9iu-
OafbaikAMtRP-C34BavqLZb1cmsZjs

And from Chrome (gotten from Developer Tools) (this does not work):

Request URL:http://meta-box.appspot.com/item/
aghtZXRhLWJveHIMCxIESXRlbRjxqwEM
Request Method:DELETE
Status Code:400 Bad Request
Request Headers
Accept:*/*
Cache-Control:max-age=0
Content-Type:application/xml
Origin:http://meta-box.appspot.com
Referer:http://meta-box.appspot.com/items
User-Agent:Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/533.2
(KHTML, like Gecko) Chrome/5.0.342.9 Safari/533.2
X-Requested-With:XMLHttpRequest
Request Payload
 undefined
Response Headers
Content-Length:1350
Content-Type:text/html; charset=UTF-8
Date:Sun, 16 May 2010 03:19:56 GMT
Server:GFE/2.0

thanks-
Peter Keane

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to