1) Get a woreking server
2) Telnet to it, make sure it works
3) Split the requet string
4) Telnet a request, see filename
5) Try with chrome
6) Open and copy the file
7) Prepend "HTTP/1.0 200 OK\r\n\r\n"
8) Do "HTTP/1.0 200 OK\r\nContent-Type:?????\r\n\r\n"
-------------------------------
s = MakeServereSocket
while forevere
fd = accept
error check
read
error check
null term
cout
split the request .. get filename
open the file
if it works
while not done
read from the file
write to the fd
else
write "HTTP/1.0 404 Not found\r\nContent-Type: text/html\r\n\r\nI hate you
You stink
"
close(fd)