HTTP Flashcards

1
Q

What is a client?

A

Service requesters, initiaters. program or device that requests service.

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. servers are constantly waiting for 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

HTTP Get Request

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 HTTPrequestmessage?

A
http method (like get, put, post) or a noun(like head or options), that describes the action to be performed. 
The Request Target, usually a url, or the absolute path of the protocol, port and domains are usually characterized by the request context. 
Http version, which defines the structure of the remaining message, acting as an indicator of the expected version to use for the response.
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 HTTPresponsemessage?

A

The protocol version usually http/1.1
A status code, indicating success or failure of the request. Common status codes are 200, 404, or 302
A status text. A brief, purely informational, textual description of the status code to help a human understand the http message.

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

What are HTTP headers?

A

Http headers allow the client and the server pass additional information with an http request or response.
Specifying the request, or describing the body included in the message. very similar to head tag in html doc. headers are key value pairs.

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, sometimes the message is enough.

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

What is on the first line of an HTTP request message?

A

An HTTP method (GET, POST, PUT), the request target, HTTP Version.

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

What is on the first line of an HTTP response message?

A

protocol version (usually HTTP/1.1), status code (200, 404, 302), a status text

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