HTTP Flashcards
What is a client?
a desktop computer or workstation that is capable of obtaining information and applications from a server
Source: https://www.lexico.com/en/definition/client (Powered by Oxford Lexico)
The client always initiates first NOT the server
What is a server?
A computer or computer program which manages access to a centralized resource or service in a network.
Source: https://www.lexico.com/en/definition/server
piece of software that provides data or behavior
Source: Lecture
Which HTTP method does a browser issue to a web server when you visit a URL?
GET
GET is the default
the web is primary GETs
What three things are on the start-line of an HTTP request message?
method, request target, http version
What three things are on the start-line of an HTTP response message?
protocol version, status code, status text
Source: https://developer.mozilla.org/en-US/docs/Web/HTTP/Messages
What are HTTP headers?
just like the head element in html, HTTP headers provides additional information about the current request or response that is currently being sent
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
example: 201 sent when a piece of data is saved
sends status code and thats it
Source: Lecture
What is the significance of an HTTP request’s method?
Desired action you want it to take using the http request method.
way for us to express our intent source: lecture