1
0
mirror of https://github.com/alibaba/anyproxy.git synced 2025-05-16 11:58:28 +00:00
anyproxy/postReceiver.js

19 lines
252 B
JavaScript
Raw Normal View History

2014-08-21 17:40:02 +08:00
var http= require("http");
var s = http.createServer(function(req,res) {
var total = "";
req.on("data",function(chunk){
total += chunk;
});
req.on("end",function(){
console.log(total);
});
console.log(req);
// body...
});
s.listen(80);