HTTP Flashcards

1
Q

What is a client?

A

service requesters. Initiate communication sessions with servers.
Can be a piece of hardware or software.

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

What is a server?

A

Provider of a resource(data) or service.

Await incoming requests from 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

GET - indicates that a resource should be fetched.

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

What 3 things are on the start-line of an HTTP request message?

A
  1. HTTP method - describes the action to be performed.
  2. Request target (usually a URL)
  3. HTTP version - defines the structure of the remaining message.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What 3 things are on the start-line of an HTTP response message?

A
  1. Protocol version - usually HTTP/1.1
  2. Status code- indicating success or failure of the request.
  3. Status text - 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

meta data about the request or response

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

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

How is data exchanged between a server and a client?

A

HTTP messages

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

What is a host?

A

A host is a piece of hardware that runs a server and/or client program

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

What does fetch return?

A

A PROMISE that resolves to a response object

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

What is the default request method used by fetch()?

A

GET

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

How do you specify the request method (GET, POST, etc) when calling fetch?

A

using the “method” property of the object that is the second argument in the fetch function

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

What is HTTPs?

A

Hypertext transfer protocol secure

An internet communication protocol that protects the integrity and confidentiality of data between a user’s computer and the website being visited

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

What are http messages?

A

Are either a request or response and are ways for the client and server to communicate

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