Answer to Question #245274 in C++ for Humaira

Question #245274
Your task is to implement a very simple HTTP server. Your server should respond to the HEAD and GET verbs as described below and for all other verbs reply with a 501 error message, and an empty body. You should only allow requests for the root document (/) all other documents should report 404 errors. Your root document should consist of a random number of lines of the nursery rhyme "Hickory Dickory Dock", the official lyrics are listed below. You should serve the document as plain text (to keep things simple). You reply must include a correct Content-Type header of text/plain and a content-Length header that reflects the size of the data that you are sending. When generating random numbers the rand() and srand() methods are sufficient, but be careful where you seed the random number generator. You may use the last 4 digits of your student number as the port to listen on
1
Expert's answer
2021-10-01T02:45:05-0400
Dear Humaira, your question requires a lot of work, which neither of our experts is ready to perform for free. We advise you to convert it to a fully qualified order and we will try to help you. Please click the link below to proceed: Submit order

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS