For this list of topics "### HTTP Overview: HTTP (HyperText Transfer Protocol) is the…
- User
For this list of topics "### HTTP
Overview: HTTP (HyperText Transfer Protocol) is the foundational protocol used by the World Wide Web for transmitting hypermedia documents, such as HTML. It defines how clients (usually browsers) request resources from servers and how servers respond to those requests.
Key Concepts:
-
What happens when you type example.com into the address bar?
-
DNS Lookup: The browser contacts a DNS server to resolve the domain name (example.com) into an IP address.
-
TCP/IP Connection: Establishes a connection with the server using the IP address obtained.
-
HTTP Request: The browser sends an HTTP GET request to the server for the webpage.
-
Server Processing: The server processes the request and prepares an HTTP response.
-
HTTP Response: The server sends back the requested resource (e.g., HTML content).
-
Rendering: The browser parses the HTML, requests additional resources (CSS, JS, images), and renders the page.
-
HTTP vs HTTPS:
-
HTTP: Unsecure; data is sent in plain text and can be intercepted.
-
HTTPS: Secure; uses SSL/TLS encryption to protect data in transit between the client and server.
-
Why can't you make a request from HTTPS to HTTP?
-
Mixed Content Policy: Browsers block insecure requests (HTTP) initiated from secure contexts (HTTPS) to protect users from man-in-the-middle attacks.
-
Encryption Basics:
-
Symmetric vs Asymmetric Encryption:
-
Symmetric: Same key used for encryption and decryption.
-
Asymmetric: Uses a public key for encryption and a private key for decryption.
-
SSL/TLS Handshake: Process where the client and server exchange keys and establish a secure encrypted connection.
-
Public Key vs Private Key: In asymmetric encryption, the public key is shared openly, while the private key is kept secret.
-
Storage Mechanisms:
-
Cookies: Small pieces of data stored by the browser, sent with every HTTP request to the server.
-
Local Storage: Stores data with no expiration date; data persists even after the browser is closed.
-
Session Storage: Similar to local storage but data is cleared when the session ends (i.e., when the browser/tab is closed).
HTML
Overview: HTML (HyperText Markup Language) is the standard markup language used to create and structure content on the web. Writing semantic HTML ensures that web content is structured logically and is accessible to all users, including those using assistive technologies.
-
- Assistant