HTTP (overview and message formats) 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

Network protocols cover how to? (3 items)

A
  1. Identify and establish communication with the 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

HTTP is a _______ _________ that runs on top of TCP and IP. It governs communication over the Web.

A

network protocol.

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

HTTP is used to request and send resources such as: (5)

A
  1. HTML Pages
  2. Style sheets
  3. Scripts
  4. Images
  5. Fonts
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Who designed HTTP?

A

Tim Berners-Lee and Robert Cailliau

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

Latest Version of HTTP?

A

HTTP/2.0 (finalized in 2015)

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

Most used version of HTTP

A

HTTP/1.1 (finalized in 1997)

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

Characteristics of HTTP

A
  1. Client Server
  2. Request Response
  3. Stateless
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Requests are either sent to a server either by:

A
  1. another server
  2. or client programs called user-agents
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Programs that make HHTP requests for human users.

A

User-Agents

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

Beside web browsers, user agents can also be:

A
  1. Mobile apps
  2. Desktop apps
  3. Machine-automated user-agents (robots/crawlers)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

The most common user-agent

A

Web-browser

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

Request messages are sent to a ___________ 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
8
Q

HTTP communication is done through exchanges of ___________ and ________________.

A

request and response messages.

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

It’s usually not a direct connection between user-agent and web server. Sometimes, there are ___________ acting between the client and the server.

A

Proxy

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

Characteristic of HTTP that makes the 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
11
Q

An HTTP transaction is the ____________ of request and response.

A

1:1 exchange

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q
  1. Browser extracts server’s ___________ from the url.
A

hostname

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q
  1. Browser resolves the ___________ via Domain Name Resolution.
A

IP address.

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

port

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

TCP connection

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q
  1. Browser sends an ___________________ to the server.
A

HTTP Request

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q
  1. Browser receives a _________ from the server.
A

response

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q
  1. TCP connection may or may not be ________ (depends on HTTP version).
19
What does the browser do with the response from the server?
The browser parses the returned HTML doc, fetching additional resources as needed.
20
A server may have to send requests to ______________ in order to fulfill a request sent to it.
Other servers
21
Web servers that act as intermediaries between client and server.
Proxies
22
Two main types of Proxy
Forward Proxy and Reverse Proxy
23
Proxies used to pass messages from one part of the Internet to another.
Forward Proxies
24
Proxies used as an entrance to private networks.
Reverse Proxy
25
Proxies usually placed at the 'edge' of a local network to direct internal traffic to the public internet.
Forward Proxies
26
Normally used for regulation of access from the public internet to a private network.
Reverse Proxy
27
Proxy can also be described as: (2)
Transparent and Non Transparent.
28
Proxies that does not modify passing requests.
Transparent
29
Proxies that modifies passing requests.
Non-transparent
30
Proxies perform functions such as: (5)
Caching, filtering, load balancing, authentication, logging.
31
Reduces load on the actual server
Caching
32
__________ cache data that maybe commonly requested by clients.
Caching servers.
33
Request can be filtered to block or prioritize certain requests.
Filtering
34
A single font-facing server accepts all requests and distributes them across different servers based on factors such as server load, proximity to client, etc.
Load Balancing
35
Proxies that only pass messages if they contain appropriate authentication details.
Authentication Proxies.
36
These proxies maintain a log of the messages that it passes along.
Logging
37
Proxies usually have to act as both _________ and _________.
server and client
38
A proxy is also a ______ when it makes a request on behalf of a browser/user-agent.
Client
39
A web server is also a ______ when it requests data from another web server.
Client
40
2 types of HTTP Messages.
Request or Response.
41
Parts of a request message: (3)
1. Request line (method, path, protocol version) 2. Headers 3. Body (optional)
42
Defines the operation that the client wants to perform
Method
43
HTTP method that is used if a client wants to fetch a resource.
GET
44
HTTP method is used if a client wants to send data.
POST
45
Indicates the version of the HTTP to be used for the transaction.
Protocol Version
46
Part of HTTP message that convey additional information about the sender or the message payload.
Headers
47
Part of HTTP message that is the actual payload of the message.
Body
48
Messages may or may not be required to have a body based on the _________ used.
method
49
Parts of a response message: (3)
1. Status Line (protocol version, status code, Reason Phrase) 2. Headers 3. Body
50
A number that indicates if the request was successful or not, and why.
Status code
51
There is a list of valid status codes defined by the W3C.
Status code
52
A short English description of the status code. Also called status message.
Reason Phrase