HTTP Flashcards

1
Q

What is a client?

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is a server?

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Which HTTP method does a browser issue to a web server when you visit a URL?

A

GET

GET is the default
the web is primary GETs

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What three things are on the start-line of an HTTP request message?

A

method, request target, http version

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What three things are on the start-line of an HTTP response message?

A

protocol version, status code, status text

Source: https://developer.mozilla.org/en-US/docs/Web/HTTP/Messages

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are HTTP headers?

A

just like the head element in html, HTTP headers provides additional information about the current request or response that is currently being sent

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Where would you go if you wanted to learn more about a specific HTTP Header?

A

MDN

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Is a body required for a valid HTTP request or response message?

A

No

example: 201 sent when a piece of data is saved
sends status code and thats it

Source: Lecture

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is the significance of an HTTP request’s method?

A

Desired action you want it to take using the http request method.

way for us to express our intent source: lecture

How well did you know this?
1
Not at all
2
3
4
5
Perfectly