How The Web Works (THM).2 Flashcards
What is the first step of DNS request?
Comp checks local cache
What is step 2 of DNS request?
If Comp doesn’t have, request to Recursive DNS Server
Who provides a recursive DNS Server?
ISP
Yourself
What is step 3 of DNS request?
If recursive DNS server doesn’t have, request sent to root server
What is step 4 of DNS request?
Root server sends request to right TLD server.
What is Step 5 of DNS Request?
TLD server finds the authoritative DNS server.
What is Step 6 of DNS Request?
Authoritative DNS server address is sent back to Recursive DNS server
What is Step 7 of DNS Request?
DNS Record is cached at DNS Server and given a TTL
What is HTTP?
HyperText Transfer Protocol
What is HTTPS?
HyperText Transfer Protocol Secure
What is the purpose of HTTP?
Rules for communicating website data.
What is the purpose of HTTPS?
Authenticating and encrypting website data.
What is a URL?
Uniform Resource Locator
What are the components of a URL in order?
Scheme-user-host/domain-port-path-query string-fragment
What is the Scheme of a URL?
what access protocol to use
Give examples of URL Schemes
HTTP
HTTPS
FTP
What is the User component of a URL?
username/password (if required)
What is the Host component of a URL?
the domain name or IP address of the server you want to access
What is the Port component of a URL?
The port you want to connect to
What is the Query String portion of the URL?
extra info to access the right page
What is the Fragment component of a URL?
Location on requested page
What are the different HTTP methods?
GET Request
POST Request
PUT Request
DELETE Request
When an HTTP Server responds, what is on the first line?
HTTP Status Code
What is an HTTP Status Code 100-199?
Information Response
What is an HTTP Status Code 200-299?
Success
What is an HTTP Status Code 300-399?
Redirection
What is an HTTP Status Code 400-499?
Client Errors
What is an HTTP Status Code 500-599?
Server Errors
HTTP Status Code 200?
Ok
HTTP Status Code 201?
Created
HTTP Status Code 301?
Moved permanently
HTTP Status Code 302?
Found
HTTP Status Code 400?
Bad Request
HTTP Status Code 401?
Unauthorized
HTTP Status Code 403?
Forbidden
HTTP Status Code 405?
Method Not Allowed
HTTP Status Code 404?
Page Not Found
HTTP Status Code 500?
Internal Service Error
HTTP Status Code 503?
Service Unavailable
What are HTTP headers?
Extra data for web server requests
What are some common Request Headers?
Host (Domain name)
User-Agent
Content-Length
Accept-Encoding
Cookie
What is a User-Agent Request Header?
Your browser software and version number (for formatting)
What is a Accept-Encoding Request Header?
The compression methods your browser supports
What is a Cookie Request Header?
Your data the server should remember
What are the Common Response Headers?
Set-Cookie
Cache-Control
Content-Type
Content-Encoding
What is the Set-Cookie Response Header?
Info stored and to be sent to web server on every access
What is the Cache-Control Response Header?
How long to store response content before next request
What is the content-encoding response header?
Method of compression by server
What are some examples Content-Type Response Headers?
HTML
CSS
JavaScript
Images
PDF
Video