HTTP Flashcards

1
Q

What is a client?

A

service requesters. whoever requests the service or functionality, consumes data from other sources.

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

What is a server?

A

providers of a resource or service. providing a data or functionality to client, to the thing that requested

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 three things are on the start-line of an HTTP request message?

A

http method (get post), target (URL), 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

http version, status code (200, 404), status text

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

What are HTTP headers?

A

a field of HTTP request that passes additional context and metadata about the request or response. a “head” element in html file.

meta data about the message

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

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

body is optional

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

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

A
http method (get post), request target (URL), http version
the start-line, describing the requests to be implemented, or its status of whether successful or failure. always a single-line
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

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

A

start-line.

http/protocol version, status code (200, 404), status text

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