http Flashcards

1
Q

What is a client?

A

A service requester,
A program or device/program that request information from a server.

Clients are the ones receiving between the client-server relationship, they are the one requesting data like files, or to tell servers about things that happen.

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

What is a server?

A

The one providing the resources.

Servers are the providers within the client-server relationship. They are the one that is sending data like files to all the clients.

If clients request for things, servers are the ones that respond.

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

the 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

1) http verbs (method)
2) request target
3) http protocol 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

1) The protocal
2) Status Code
3) Status Text

1) The protocol version,
2) a status code, indicating success or failure of the request. Common status codes are 200,404, or 302
3) A status text. A brief, purely informational, textual description of the status code to help a human understand the HTTP message

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

What are HTTP headers?

A

HTTP Headers let the client and the server pass additional information with an HTTP request or response. an HTTP header consists of its case-insensitive name followed by a conol ( : ) then by its value.

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 Web Docs

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. not all HTTP request or response needs a body

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