-
-
Save piscisaureus/b73ec186f1021dbe9e25 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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