http messages Flashcards

1
Q

What is a client?

A

a service requester

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

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

initiates a requests for services wait for response

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

HTTP method like get put or post, that describes the action to be performed/ request target, http 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

protocol version, HTTP/1.1

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

What are HTTP headers?

A

allows for clients and server to pass additional information with an http request or response. name followed by : value, single line

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

it is not required

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

http –body GET https://example.com > index.html

A

request body html, put that content into a new file called index.html

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