Hi ,
i am trying to post a json to a web service built with .net.I use above
code :
var request = require('request');
request.post({
url: 'http://example.com/api/login',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({
service: "login",
username: "username",
password: "password",
appId: "2002"
})
}, function(error, response, body){
console.log(response.body);
});
The response is:
=Kk0Т4H~Qv֖dljS0ta^$?M
Ŕu]
-3P
d]E粤&ǮDt!{A}-8Ő"yau9RH^kD,xR8el2&0<'96^R{&D^?_/zZ\QUݾ:NZMPZrԮyZc)^r~;\-@JT{oHޡmƶDHg긮e>89|$SIIkGgU&YKT
q_
Does any anyone knows why it falls?
--
Job board: http://jobs.nodejs.org/
New group rules:
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules:
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
---
You received this message because you are subscribed to the Google Groups
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/nodejs/dcb3b80f-66cb-4dc5-8b36-e500b49c19dc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.