HTTP server with CSocketPlus
Hi, I'm currently using the CSocketPlus control for sending simple POST requests into a PHP server, and I want to create a small HTTP server for serving pages and files on the client side.
Any suggestions on how to do this will be appreciated... I don't think I should use a WinSock control because CSocket is a replacement for it.
Re: HTTP server with CSocketPlus
Doesn't matter if you use a wrapper around Winsock or Winsock itself. It sounds to me that you have to implement a subset of the HTTP protocol.
To do this you have to get really familiar with the protocol internals. This can be done by reading the HTTP RFC's: http://www.w3.org/Protocols/Specs.html.
Since you don't need anything complicated I suggest going with HTTP/1.0. You can find the spec in RFC 1945.
Basically this is what you have to do.
Regards
Re: HTTP server with CSocketPlus
Thanks, I also found other simple webserver examples with Winsock and I noticed that it's almost the same functions for implementing it with the CSocketPlus.