Files
lab_riddles/notes.md
owengavi2 f502a5c94a Updated notes.md, implemented methods in api.py
One internet enabeled service I use regularly is Google as a search engine. I would think that Google uses a very complex version of the HTTP request and response systems that we worked on in this lab. The request is my search query from my machine, and the response is the search results coming from Google servers.This lab has given me a deeper understanding of how the internet and HTTP work. Before this lab, these services that I use just worked, and I never thought about how. Now, when I load a webpage or use an internet service, I have more background as to what is going on.
2026-02-19 13:22:04 -05:00

41 lines
1.1 KiB
Markdown

# 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 1: command to get data from the url given
Line 2: sent request to server
Line 3: I will accept any data type
Line 4: Accepts gzip files which are compresseed files
Line 5: Continued connection to server
## 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.
### Request 1
http -v post https://riddles.makingwithcode.org/new riddle="What kind of man has bats on the brain?" answer="Batman"
Code: 400 Bad Request
### Request 2
http -v get https://riddles.makingwithcode.org/something
Code: 404 Not Found
### Request 3
http -v post https://riddles.makingwithcode.org/all
Code: 405 Method Not Allowed