It's entertaining reading code in a language other than my own. Looks pretty much on the money tho.
What you're missing in your HandlelisteKlient is some code to read the request, figure out what is being asked for, and pump that back out.
HTTP GET requests are pretty easy to read. You can read headers with readln because they are terminated with newlines. Stop when you get a blank one.
The first header says "GET resource HTTPVersion". You can parse it on spaces and the middle
word is the resource the client is asking for. You'll have to know how to relate that request to a path on your server.
You'll also want to send some response headers in front of your data. I send these two:
HTTP/1.1 200 Ok
Content-Type: text/plain
followed by a blank line, then start writing the requested file.
Lemme know if that made enough sense to go on. I can post parts of my Wiki server on my web site if that's not too much help - some folks really like to go it on their own.
[ May 05, 2004: Message edited by: Stan James ]