# Request and response notes ## Checkpoint 1 Read the request and response shown on lines 1-32 of the lab. Choose five lines from the request and/or the response. For each, make an inference about the meaning of the line, and some situation in which it might be useful. You are welcome to research the meanings of these headers, but it's also fine to speculate for now. - Line 6 (Host): I think this line shows where the pulled data is hosted, in this case the mwc website. - Line 7: (User-Agent): I was curious why this line said "HTTPie" instead of "HTTP" so I wanted to research it. Apparently this line shows a version of HTTP that is used for APIs, improving the user-friendliness. - Line 4: (Connection): I think this line ensures that the connection between the host and the user stays "alive" until the user (maybe also host?) shuts it down. - Line 14 (Content-Type): This line shows the type of program the user operates. - Line 18 (Server): I think this line shows the version and name of the program the user operates. ## Checkpoint 2 The goal of this checkpoint is to see what status codes you can get back from the riddle server. Paste below several `http` requests and the status codes they return. 1. http -v post https://riddles.makingwithcode.org/guess id=20 answer="to get to the other side" HTTP/1.1 200 OK 2. http -v get https://riddles.makingwithcode.org/answer id=4 HTTP/1.1 404 Not Found 3. http -v post https://riddles.makingwithcode.org/new question="Why did the fly never land on the computer" answer="He was afraid of the world wide web" HTTP/1.1 200 OK 4. http -v post https://riddles.makingwithcode.org/guess id=11 answer="it's me" HTTP/1.1 200 OK