HTTP:The Postal Service of the Internet Flashcards

1
Q

Define protocol

A

standard for communication between machines

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

What 3 protocols are used in most web communication

A

HTTP, TCP/IP, DNS

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

Define HTTP

A

(Hypertext Transfer Protocol) High-level web communication. Transfers files such as HTML, CSS, JavaScript, images, and form submissions. Designates how requests and responses should be structured.

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

Define TCP/IP

A

Transmission Control Protocol (TCP) and the Internet Protocol (IP) Low-level web communication for transferring small bits of raw data aka packets

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

What is DNS?

A

Domain Name Service: Address book for the internet. Translates human friendly names into server addresses

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

How does HTTPS differ from HTTP?

A

HTTP protocol with a secure connection. Can’t be read in-transit due to encryption.

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

Describe the use of packets for transmitting files

A

Files are broken down into small, standardized chunks of information that are sent and reassembled after reaching their destination

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

What purpose do domain names serve?

A

ex: www.launchcode.org

This name is an alias for server IP address

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

Define IP address

A

numerical label assigned to each device connected to a computer network

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

What does it mean to resolve an address?

A

When a message is addressed to domain name, a lookup is performed on a name server. The message is sent to corresponding IP

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

Define nameserver

A

Directory of domains and IP addresses

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

What is a loopback address?

A

Alias localhost. Special IP address 127.0.0.1 used by computer to refer to itself

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

Define URL

A

Uniform resource locator aka web addresses.

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

Write a common URL structure

A

scheme://host:port/path?query_string

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

Describe scheme

A

Most often specifies protocol used in making request. Common ones include: http, https, ftp, mailto, file

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

What function does Host serve in a URL?

A

portion of URL specifying when request should be sent. Can be IP or domain

17
Q

Are Port Numbers required in a URL? What function do they serve?

A

Optional in URL. Port determines specific application on server that should handle request. Conventionally given type of app always uses same port (ex: MySQL uses port 3306). If none specified, default value used based on scheme (http:// is 80, https:// is 443)

18
Q

Define Path

A

Tells server what is being requested. If no path specified, root path / is used

19
Q

What function does a Query String serve?

A

Provides additional data needed to fulfill request

20
Q

Top level domain (TLD)

A

.com, .org, .net - categories of internet, help sort websites and route requests through certain group of servers

21
Q

What symbol is used for a Fragment, and what role does it play in a URL

A

Can mark specific spots on a web page, among other things

22
Q

What role does % Encoding serve in a URL

A

Help encode special characters in URL

23
Q

Describe the role of routers in transmitting data

A

Direct packets of information around the internet. Each time packet encounters a router it’s IP address is added to server request. Server sends back along same path.

24
Q

What kind of data do requests contain?

A
  • URL requested
  • method
  • metadata - browser, type of data
  • optional request msg
25
What kind of data do responses contain?
Status line with response code, response headers, blank line, response body
26
List the categories of response codes
1xx (Informational): The request was received but processing has not finished 2xx (Successful): The request was valid and the server successfully responded 3xx (Redirection): The client should go elsewhere to access the requested resource 4xx (Client Error): There was a problem with the client's request 5xx (Server Error): The client's request was valid, but the server experienced an error when fulfilling it
27
Describe the HTTP Response Code 200
The requested resource exists and was successfully returned
28
Describe the HTTP Response Code 301
The requested resource has moved, and the client should look for it at the URL included in the Location header.
29
Describe the HTTP Response Code 404
The server received the request, but the requested resource does not exist on the server.
30
Describe the HTTP Response Code 500
The server experienced an error while fulfilling the request
31
Describe the HTTP Response Header Content-Type
The type of data included in the response body. Examples: text/html, text/css, image/jpg
32
Describe the HTTP Response Header Content-Length
The size of the response body in bytes.
33
Describe the HTTP Response Header Location
The URL that the client should visit to find a relocated resource.
34
In developer tools the ____ tab displays all HTTP requests and responses used to load a page. Only tracks the data if page is open during the request
Network