http-requests Flashcards

1
Q

What is a client?

A

A client is the requester of a service

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

What is a server?

A

A server is a resource that the client requests services from

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

A single start-line describing the requests to be made

an HTTP method (GET/POST),
the request target (usually a URL),
the 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

a status line

the protocol version (HTTP/1.1),
a status code (200 - success 404 - not found)
a status text - description of the status code

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

What are HTTP headers?

A

an optional portion of an HTTP message that specifies the request/response being made
describes the body included in the message

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!

if it does have a body, it contains data associated with the request

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