http:// Flashcards

1
Q

• What is a client?

A

o The party that initiates communication sessions with servers.
o Service requestor

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

• What is a server?

A

o A server hosts runs one or more server programs, which share resources with clients.

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

o 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

o Requests to be implemented
o Its status of whether successful or failure
o (Start line is always a single line)

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

o POST / HTTP/1.1
o GET /background.png HTTP/1.0
o HEAD /test.html?query=alibaba HTTP/1.1
o OPTIONS /anypage.html HTTP/1.0

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

• What are HTTP headers?

A

o An HTTP header is a field of an HTTP request or response that passes additional context and metadata about the request or response.
o Much like the element in HTML

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

o Protocol version, usually/1.1
o Status code (like 404)
o A status Text – brief, purely informational, textual description of the status code

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

o No – responses with a status code that sufficiently answer the request without the need for corresponding payload usually do not.

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