Here is the content returned instead of the JSON array I would normally expect.
HTML Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"></meta>
<title>400 Bad Request</title>
<style type="text/css">
#powered_by {
margin-top: 20px;
border-top: 2px solid black;
font-style: italic;
}
#traceback {
color: red;
}
</style>
</head>
<body>
<h2>400 Bad Request</h2>
<p>Unexpected body parameters: filters[0][value], filters[0][name], filters[1][value], filters[1][name]</p>
<pre id="traceback">Traceback (most recent call last):
File "C:\Python27\lib\site-packages\cherrypy\_cprequest.py", line 606, in respond
cherrypy.response.body = self.handler()
File "C:\Python27\lib\site-packages\cherrypy\_cpdispatch.py", line 27, in __call__
test_callable_spec(self.callable, self.args, self.kwargs)
File "C:\Python27\lib\site-packages\cherrypy\_cpdispatch.py", line 137, in test_callable_spec
"%s" % ", ".join(extra_body_params))
HTTPError: (400, 'Unexpected body parameters: filters[0][value], filters[0][name], filters[1][value], filters[1][name]')
</pre>
<div id="powered_by">
<span>Powered by <a href="http://www.cherrypy.org">CherryPy 3.1.2</a></span>
</div>
</body>
</html>
and the headers
Code:
Request URL:http://localhost:8080/getMarkers
Request Method:POST
Status Code:400 Bad Request
Request Headers
Accept:application/json, text/javascript, */*
Content-Type:application/x-www-form-urlencoded
Origin:http://localhost:8080
Referer:http://localhost:8080/
User-Agent:Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/534.7 (KHTML, like Gecko) Chrome/7.0.517.44 Safari/534.7
X-Requested-With:XMLHttpRequest
Form Data
filters%5B0%5D%5Bname%5D:trfConnFilter
filters%5B0%5D%5Bvalue%5D:DELTA-WYE
filters%5B1%5D%5Bname%5D:trfHVFilter
filters%5B1%5D%5Bvalue%5D:4.16
Response Headers
Content-Length:1359
Content-Type:text/html
Date:Tue, 07 Dec 2010 20:19:43 GMT
Server:CherryPy/3.1.2
Bookmarks