{ "id": "63886", "key": "TIMOB-3254", "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": [], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2017-06-08T23:22:04.000+0000", "created": "2011-04-15T03:40:35.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-06-08T23:22:04.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}
Whenever I try to send data with an HTTPClient\nit forces the connectionType on POST, even if I set it on GET with\nHTTPClient.open(\"GET\", url)
\nI figured out a temporary workaround for this thing, but it\nwould be great if it could be fixed.
\n\nif (method == \"GET\" && data != null ) {\n if ( typeof(data) == 'object' ) {\n var pairs = [];\n for ( var key in data ) {\n if (data.hasOwnProperty(key) ) { pairs.push(key + \"=\" + data[key]); }\n }\n url += \"?\" + pairs.join('&');\n } else if ( typeof(data) == 'string' ) {\n url += \"?\" + data;\n }\n data = null;\n}\nvar loader = Titanium.Network.createHTTPClient();\nloader.open(method, url);\n/* loader.onload ... */\nloader.send(data);
\n