http-messages-recap Flashcards

1
Q

What is a client?

A

A client is a program that requests services from a service provider also known as 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 program that provides a resource or service to clients. A server may be a web server that serves web pages or a file server that serves computer files.

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 start line, which contains the request method, the request path, and the HTTP protocol (1.1 or 2.0). The HTTP protocol is the type or format 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, which contains the protocol version (usually 1.1), status code (202, 404 or 302) and status text.

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 part of each message (request or response) and contains meta information about the request or response.
They give information about the request or response, such as request url, request method (GET, POST), status code, content-type (tells the server or client how to parse the data).

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

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