node.js - Strange issue with ActionScript 3 -
i have created sample flash-air fb application node.js rest api. call these rest api's through action script. since updated application on fb getting following strange behavior.
as3 function: here 2 lines should make post request url
request.url = "http://sample.com:3137/getdata"; request.method = urlrequestmethod.post; =================================================================== node.js function: here lines of code in node.js
app.post('/getdata', function(req, res){ //res.send(req.params.paramtest); res.send("sending data"); }); app.get('/:methodname', function(req, res){ //res.sendfile('index.html'); res.send("in "+req.params.methodname); }); ============================================================================
here problem whenever call "/getdata" post request in as3 goes " app.get('/:methodname' " instead of " app.post('/getdata', "
if have clue please me.
thanks, swati.
issue resolved. there problem in called method name starts "get", changes method name "/userdata" , working fine.
Comments
Post a Comment