Is there an example of a TCP Web Server?
What I want to do is a simplified web server.
1. Define port to listen on as port x.
2. Listen for connection on port x.
3. Parse the url and parameters sent by the client browser.
4. Return text as in "<html><body>Hello</body></html>"
5. Properly close connection and wait for another request.
I have looked at the excellent code by Don Dickinson for Remote Binary file
access at this location: http://dickinson.basicguru.com/code.htm
...but it is really overkill for what I want to do. I am not sure what the
bare-bones web server would include.
Does anyone know of some "bare bones" code for a web server using the TCP
commands?
Thanks in advance.
------------------
What I want to do is a simplified web server.
1. Define port to listen on as port x.
2. Listen for connection on port x.
3. Parse the url and parameters sent by the client browser.
4. Return text as in "<html><body>Hello</body></html>"
5. Properly close connection and wait for another request.
I have looked at the excellent code by Don Dickinson for Remote Binary file
access at this location: http://dickinson.basicguru.com/code.htm
...but it is really overkill for what I want to do. I am not sure what the
bare-bones web server would include.
Does anyone know of some "bare bones" code for a web server using the TCP
commands?
Thanks in advance.
------------------
Comment