http-messages Flashcards

1
Q

What is a client?

A

A client is a piece of software or hardware that makes requests and receives data or information from a server

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

What is a server?

A

A server is a system that offers data and information to a client when interacted with

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 method

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

A HTTP method such as GET, PUT, or POST, the target URL or absolute path, and the 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

The protocol version, usually HTTP/1.1, a status code such as 200, 404, 302, and some status text to briefly describe the HTTP message in english

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

What are HTTP headers?

A

They let the client and server pass additional information with an HTTP request or response

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 HTTP Header then find the grouping of different headers according to their contexts

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

Not required. Responses can have a status code that says enough and requests which usually fetch resources, don’t need one

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