Note that there are some explanatory texts on larger screens.

plurals
  1. POHow can I prevent Ext JS from including an entity body in DELETE requests using a restful store?
    primarykey
    data
    text
    <p>When Ext JS issues a DELETE request from a restful store, it includes an entity body. Although this <a href="https://stackoverflow.com/questions/299628/is-an-entity-body-allowed-for-an-http-delete-request">doesn't seem to be forbidden</a> by the HTTP spec, Google App Engine doesn't accept such requests. So I'd like to know if there is a way to prevent a restful store from including a redundant entity body on DELETE requests.</p> <p><strong>Details:</strong></p> <p>Using this sample as reference: <a href="http://www.sencha.com/deploy/dev/examples/restful/restful.html" rel="nofollow noreferrer">http://www.sencha.com/deploy/dev/examples/restful/restful.html</a></p> <p>This is how the store is defined:</p> <pre><code>var store = new Ext.data.Store({ id: 'user', restful: true, // &lt;-- This Store is RESTful proxy: proxy, reader: reader, writer: writer }); </code></pre> <p>After pressing the "Delete" button, this is the request Ext JS sends:</p> <pre><code>DELETE http://www.sencha.com/deploy/dev/examples/restful/app.php/users/6 HTTP/1.1 Host: www.sencha.com User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; pt-BR; rv:1.9.2.4) Gecko/20100611 Firefox/3.6.4 (.NET CLR 3.5.30729) Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language: pt-br,pt;q=0.8,en-us;q=0.5,en;q=0.3 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 115 Connection: keep-alive Content-Type: application/json; charset=UTF-8 X-Requested-With: XMLHttpRequest Referer: http://www.sencha.com/deploy/dev/examples/restful/restful.html Content-Length: 10 Cookie: bb_sessionhash=8d75f5e42d576fb695a02bf1d24c9ff1; etc... {"data":6} </code></pre> <p>When a request in this format (with the "data" content) is submitted to Google App Engine, it replies with:</p> <pre><code>400 Bad Request </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload