http-messages-recap-Q&A Flashcards

1
Q

What is a client?

A

Makes requests

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

What is a server?

A

Handles requests from the client

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

HTTP request GET

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

What is on the first line of an HTTP request message?

A

The protocol version, usually HTTP/1.1 . A status code, indicating success or failure of the request.

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

What is on the first line of an HTTP response message?

A

The status line is the first line in the response message. It consists of three items: The HTTP version number, status code, and the status text

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

What are HTTP headers?

A

let the client and the server pass additional information with an HTTP request or response (Meta information)

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

Is a body required for a valid HTTP message?

A

All 1xx (informational), 204 (no content), and 304 (not modified) responses MUST NOT include a message-body. All other responses do include a message-body, although it MAY be of zero length.

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