Here is an response/request from a web services call:
GET /api/json/reviewrequests/all/ HTTP/1.1
Host: codereview.corp
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.17) Gecko/20080829 Firefox/2.0.0.17
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Cookie: XXXX
If-Modified-Since: Wed, 08 Oct 2008 16:45:52 GMT
If-None-Match: "11f22ce59ab1cea1XXXXXXXXXXXXX"
Cache-Control: max-age=0
HTTP/1.x 200 OK
Date: Wed, 08 Oct 2008 16:45:58 GMT
Last-Modified: Wed, 08 Oct 2008 16:45:59 GMT
Etag: "11f22ce59ab1cea1XXXXXXXXXXXXXXXX"
Expires: Wed, 08 Oct 2008 16:45:59 GMT
Cache-Control: max-age=0, private
Connection: close
Transfer-Encoding: chunked
Content-Type: text/html; charset=utf-8
Content-Encoding: gzip
The response is setting the content-type to text/html. It should be application/json. This is causing me problems because I have other
apache modules that rely on the correct content-type being set.
Thanks!
Jay