HTTP Flashcards

1
Q

What is a client?

A

Makes a request to a server

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

What is a server?

A

Sends a response to a request

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

HTTP method, target, 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

HTTP version, status code, status text

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

What are HTTP headers?

A

Headers are at the top of the request or response and contain info about the request/response

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, like for create requests

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

What is the significance of an HTTP request’s method?

A

Tells the server whether to get, create, update, or delete an item. Tells the server what the client wants.

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