{ "id": "137784", "key": "AC-971", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2015-09-28T15:43:49.000+0000", "created": "2014-10-08T07:01:21.000+0000", "labels": [ "HTTP", "IOS", "POST", "TCSupportTriage" ], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-03-08T07:37:17.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "when use http post, there's always a ':' appended to data sent if the data is a string\r\n\r\n{quote}\r\nh = Ti.Network.createHTTPClient({\r\n\tcache: false\r\n});\r\nh.open(\"POST\", \"http://some_url.com\");\r\nh.send( '{\"data\":[], \"data2\":{}}' );\r\n{quote}\r\n\r\nthe request sent is intercepted by http proxy server, to capture the photo attached.", "attachment": [ { "id": "51852", "filename": "post_bug.tiff", "author": { "name": "workingenius", "key": "workingenius", "displayName": "商汝麒", "active": true, "timeZone": "Asia/Hong_Kong" }, "created": "2014-10-08T07:01:21.000+0000", "size": 8600, "mimeType": "image/tiff" } ], "flagged": false, "summary": "tisdk 3.4.0.GA, ios, http post string error ", "creator": { "name": "workingenius", "key": "workingenius", "displayName": "商汝麒", "active": true, "timeZone": "Asia/Hong_Kong" }, "subtasks": [], "reporter": { "name": "workingenius", "key": "workingenius", "displayName": "商汝麒", "active": true, "timeZone": "Asia/Hong_Kong" }, "environment": "titanium sdk 3.4.0.GA\r\nios 8", "comment": { "comments": [ { "id": "340222", "author": { "name": "morahman", "key": "morahman", "displayName": "Motiur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "body": "Hello,\r\nIt's not a bug, perhaps related to code formatting.\r\nIt work's if we set something like this. Check [HTTPClient document|http://docs.appcelerator.com/platform/latest/#!/guide/HTTPClient_and_the_Request_Lifecycle] also.\r\n\r\n*Testing Environment:*\r\nCommand-Line Interface, version 4.1.2,\r\nTi SDK: 4.1.0.GA,\r\nPlatform: Android,iOS\r\nStudio Version: 4.1.1\r\n\r\n*Test Code*\r\n{code}\r\nvar xhr = Ti.Network.createHTTPClient();\r\nxhr.onload = function(e) {\r\n\t//handle response, which at minimum will be an HTTP status code\r\n\tTi.API.info(this.responseText);\r\n};\r\nxhr.open('POST', 'http://some_url.com');\r\n\r\nxhr.send({\r\n\t\"data\" : \"[]\",\r\n\t\"data2\" : \"{}\"\r\n});\r\n{code} \r\n\r\nInitiated of\r\n{code}\r\nh.send('{\"data\":[], \"data2\":{}}');\r\n{code}\r\n\r\n{code:title=.php}\r\n\r\n \r\n\r\n\r\n{code}\r\n{code:title=output}\r\n[]{}\r\n{code}\r\n\r\nThanks.", "updateAuthor": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-01-22T08:48:54.000+0000", "updated": "2015-09-28T15:43:36.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }