{ "id": "63899", "key": "TIMOB-3267", "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-08T21:30:02.000+0000", "created": "2011-04-15T03:40:51.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-08T21:30:02.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 everyone,
\nIn Titanium Mobile SDK v1.5.1 I used the following code in order to\ncall send function with a parameter:

\n

xhr.open('POST', PropertyNames.serviceUrl + 'MyFunction');
\nxhr.setRequestHeader('Content-Type','application/json');
\nxhr.setRequestHeader('charset','utf-8');
\nxhr.setTimeout(30000);
\nxhr.send({'property' : x});

\n

and everything was working fine. Since I have updated Titanium\nMobile in version 1.6.0 using the same code I get this error:

\n

\"An attempt was made to call the method \\u0027MyFunction\\u0027\nusing a POST request, which is not allowed\"

\n

I looked in Kitchen Sink's examples for the http clients, I used\nthe code provided and I still get the same error. Can anyone help\nme?

{html}", "attachment": [], "flagged": false, "summary": "HttpClient send() with parameters works fine in 1.5.1 not in 1.6.0", "creator": { "name": "fotisspatharakis", "key": "fotisspatharakis", "displayName": "Fotis Spatharakis", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "fotisspatharakis", "key": "fotisspatharakis", "displayName": "Fotis Spatharakis", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "421564", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as there has been no progress over the past 6 years. Please file a new ticket if there are any further problems.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-06-08T21:30:02.000+0000", "updated": "2017-06-08T21:30:02.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }