CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2003
    Location
    AR
    Posts
    228

    Question 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.

  2. #2
    Join Date
    Feb 2007
    Location
    Craiova, Romania
    Posts
    326

    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

  3. #3
    Join Date
    Feb 2003
    Location
    AR
    Posts
    228

    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
  •  





Click Here to Expand Forum to Full Width

Featured