Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-3267] HttpClient send() with parameters works fine in 1.5.1 not in 1.6.0

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionInvalid
Resolution Date2017-06-08T21:30:02.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsiOS
Labelsn/a
ReporterFotis Spatharakis
AssigneeIngo Muschenetz
Created2011-04-15T03:40:51.000+0000
Updated2017-06-08T21:30:02.000+0000

Description

Hi everyone,
In Titanium Mobile SDK v1.5.1 I used the following code in order to call send function with a parameter:

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

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

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

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

Comments

  1. Lee Morris 2017-06-08

    Closing ticket as there has been no progress over the past 6 years. Please file a new ticket if there are any further problems.

JSON Source