new sample code

Was experimenting with some send logic… updated code… when i curl to
the port in the linux machine where the server is running, i get this
message before it prints out the html header…
curl: (56) Recv failure: Connection reset by peer

i am guessing something is wrong… let me know if you figure it out. i
am going to take a break until tomorrow on this.