implementing a REST API server, when capturing PUT requests , the body of the message is empty
Server: Windows Server Web SP2 IIS: ver 7.0.6000.16386 node v0.8.16 iisnode v0.2.2
test code:
var server = http.createServer(function (request, response) {
var data = '';
request.on('data', function (chunk) {
data += chunk;
console.log(data)
});
request.on("end", function(){
response.writeHead(200, { 'Content-Type': 'application/json' });
response.end(data);
});
});