http-messages-recap Flashcards

1
Q

What is a client?

A

a computer or software application that requests a service or resource 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 computer or software application that provides a service or resource to one or more clients.

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

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 request line, consists of three elements: the method, the request URI, and the protocol version.

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, consists of three elements: the protocol version, the status code, and the reason phrase.

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

What are HTTP headers?

A

HTTP headers are name-value pairs that provide additional information about the request or response in an HTTP message.

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

No, a body is not required for a valid HTTP message.

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