Problem 1
Create simple web server in the following steps:
- Create a program which dumps the request on the
standard output (in text form)
- Separate variuos parts of request and print the
result
- Print different messages depending on request
(but do not answer the request)
- Create fixed answer
- Vary answer based on request
- Modify server to allow handling multiple
requests at the same time
After each step verify that your program behaves
as expected using web browser to generate requests.
Note that only in step 4 you are creating
anver, so web browser will show nothing, but
you should look what your program prints. In step 4
and following look at the output in the web server.
Note: you can use 'strace' program to check content
of the request and what real web server sends as an answer.