Skip to content

Commit

Permalink
Resolved the issue of adding about HTTP - HTTPS (#673)
Browse files Browse the repository at this point in the history
  • Loading branch information
rohankaushal123 authored Oct 17, 2023
1 parent 25d81ec commit e0ec9de
Showing 1 changed file with 63 additions and 0 deletions.
63 changes: 63 additions & 0 deletions Networking/HTTP-HTTPS/https.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# Understanding HTTP and HTTPS

This repository provides a simple explanation of the Hypertext Transfer Protocol (HTTP) and its secure counterpart, HTTPS. We'll explore how they work and their roles in web communication.

## Table of Contents

- [Introduction to HTTP](#introduction-to-http)
- [How HTTP Works](#how-http-works)
- [HTTP/1.0](#http10)
- [HTTP/1.1](#http11)
- [HTTP/2](#http2)
- [HTTP/3](#http3)
- [Introduction to HTTPS](#introduction-to-https)
- [How HTTPS Works](#how-https-works)
- [Advantages of HTTPS](#advantages-of-https)

## Introduction to HTTP

HTTP (Hypertext Transfer Protocol) is the foundation of data communication on the internet. It enables web browsers to request and retrieve web pages, images, and other resources from servers. Understanding the basics of HTTP is crucial for anyone interested in web development or network technologies.

## How HTTP Works

1. **Request-Response Model:** When you enter a web address (URL) in your browser and press Enter, your browser sends a request to the server hosting the web page.
2. **Server Response:** The server processes the request and sends back the requested web page or resource.
3. **Rendering:** Your browser then renders the received content, displaying it on your screen.

## HTTP Versions

### HTTP/1.0

HTTP/1.0 is the earliest version of HTTP. It relies on a simple request-response model. Your browser sends a request, and the server sends back the web page. However, it lacks support for features like persistent connections, which can make it inefficient for loading complex web pages with multiple resources.

### HTTP/1.1

HTTP/1.1 improves upon its predecessor by introducing features like persistent connections, allowing multiple resource requests over the same connection. This reduces delays and speeds up web page loading. However, it still suffers from head-of-line blocking, which can affect performance.

### HTTP/2

HTTP/2 enhances web page loading by introducing multiplexing, allowing multiple resource requests simultaneously over a single connection. It compresses header information, making data transfer more efficient and further improving performance.

### HTTP/3

HTTP/3 is the latest version, designed for even faster and more secure web communication. It employs the QUIC transport protocol, which enhances performance, minimizes latency, and works well even in adverse network conditions.

## Introduction to HTTPS

HTTPS (Hypertext Transfer Protocol Secure) is a secure version of HTTP. It ensures that data transmitted between your browser and the server is encrypted and secure. This encryption is vital for protecting sensitive information, such as login credentials and payment details.

## How HTTPS Works

HTTPS employs encryption protocols such as TLS (Transport Layer Security) to secure data. When you visit an HTTPS website:

1. **Handshake:** Your browser and the server perform a handshake, where they exchange encryption keys and establish a secure connection.
2. **Encrypted Data Transfer:** All data exchanged between your browser and the server is encrypted, making it unreadable to anyone intercepting the data.
3. **Trust via Certificates:** HTTPS websites use digital certificates issued by trusted Certificate Authorities (CAs) to verify their authenticity.

## Advantages of HTTPS

1. **Data Security:** Protects sensitive information from eavesdropping.
2. **Trust:** Establishes trust with users through the use of trusted certificates.
3. **SEO Benefits:** Google rewards HTTPS websites with higher search rankings.

Understanding the differences between HTTP and HTTPS and how they operate is essential for web development, cybersecurity, and ensuring a secure online experience.

0 comments on commit e0ec9de

Please sign in to comment.