HTTP Flashcards
What is a client?
service requester
anything asking/requesting a service
typically programs nowadays
request data and do stuff with data?
What is a server?
hardware or program that provides client data/service
typically programs nowadays
provides data/service
Which HTTP method does a browser issue to a web server when you visit a URL?
GET method
What three things are on the start-line of an HTTP request message?
http method (get, post, etc), target, http version
What three things are on the start-line of an HTTP response message?
http version, status code (404, etc), status text
What are HTTP headers?
similar to head element in HTML
additonal info describing information
meta data about request and reponses (content-type might become important)
Where would you go if you wanted to learn more about a specific HTTP Header?
MDN
Is a body required for a valid HTTP request or response message?
no it is optional
ex: 201 status code: created
no body necessary b/c only really need to know if smt was saved/created or not