HTTP Flashcards

1
Q

Network protocols are —- that define how entities in a network communicate with each other.

A

rules

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

Rules in network protocol covers?

A
  1. Identifying and establishing communication with other party
  2. Transmit and Receive data
  3. Message Formats
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

This is a network protocol that runs on top of TCP and IP. It governs communication over the web. It is used by the browsers, web server, and other entities on the web

A

HTTP

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

Who are the individuals behind the design of HTTP?

A

Tim Berners-Lee and Robert Cailliau

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

When was HTTP designed?

A

1990

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

There are request sent to a server either by (1)

  1. another server; or
  2. client programs called (2)?
A

Client Server (1)
User Agents (2)

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

This agents are programs that make HTTP request for human users

A

User-agents

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

What is the most common user-agent? But they can also be mobile apps, desktop apps, and machine automated user agents.

A

web browser

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

In here, HTTP communication is done through request and response messages

A

request-response

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

Where are request message sent, which handles it, then sends back a response?

A

web server

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

Is request-response an all time direct connection between user-agent and web server?

A

No, because sometime proxy exist in the middle.

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

In here, client and server are only aware of each other during the current request-response exchange.

A

Stateless

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

When client and server have multiple https transaction, are each request independent of that on the context of a previous request?

A

Yes

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

This transaction is the 1:1 exchange of request and response

A

HTTP transaction

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

What is the first step in a HTTP transaction?

A
  1. Browsers extracts server’s hostname
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is the second step in HTTP transaction?

A
  1. Browser resolves the IP address via Domain name Resolutiom
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

What is the third step in a HTTP transaction?

A
  1. Browser extracts the port from the URL
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

What is the fourth step in a http transaction?

A
  1. Browser establishes a TCP connection with the web server.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

After a browser establishes a tcp connection with the web server what is next?

A

The browser send an HTTP request to the server

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

After sending a request to the server, what does the server do?

A

The browser receives a response from the server

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

After receiving a response, is TCP connection closed?

A

It depends on the http version

22
Q

What does the browser do with the response from the server?

A

The browser parses the returned HTML doc, fetching additional resources as needed

23
Q

These are web servers that act as intermediaries between client and server

24
Q

This type of proxy is used to pass messages from one part of the Internet to another. It is usually placed at the ‘edge’ of a local network to direct internal traffic to the public internet.

A

Forward Proxy

25
Q

This type of proxy are use as an entrance to private networks. It is normally used for regulation of access from the public Internet to a private network.

A

Reverse Proxy

26
Q

When we say that a a proxy is transparent, what do we mean?

A

It does not modify passing request

27
Q

When we say that a a proxy is non-transparent, what do we mean?

A

it modifies passing request

28
Q

A function of proxy is for caching servers to cache data that may be commonly requested by clients. This function reduces load on the actual server. What function is this?

29
Q

A function of a proxy is for request to be filtered to block or prioritize certain requests.

30
Q

A function of a proxy is for a single front-facing server to accept all requests and distribute them across different servers based on factors such as server load, proximity to client, etc. What is this function?

A

Load Balancing

31
Q

A function of proxy is to only pass request messages if they contain appropriate authentication details. It may just send an error response right there. The request never reaches the server. What is this?

A

Authentication (Auth Proxies)

32
Q

A function of proxy is maintain a log of the messages that it passes along, what is this?

33
Q

True or false, proxies usually have to act as both server and client.

34
Q

When is a proxy considered a client?

A

When it makes a request on behalf of a browser/user-agent.

35
Q

When is a web server considered a client?

A

when it requests data from another web server

36
Q

HTTPS Messages are one of 2 types?

A

Request or Response.

37
Q

Parts of a request message:

(1). ——–
(2)
(3)
(4)
(5)
(6) optional

A
  1. Request Line
  2. Method
  3. Path
  4. Protocol Version
  5. Headers
  6. Body
38
Q

This defines the operation that the client wants to perform

39
Q

This method is used if a clients wants to fetch a resource

40
Q

This method is used if a client wants to send data.

A

POST Method

41
Q

This is way from the URL. Going to the resources.

42
Q

This indicates the version of HTTP to be used for transaction

A

Protocol Version

43
Q

This part of the request message convey additional information about the sender or the message payload.

44
Q

This part of the request massage is the actual payload of the message. This is optional. Messages may or may not be required to have a body based on the method used.

45
Q

Parts of a response message:

(1)
(2)
(3)
(4)
(5)
(6)

A

(1) Status Line
(2) Protocol Version
(3) Status Code
(4) Reason Phrase / Status Message
(5) Headers
(6) Body

46
Q

This is a number that indicates if the request was successful or not, and why

A

Status Code

47
Q

In status code, what does 100 - 199 mean?

A

Informational

48
Q

In status code, what does 200 - 299 mean?

A

Successful

49
Q

In status code, what does 300 - 399 mean?

A

Redirection

50
Q

In status code, what does 400 - 499 mean?

A

Client Error

51
Q

In status code, what does 500 - 599 mean?

A

Server Error

52
Q

This is a short english description of the status code. It is also called as the Status Message

A

Reason Phrase