HTTP Essential Training Flashcards

1
Q

What does HTTP stand for?

A

Hypertext Transfer Protocol

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

what is a protocol?

A

A system of rules that allows communication between two entities, like computers

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

What is hypertext?

A

essentially web documents

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

what are the core principles of HTTP?

A
  1. Plain Language and Human Readable (GET, POST, PUT, DELETE, CONNECT, HEAD)
  2. Stateless Protocol (no memory of previous requests, prevents users from becoming trapped in the middle of process)
  3. Sessions (allows user to preserve sessions, such as where they were on a website, via cookies)
  4. HTTP Headers (included in requests and responses and allow information to be carried back and forth)
  5. Request response pairs (each message has a request that is sent and receives a response in return)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are differences between HTTP/1.1 vs HTTP/2, vs HTTPS

A

2 has increased performance speed as well as more security. Requires encrypted connection (via https)

HTTP 1 sends uncompressed headers, sends one file at a time, and is not encrypted

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

What is a browser

A

application used to access and navigate between html documents

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

what is a user agent

A

Application acting on behalf of the user, or a client application (typically a browser)

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

What is tcp

A

Short for transmission control protocol. one of the main internet protocols used by the WWW, email, FTP, and remote administration

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

What is IP

A

Internet protocol, used to transfer data between computers over a network. every device connected to the internet has an IP address

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

what is a URL

A

Universal Resource Locator, an address pointing at a location on the web

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

what is a DNS

A

Domain name server, DNS catalogs all domain name URLs and points them to the IP addresses of servers

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

What is a Resource

A

The file or files available on a server when following a URL

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

What is a Server

A

Computer on the internet running some form of data storage sharing application, most commonly a web server application

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

What is a Proxy

A

This is a software or hardware service acting as a middle person between clients and servers (often used when an IP address needs to be hidden)

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

what are request-response pairs

A

This is the method of communication between a client (usually a web browser) and server. Uses HTTP to send a request, then HTTP to send back a response

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

what is a Header?

A

This is what a request and response will use to identify what they are and what they want. Contains meta data

17
Q

What are the HTTP Request Methods/Verbs?

A

Every request contains a method explaining what action the sender wishes to perform on the resource (GET, PUT, PATCH, etc.)

18
Q

what is a status response code

A

This is what comes across in the response to alert the client what happened with the request (100s-500s)

19
Q

what is a cache?

A

This is the method for storing data on the client (browser) or the server to speed up performance

20
Q

what does being stateless mean?

A

HTTP is stateless, meaning every request and response is unique, and no state is stored

21
Q

what is a cookie

A

This is a small piece of information passed back and forth between the client and the server allowing each to know what state the other is in

22
Q

What is a session?

A

This is how clients and servers share information (via cookies) which allows more speedy communication between the two

23
Q

What is the flow of all HTTP Transactions?

A
  1. Browser opens a TCP connection to the server. this allows data to be sent back and forth, and ensures that all data is put back together in the same way it was sent
  2. Browser sends an HTTP message including a method n(such as GET) as well as a URL pointing at the requested resource
  3. Server sends a message back to the browser. This will contain a response status, header, and message
  4. Once the response is received the TCP connection is closed
24
Q

what are the two main pieces of a URL?

A

a protocol declaration (how to access) and a URN to a specific resource

25
Q

What are the pieces of the URN?

A
  1. Host (this is the domain registered at a domain name service)
  2. Connection port (default to 443 for HTTPS and 80 for HTTP)
  3. Resource path (file location within the server)
  4. Optional URL Query (optional and might track or filter something. These start with a ?, each query has an argument and a value, can be strung together using ampersand)
26
Q

what is the most basic way to authenticate with the server?

A

The following header followed by a username and password combo:
Authorization: username password

27
Q

Cached files greatly increase speed, but what is the potential downside of a browser using cached files?

A

The browser will not receive a new version of the files until the cached files are either cleared, or they have expired. This could prevent the browser from seeing updates that were made since the cached files were stored.