Skip to content

Instantly share code, notes, and snippets.

@piscisaureus
Created January 17, 2012 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save piscisaureus/b73ec186f1021dbe9e25 to your computer and use it in GitHub Desktop.
Save piscisaureus/b73ec186f1021dbe9e25 to your computer and use it in GitHub Desktop.
var net=require('net');
var aaa = new Buffer(100);
aaa.fill('a'.charCodeAt(0));
var c=net.createConnection(1234, function() {
c.write(
"GET /click.gif?a=v&s=nu-test&p=Voorpagina&rt=0.0.0.0&u=245000987&v=420987920&vr=1&t=1326808519768 HTTP/1.1\r\n" +
"Host: stats.ilsemedia.nl\r\n" +
"User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:9.0.1) Gecko/20100101 Firefox/9.0.1\r\n" +
"Accept: image/png,image/*;q=0.8,*/*;q=0.5\r\n" +
"Accept-Language: nl,en-us;q=0.7,en;q=0.3\r\n" +
"Accept-Encoding: gzip, deflate\r\n" +
"Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7\r\n" +
"Connection: keep-alive\r\n" +
"Referer: http://www.nu.nl/\r\n" +
"Cookie: ID=10122169481886025736\r\n" )
var i = 0;
while (i < 400) {
c.write('x-foobar' + (++i) + ": aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\r\n");
console.log('written ' + i);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment