Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. Small web server

Small web server

Scheduled Pinned Locked Moved Web Development
c++htmlsysadmintutoriallounge
9 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    Hi all I am interested in developing a small, simple web server. I want to be able to exchange data between a server and a client via html (or unless some one knows of a better way of doing it without installing any client side apps, lie active x for example). The server will also need to be able to generate html pages containing information based on its current understanding of that data. The data wil consist of strings and check box data, as well as commands via buttons. Perhaps there are some god articles on CP that some one knows about and can point me in the direction of. Thanks in advance ---modified--- One more thing, I will be implementing it in C so any C, or C++ examples would be better.

    Morality is indistinguishable from social proscription

    L J 2 Replies Last reply
    0
    • L Lost User

      Hi all I am interested in developing a small, simple web server. I want to be able to exchange data between a server and a client via html (or unless some one knows of a better way of doing it without installing any client side apps, lie active x for example). The server will also need to be able to generate html pages containing information based on its current understanding of that data. The data wil consist of strings and check box data, as well as commands via buttons. Perhaps there are some god articles on CP that some one knows about and can point me in the direction of. Thanks in advance ---modified--- One more thing, I will be implementing it in C so any C, or C++ examples would be better.

      Morality is indistinguishable from social proscription

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Any of this Google Query help http://www.google.co.uk/search?hl=en&q=site%3Asourceforge.net+%22C%22+or+%22C%2B%2B%22+and+%22Web+Server%22&btnG=Search&meta=[^]

      L 1 Reply Last reply
      0
      • L Lost User

        Any of this Google Query help http://www.google.co.uk/search?hl=en&q=site%3Asourceforge.net+%22C%22+or+%22C%2B%2B%22+and+%22Web+Server%22&btnG=Search&meta=[^]

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        Thanks, its interesting what it shows up. I think, after digging in alittle deeper, that what I actually need is a small, single threaded http server to start with, and then possibly I will have to add the data passing (unless it can be done entirely with html) functionality, perhaps CGI? Dont know, I have very little knowledge in this area.

        Morality is indistinguishable from social proscription

        L 1 Reply Last reply
        0
        • L Lost User

          Thanks, its interesting what it shows up. I think, after digging in alittle deeper, that what I actually need is a small, single threaded http server to start with, and then possibly I will have to add the data passing (unless it can be done entirely with html) functionality, perhaps CGI? Dont know, I have very little knowledge in this area.

          Morality is indistinguishable from social proscription

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          What is the problem in using existing web servers such as Microsoft's IIS or Apache. You made mention of CGI, are you thinking of running an executable (an EXE or DLL) to process data ? If so, either IIS or Apache can run such CGI's. Just program the CGI with the functionality you need in whatever language you choose (Pascal/C++ etc). I not absolutely certain if I still got, but I used to have some Borland literature on this subject, it is some years since I last did Borland related stuff. :)

          L 1 Reply Last reply
          0
          • L Lost User

            What is the problem in using existing web servers such as Microsoft's IIS or Apache. You made mention of CGI, are you thinking of running an executable (an EXE or DLL) to process data ? If so, either IIS or Apache can run such CGI's. Just program the CGI with the functionality you need in whatever language you choose (Pascal/C++ etc). I not absolutely certain if I still got, but I used to have some Borland literature on this subject, it is some years since I last did Borland related stuff. :)

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #5

            Richard A. Abbott wrote:

            What is the problem in using existing web servers such as Microsoft's IIS or Apache

            I want to put a small web (http) server in a network driver so it can interpret html requests and resond with relevant data. THats why its got to be small, and in C.

            Morality is indistinguishable from social proscription

            L M 2 Replies Last reply
            0
            • L Lost User

              Richard A. Abbott wrote:

              What is the problem in using existing web servers such as Microsoft's IIS or Apache

              I want to put a small web (http) server in a network driver so it can interpret html requests and resond with relevant data. THats why its got to be small, and in C.

              Morality is indistinguishable from social proscription

              L Offline
              L Offline
              Lost User
              wrote on last edited by
              #6

              Short of pointing you to http://www.freertos.org/a00090.html[^], I'm sorry but have no other suggestions for you. :(

              L 1 Reply Last reply
              0
              • L Lost User

                Short of pointing you to http://www.freertos.org/a00090.html[^], I'm sorry but have no other suggestions for you. :(

                L Offline
                L Offline
                Lost User
                wrote on last edited by
                #7

                You helped a lot with the link to sourceforge, it helped me refine my problem down to just needing an http server, rather than a full web server so thanks.

                Morality is indistinguishable from social proscription

                1 Reply Last reply
                0
                • L Lost User

                  Hi all I am interested in developing a small, simple web server. I want to be able to exchange data between a server and a client via html (or unless some one knows of a better way of doing it without installing any client side apps, lie active x for example). The server will also need to be able to generate html pages containing information based on its current understanding of that data. The data wil consist of strings and check box data, as well as commands via buttons. Perhaps there are some god articles on CP that some one knows about and can point me in the direction of. Thanks in advance ---modified--- One more thing, I will be implementing it in C so any C, or C++ examples would be better.

                  Morality is indistinguishable from social proscription

                  J Offline
                  J Offline
                  Jorgen Andersson
                  wrote on last edited by
                  #8

                  Maybe here[^]

                  1 Reply Last reply
                  0
                  • L Lost User

                    Richard A. Abbott wrote:

                    What is the problem in using existing web servers such as Microsoft's IIS or Apache

                    I want to put a small web (http) server in a network driver so it can interpret html requests and resond with relevant data. THats why its got to be small, and in C.

                    Morality is indistinguishable from social proscription

                    M Offline
                    M Offline
                    Mark Schumann
                    wrote on last edited by
                    #9

                    I'm sure I'm not the only one wondering why you'd implement a web server within a network driver. I can imagine you just want a really small web server--but then it doesn't have to be part of a driver. Or I can imagine you want a driver whose configuration utility is http-based--but then the utility doesn't have to be part of the driver either. So I wonder if you could explain a little more what you're trying to do... or why. I think the best answer depends a lot on whether your environment supports things like stdin/stdout, sockets, and the like. And of course what operating system you're working with. (If your environment lets you use inetd, writing a web server gets a lot easier! You simply read a request on stdin and push the response onto stdout.)

                    1 Reply Last reply
                    0
                    Reply
                    • Reply as topic
                    Log in to reply
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes


                    • Login

                    • Don't have an account? Register

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • World
                    • Users
                    • Groups