04 - HTTP Overview and Message Formats Flashcards

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
Q

only pass request msgs if they contain appropriate authentication details

A

authentication

26
Q

maintain a log of the messages it passes along

27
Q

proxies usually have to act as ____

A

both server and client

28
Q

types of http messages (2)

A

request
response

29
Q

parts of a request message (3)

A

request line
- method
- path
- protocol version
headers
body (optional)

30
Q

defines the operation that the client wants to perform

31
Q

used to fetch a resource

32
Q

used to send data

33
Q

path from the URL

34
Q

indicates the version of http to be used

A

protocol version

35
Q

convey additional information about the sender/msg

36
Q

actual payload of the message (optional)

37
Q

parts of a response message (3)

A

status line
- protocol version
- status code
- reason phrase/status message
headers
body

38
Q

number that indicates if the request was successful or not

A

status code

39
Q

short english description of the status code

A

reason phrase

40
Q

reason phrase is also called ___

A

status message

41
Q

found in some response messages, depending on the method used