{ "id": "61574", "key": "TIMOB-942", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "11224", "name": "Release 1.4.0", "archived": true, "released": true, "releaseDate": "2010-07-16" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:54:44.000+0000", "created": "2011-04-15T02:39:45.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "ios", "ipad", "json", "mobile", "post" ], "versions": [], "issuelinks": [], "assignee": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T01:54:44.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "{html}

Hi,

\n

We are experiencing an issue while submitting POST requests as\napplication/json. The content type received is always\nx-www-form-urlencoded, rather than application/json, regardless of\nthe content type defined with setRequestHeader.

\n

xhr.setRequestHeader(\"Content-Type\",\"application/json;\ncharset=utf-8\");

\n

The content type is submitted correctly with GET requests.\nPlease let me know if I can provide any additional information to\nhelp.

\n

Regards,
\nBarrett

{html}", "attachment": [], "flagged": false, "summary": "Problems sending JSON requests using POST", "creator": { "name": "p.barrettlittle", "key": "p.barrettlittle", "displayName": "P. Barrett Little", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "p.barrettlittle", "key": "p.barrettlittle", "displayName": "P. Barrett Little", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "124399", "author": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "body": "{html}

i have fixed this on head.

{html}", "updateAuthor": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:39:46.000+0000", "updated": "2011-04-15T02:39:46.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }