I am looking into developing a small (read:rudimentary) web server on a linux platform and I have no idea where to start.
What I want it to be able to do is:
- Listen on a specific port
- Take HTTP post and get requests
- Respond appropriately
- No session management required
- Has to be in C or C++
- Has to run as a service on boot
I am familiar with HTTP headers and am an experienced PHP and .Net web developer, but I am not sure where to start with this task.
Can you advise me with some resources to bridge the learning curve?
From top-down, you’ll need to know about:
So you will have to learn about writing a basic Unix application, BSD socket programming for the TCP/IP network programming, and the HTTP protocol.
Commonly used texts include:
Unix application development:
TCP/IP (sockets) programming:
HTTP Protocol