I'd like to make a socket server using IO::Socket that returns a web document. I can create the server and make it respond to a socket client, but my problem is that when I use a web browser to access the socket server, the web browser refuses to display the text my server spits out. What headers exactly does my server need to syswrite to the socket in order for the web browser to recognize the page? For getting pages from a client I know it's GET / HTTP/1.0\n\n. What is it for returning a page?
Thanks in advance.