HTTP Overview and Message Formats Flashcards

1
Q

rules that define his 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

a 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
3
Q

request and sent using HTTP

A

HTML pages
Style sheets
Scripts
Images
Fonts

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

designed HTTP in 1990

A

Tim Berners-Lee and Robert Cailliau

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

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

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

characteristics of HTTP

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 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 humans 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

web browser

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

where request messages are sent

sends back a response

A

web server

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

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

TRUE OR FALSE

client and server may have multiple HTTP transactions in succession but each request doesn’t depend on the context of the previous one

A

TRUE

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

ratio of exchange of request and repsonse in an HTTP transaction

A

1:1

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

TRUE OR FALSE

TCP connection may or may not be closed

A

TRUE

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

TRUE OR FALSE

To fulfill a request, a server may have to sent requests to other servers

A

TRUE

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

web servers that act as intermediaries between client and server

A

Proxies

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

2 types of proxies

A

Forward Proxy
Reverse Proxy

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

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

A

Forward Proxies

21
Q

used as an entrance to private networks

A

Reverse Proxies

22
Q

does not modify passing requests

A

Transparent proxy

23
Q

modifies passing requests

A

Non-transparent proxy

24
Q

Proxy functions

A

Caching
Filtering
Load Balancing
Authentication
Logging

25
cache data that may be commonly requested by clients
Caching
26
request can be filtered to block or prioritize certain requests
Filtering
27
a single front-facing server accepts all requests and distributes them across different servers based on factors such as server load, proximity to client, etc.
Load Balancing
28
only pass request messages if they contain appropriate authentication details
Authentication
29
there's proxies maintain a log of the messages that it passes along
Logging
30
Web entities
Web Servers User- Agent Proxies
31
have to act as both server and client
proxy
32
HTTP Messages 2 types
Request Response
33
what HTTP message is this ``` GET / HTTP/1.1 Host: developer.mozilla.org Accept-Language: en ```
Request Message
34
Parts of a request message
Request Line Headers Body (optional)
35
Request Line parts
Method Path Protocol Version
36
defines the operation that the client wants to perform
Method
37
Methods
GET POST HEAD OPTIONS PUT PATCH DELETE TRACE CONNECT
38
client wants to fetch resource
GET
39
client wants to send data
POST
40
path of the resource
Path
41
version of HTTP to be used in the transaction
Protocol Version
42
convey additional information about the sender or the message payload
Headers
43
actual payload of the message this is optional
Body
44
what HTTP message is this ``` HTTP/1.1 200 OK Date: Wed, 16 Aug 2017 14:28:00 GMT Server: Apache Content-Length: 25679 Content-Type: text/html ```
Response
45
Parts of a response message
Status line Headers Body
46
Parts of a status line
Protocol Version Status Code Reason Phrase / Status Message
47
a number that indicates is the request was successful or not
Status code
48
short English description of the status code also called status message
Reason Phrase