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
Q

cache data that may be commonly requested by clients

26
Q

request can be filtered to block or prioritize certain requests

27
Q

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.

A

Load Balancing

28
Q

only pass request messages if they contain appropriate authentication details

A

Authentication

29
Q

there’s proxies maintain a log of the messages that it passes along

30
Q

Web entities

A

Web Servers
User- Agent
Proxies

31
Q

have to act as both server and client

32
Q

HTTP Messages 2 types

A

Request
Response

33
Q

what HTTP message is this

GET / HTTP/1.1
Host: developer.mozilla.org
Accept-Language: en
A

Request Message

34
Q

Parts of a request message

A

Request Line
Headers
Body (optional)

35
Q

Request Line parts

A

Method
Path
Protocol Version

36
Q

defines the operation that the client wants to perform

37
Q

Methods

A

GET
POST
HEAD
OPTIONS
PUT
PATCH
DELETE
TRACE
CONNECT

38
Q

client wants to fetch resource

39
Q

client wants to send data

40
Q

path of the resource

41
Q

version of HTTP to be used in the transaction

A

Protocol Version

42
Q

convey additional information about the sender or the message payload

43
Q

actual payload of the message
this is optional

44
Q

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

Parts of a response message

A

Status line
Headers
Body

46
Q

Parts of a status line

A

Protocol Version
Status Code
Reason Phrase / Status Message

47
Q

a number that indicates is the request was successful or not

A

Status code

48
Q

short English description of the status code

also called status message

A

Reason Phrase