[TIMOB-3267] HttpClient send() with parameters works fine in 1.5.1 not in 1.6.0
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | Low |
| Status | Closed |
| Resolution | Invalid |
| Resolution Date | 2017-06-08T21:30:02.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | n/a |
| Components | iOS |
| Labels | n/a |
| Reporter | Fotis Spatharakis |
| Assignee | Ingo Muschenetz |
| Created | 2011-04-15T03:40:51.000+0000 |
| Updated | 2017-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?
Closing ticket as there has been no progress over the past 6 years. Please file a new ticket if there are any further problems.