04 - HTTP Overview and Message Formats Flashcards

(41 cards)

1
Q

rules that define how entities in a network communicate with each other

A

network protocols

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

network protocols cover how to: (3)

A
  • identify and establish communication
  • transmit and receive data
  • message formats
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

network protocol that runs on top of TCP and IP

governs communication over the Web

A

HTTP

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

HTTP was designed by ____ & ___ in ___

A

Tim Berners-Lee
Robert Cailliau
1990

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
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
7
Q

characteristics of http (3)

A

client-server
request-response
stateless

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

requests are sent to a server either by another server or client programs called user-agents

A

client-server

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

programs that make http requests for human users

A

user-agents

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

most common user agent

A

browsers

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

http communication is done through exchanges of request and response messages

A

request-response

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
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
13
Q

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
14
Q

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

how does a http transaction work (7)

A

browser:
- extracts server’s hostname from the url
- resolves the ip address via dnr
- extracts the port from the url
- establishes a tcp connection with the web server
- sends an http request to the server
- receives a response from the server
- tcp connection may/may not be closed

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

what does the browser do with the response from the server (4)

A
  • browser parses the returned HTML doc
  • fetches additional resources as needed (images, yt vids)
  • server may have to send requests to other servers
  • additional requests are transparent
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

web servers that act as intermediaries between client and server

18
Q

used to pass messages from one part of the internet to another

A

forward proxy

19
Q

used as an entrance to private networks

usually used for regulation of access

A

reverse proxy

20
Q

proxies can be described as: (2)

A

transparent: doesn’t modify passing reqs
non-transparent: modifies passing reqs

21
Q

proxy functions (5)

A

caching
filtering
load balancing
authentication
logging

22
Q

cache data that may be commonly requested by clients

23
Q

requests can be filtered to block or prioritize certain requests

24
Q

distributes requests to different servers based on server load, proximity to client, etc

A

load balancing

25
only pass request msgs if they contain appropriate authentication details
authentication
26
maintain a log of the messages it passes along
logging
27
proxies usually have to act as ____
both server and client
28
types of http messages (2)
request response
29
parts of a request message (3)
request line - method - path - protocol version headers body (optional)
30
defines the operation that the client wants to perform
method
31
used to fetch a resource
GET
32
used to send data
POST
33
path from the URL
path
34
indicates the version of http to be used
protocol version
35
convey additional information about the sender/msg
headers
36
actual payload of the message (optional)
body
37
parts of a response message (3)
status line - protocol version - status code - reason phrase/status message headers body
38
number that indicates if the request was successful or not
status code
39
short english description of the status code
reason phrase
40
reason phrase is also called ___
status message
41
found in some response messages, depending on the method used
body