|
-
January 1st, 2008, 09:36 PM
#1
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.
-
January 1st, 2008, 10:17 PM
#2
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
-
January 2nd, 2008, 06:44 PM
#3
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|