http message Flashcards

1
Q

What is a client?

A

Accesses a service made available by a server

A service requester

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

What is a server?

A

A server provides functionality for other programs or devices

Provider of a resource or 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

It sends an HTTP Request

GET is retrieve data

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

An HTTP Method - Like GET

Request Target - Usually a URL

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

The Protocol Version

Status Code - Describes what is going on

Status Text - Descriptor 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

HTTP Headers let the client and the server pass additional information with an http request or response

The metadata of our request

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 request or response message?

A

No, not all responses have a body message.

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

What is a Client?

A

A client is a requests services from a server

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

What is a server?

A

A server is the provider of a resource or service, a response to the client

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

Which HTTP method does a browser issue to a web server when you visit a URL?

A

GET

Retrieves data from the server

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

What is the first line of an HTTP request message?

A

The HTTP method

The Request Target

The HTTP Protocol Version

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

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

A

The status line

Protocol - HTTP Version

Status Code - 200/404

Status Text - English representation of what that number means

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

What are HTTP headers?

A

A HTTP header let the client and server pass additional information with an HTTP request or a response

The metadata of our request, extra info, key/value pairs

Content-Type is what you’re going to care about the most

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

Is a body required for a valid HTTP message?

A

No, a body is always optional. It depends on what you are trying to do and if the client or server cares about the body

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