HTTP Flashcards

1
Q

What is a client?

A

service requester
anything asking/requesting a service
typically programs nowadays

request data and do stuff with data?

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

What is a server?

A

hardware or program that provides client data/service
typically programs nowadays
provides data/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

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

http method (get, post, etc), target, 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 (404, etc), status text

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

What are HTTP headers?

A

similar to head element in HTML

additonal info describing information
meta data about request and reponses (content-type might become important)

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

no it is optional

ex: 201 status code: created
no body necessary b/c only really need to know if smt was saved/created or not

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