client.js
This file
Path
client.js
25 lines · 405 bytes · JavaScript
Last changed by
Merge branch 'master' of github.com:visionmedia/expressTj Holowaychukbefore adoption613bdc9
History of this fileTake it
12345678910111213141516171819202122232425
var http = require('http');
var times = 50;
while (times--) { var req = http.request({ port: 3000 , method: 'POST' , headers: { 'Content-Type': 'application/x-www-form-urlencoded' } });
req.on('response', function(res){ console.log(res.statusCode); });
var n = 500000; while (n--) { req.write('foo=bar&bar=baz&'); }
req.write('foo=bar&bar=baz');
req.end();}