Steps to Reproduce
Hi,
I have problems to send parameter via POST HTTPRequest. The url is called but no parameter are send ;-/ The posttestserver answers every time:
No Post Params.
Empty post body.
Here my configuration: Titanium Studio, build: 3.2.0.201312191547 and my source code snipplet:
var loginReq = Titanium.Network.createHTTPClient();
function doClick(e) {
if ($.username.value != '' && $.password.value != '') {
loginReq.open('POST','
http://posttestserver.com/post.php');
var params = {
username: $.username.value,
password: Ti.Utils.md5HexDigest($.password.value)
};
loginReq.send(params);
}
Can anyone help me? If you need more information, please contact me.
Actual Result
The posttestserver answers every time:
No Post Params.
Empty post body.
Expected Result
The posttestserver answers every time:
No Post Params.
Empty post body.
Hello, I 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.
Test Environment:
MAC OS X 10.8.5 TI SDK 3.2.0.GA Ti CLI 3.2.0 Alloy 1.3.0 IOS Simulator 7.0.3Test Code
Index.xmlindex.js
Server Side code
Step to Test
Create alloy mobile apps
Update my code in index.xml and index.js file and also server side code
Click on post button its return post data from server
Thanks[~appcelerator@webdt.de] Please let us know if the provided test case helps solve your problem.
Marking this resolved since we can't reproduce the issue and the reporter has not provided us with any additional updates.