从jQuery到CherryPy的DELETE请求不发送参数

出于某种原因,当我从jQuery(1.4.4)向CherryPy服务器(3.1.2)发出DELETE HTTP请求时,没有发送任何参数。 POST,GET和PUT请求发送参数就好了。 这是CherryPy服务器代码:
import cherrypy

class DeleteExample(object):
    exposed = True

def PUT(self, *args, **kwargs):
    print kwargs

def DELETE(self, *args, **kwargs):
    print kwargs

global_conf = {'global': {'server.socket_port': 8080},
            '/': {'request.dispatch': cherrypy.dispatch.MethodDispatcher(),
                  'tools.staticdir.root': '/home/kevin/workspace/delete_example',
                      'tools.staticdir.on': True,
                      'tools.staticdir.dir': 'src',
                      'tools.staticdir.index': 'index.html'}
            }
cherrypy.quickstart(DeleteExample(), config=global_conf)
这里是带有jQuery代码的index.html:
<html>
    <head>
        <script type="text/javascript" src="jquery-1.4.4.js"></script>
        <script>
       $(document).ready(function() {
           $.ajax({
           type: "PUT",
           url: "http://localhost:8080",
           dataType: "json",
           data: {first: 10, second: 200}
            });

            $.ajax({
            type: "DELETE",
            url: "http://localhost:8080",
            dataType: "json",
            data: {first: 10, second: 200}
            });
        });
       </script>
    </head>
    <body>
    </body>
</html>
这是从CherryPy Web服务器打印出来的:
{'second': '200', 'first': '10'}
127.0.0.1 - - [23/Jan/2011:04:02:48] "PUT / HTTP/1.1" 200 19 "http://localhost:8080/" "Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101206 Ubuntu/10.04 (lucid) Firefox/3.6.13"
{}
127.0.0.1 - - [23/Jan/2011:04:02:51] "DELETE / HTTP/1.1" 200 19 "http://localhost:8080/" "Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101206 Ubuntu/10.04 (lucid) Firefox/3.6.13"
正如您所看到的,使用.ajax函数生成的PUT和DELETE请求除了类型之外完全相同。但是,由于某种原因,PUT发送所有参数,而DELETE不发送任何参数。 有没有人知道为什么DELETE请求没有发送正确的参数?     
已邀请:
您似乎正在尝试向请求正文发送DELETE请求,这是不寻常的。 (同样适用于GET)。     

要回复问题请先登录注册