HTTP Flashcards

1
Q

What default port that HTTP use?

A

TCP port 80

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

What default port does HTTPS use?

A

Port 443

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

What is an HTTP request?

A

It is the way Internet communications platforms such as web browsers ask for the information they need to load a website.

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

What does a typical HTTP request contain?

A
  1. HTTP version type
  2. a URL
  3. An HTTP method
  4. HTTP request headers
  5. Optional HTTP body.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is an HTTP method?

A

An HTTP method, sometimes referred to as an HTTP verb, indicates the action that the HTTP request expects from the queried server.

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

What are HTTP request headers?

A

HTTP headers contain text information stored in key-value pairs, and they are included in every HTTP request and response. These headers communicate core information, such as what browser the client is using and what data is being requested.

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

What is in an HTTP request body?

A

The body of a request is the part that contains the ‘body’ of information the request is transferring. The body of an HTTP request contains any information being submitted to the web server, such as a username and password, or any other data entered into a form.

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

What is in an HTTP response?

A

An HTTP response is what web clients (often browsers) receive from an Internet server in answer to an HTTP request. These responses communicate valuable information based on what was asked for in the HTTP request.

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

What does an HTTP response contain?

A
  1. an HTTP status code
  2. HTTP response headers
  3. optional HTTP body
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What’s an HTTP status code?

A

HTTP status codes are 3-digit codes most often used to indicate whether an HTTP request has been successfully completed.

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

Status codes are broken into 5 blocks, what are they?

A
  1. 1xx - Informational
  2. 2xx - Success
  3. 3xx - Redirection
  4. 4xx - Client Error
  5. 5xx - Server Error
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What are HTTP response headers?

A

an HTTP response comes with headers that convey important information such as the language and format of the data being sent in the response body.

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