{ "id": "124242", "key": "AC-2447", "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": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2014-01-20T07:54:16.000+0000", "created": "2013-12-27T21:01:09.000+0000", "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-03-08T07:41:29.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": [], "description": "h3. Steps to Reproduce\r\nHi,\r\n\r\nI have problems to send parameter via POST HTTPRequest. The url is called but no parameter are send ;-/ The posttestserver answers every time:\r\n\r\nNo Post Params.\r\nEmpty post body.\r\n\r\nHere my configuration: Titanium Studio, build: 3.2.0.201312191547 and my source code snipplet:\r\n\r\nvar loginReq = Titanium.Network.createHTTPClient();\r\n\r\nfunction doClick(e) {\r\n if ($.username.value != '' && $.password.value != '') {\r\n loginReq.open('POST','http://posttestserver.com/post.php');\r\n var params = {\r\n username: $.username.value,\r\n password: Ti.Utils.md5HexDigest($.password.value)\r\n };\r\n loginReq.send(params);\r\n} \r\n\r\nCan anyone help me? If you need more information, please contact me.\r\n\r\nh3. Actual Result\r\nThe posttestserver answers every time:\r\n\r\nNo Post Params.\r\nEmpty post body.\r\n\r\nh3. Expected Result\r\nThe posttestserver answers every time:\r\n\r\nNo Post Params.\r\nEmpty post body.\r\n", "attachment": [], "flagged": false, "summary": "POST Request does not send Parameter", "creator": { "name": "appcelerator@webdt.de", "key": "appcelerator@webdt.de", "displayName": "Johannes Weber", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "appcelerator@webdt.de", "key": "appcelerator@webdt.de", "displayName": "Johannes Weber", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Titanium Studio 3.2.0", "comment": { "comments": [ { "id": "286129", "author": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "body": "Hello,\r\n\r\nI tested this issue with test code bellow. I can’t reproduce this issue in latest TiSDK 3.2GA. Please check my test code and let me know its working or not. If you have a different test case, please post a complete sample here.\r\n\r\nh5. Test Environment:\r\n\r\nMAC OS X 10.8.5\r\nTI SDK 3.2.0.GA\r\nTi CLI 3.2.0\r\nAlloy 1.3.0\r\nIOS Simulator 7.0.3\r\n\r\nh5. Test Code \r\n\r\nIndex.xml\r\n{code}\r\n\r\n\t\r\n\t\t\r\n\t\r\n\r\n{code}\r\nindex.js\r\n{code}\r\n$.todoWin.open();\r\n\r\nfunction postData() {\r\n\r\n\tvar xhr = Ti.Network.createHTTPClient({\r\n\t\tonload : function() {\r\n\t\t\tTi.API.info(\"STATUS: \" + this.status);\r\n\t\t\talert(\"TEXT: \" + this.responseText);\r\n\t\t\t//json = JSON.parse(this.responseText);\r\n\r\n\t\t},\r\n\t\tonerror : function(e) {\r\n\t\t\tTi.API.info(\"STATUS: \" + this.status);\r\n\t\t\tTi.API.info(\"TEXT: \" + this.responseText);\r\n\t\t\tTi.API.info(\"ERROR: \" + e.error);\r\n\t\t\talert(L('network_problem'));\r\n\t\t},\r\n\t\ttimeout : 50000\r\n\t});\r\n\r\n\tvar data = {\r\n\t\tusername : 'username',\r\n\t\tpassword : 'password'\r\n\t};\r\n\talert('data' + JSON.stringify(data));\r\n\txhr.open('POST', encodeURI('http://localhost/AppCTest/api.php'));\r\n\txhr.setRequestHeader('Content-Type', 'application/json');\r\n\txhr.send(JSON.stringify(data));\r\n}\r\n\r\n\r\n{code}\r\n\r\nServer Side code \r\n\r\n{code}\r\n \r\n 'invalid verb'));\r\n } \r\n{code}\r\n\r\nh5. Step to Test\r\n\r\n# Create alloy mobile apps\r\n# Update my code in index.xml and index.js file and also server side code \r\n# Click on post button its return post data from server \r\n\r\n\r\nThanks \r\n", "updateAuthor": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-12-28T16:12:28.000+0000", "updated": "2013-12-29T20:10:12.000+0000" }, { "id": "287177", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~appcelerator@webdt.de] Please let us know if the provided test case helps solve your problem. ", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-01-08T06:49:23.000+0000", "updated": "2014-01-08T06:49:23.000+0000" }, { "id": "288802", "author": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Marking this resolved since we can't reproduce the issue and the reporter has not provided us with any additional updates.", "updateAuthor": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-01-20T07:54:16.000+0000", "updated": "2014-01-20T07:54:16.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }