Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-942] Problems sending JSON requests using POST

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:54:44.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.4.0
ComponentsiOS
Labelsios, ipad, json, mobile, post
ReporterP. Barrett Little
AssigneeReggie Seagraves
Created2011-04-15T02:39:45.000+0000
Updated2011-04-17T01:54:44.000+0000

Description

Hi,

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

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

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

Regards,
Barrett

Comments

  1. Jeff Haynie 2011-04-15

    i have fixed this on head.

JSON Source