<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by 0xMer on Medium]]></title>
        <description><![CDATA[Stories by 0xMer on Medium]]></description>
        <link>https://medium.com/@0xhoor?source=rss-69fe783cca93------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*7mhH_lliwMPbLYeUHTV-qg.png</url>
            <title>Stories by 0xMer on Medium</title>
            <link>https://medium.com/@0xhoor?source=rss-69fe783cca93------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 06:46:22 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@0xhoor/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[What is the difference between HTTP/1.1 and HTTP/2 ?]]></title>
            <link>https://medium.com/@0xhoor/what-is-the-difference-between-http-1-1-and-http-2-c4465a2e8f5b?source=rss-69fe783cca93------2</link>
            <guid isPermaLink="false">https://medium.com/p/c4465a2e8f5b</guid>
            <dc:creator><![CDATA[0xMer]]></dc:creator>
            <pubDate>Mon, 26 Jan 2026 12:49:03 GMT</pubDate>
            <atom:updated>2026-01-26T12:49:03.290Z</atom:updated>
            <content:encoded><![CDATA[<h3>What is the difference between HTTP/1.1 and HTTP/2 ?</h3><p>I often noticed that some requests use HTTP/1 while others use HTTP/2.<br>This made me wonder, what’s the difference between them? Aren’t they supposed to be the same?<br>After a dipper dig, I discovered that while they share the same purpose, their functionality is completely different.<br>In this write-up, we’ll explore the key differences between HTTP/1.1 and HTTP/2, from both <strong>performance and security perspectives</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*JksQHaQ3ZEPCIY_1Sc1AmQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3qNdh63YUBFbzYpaOu4kzA.png" /></figure><h3>First, what is the HTTP?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nBlp82zPg7Dw4X_1A8MkiQ.png" /><figcaption>How does HTTP work?</figcaption></figure><p><strong>HTTP: Hypertext Transfer Protocol.<br></strong>It is a protocol that allows communication between a client (browser) and a web server.<br>The server responds with a <strong>200 OK</strong> status code and sends back the requested page.</p><p>Over time, multiple versions of HTTP were introduced to improve performance and functionality:</p><h3>HTTP/0.9</h3><ul><li>The earliest version of HTTP</li><li>Supported only the <strong>GET</strong> method (this means it was strictly for retrieving the content of a page <strong>(just an HTML file or an image)</strong>. You couldn’t submit forms or upload files because GET is designed <strong>only to (fetch)</strong> data, <strong>not to (send)</strong> it for processing</li><li>No headers were included</li></ul><h3>HTTP/1.0</h3><ul><li><strong>Added headers</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/424/1*9jUxdlDwAlhtcSIoqC0c5Q.png" /><figcaption>What does headers look like in HTTP/1.0 request</figcaption></figure><ul><li>Added support for methods like <strong>POST</strong> and <strong>HEAD</strong></li><li>Allowed transferring different types of data (files, images, videos),<strong> not just HTML</strong></li><li><strong>Main limitation:</strong> each request required a <strong>new TCP connection (3 way handshake every single time)</strong>, which caused performance issues</li></ul><h3>HTTP/1.1</h3><ul><li>Solved the connection issue by allowing <strong>multiple requests over the same TCP connection<br></strong>there’s a header in HTTP/1.1 shows <strong>Connection: keep-alive</strong></li><li>Introduced several important features such as:</li><li><strong>Caching</strong> (temporary storage to avoid reloading unchanged content)</li><li>New HTTP methods: <strong>PUT, DELETE, OPTIONS</strong>, giving developers more control and this is what allowed<strong> RESTful APIs</strong> to emerge as we know them today</li></ul><p>However, it still suffered from a major problem: <strong>Head-of-Line Blocking</strong><br>This means the browser cannot send a new request on the same connection until the previous one is fully completed</p><blockquote>Imagine a channel where you cannot enter unless it’s empty</blockquote><h3>HTTP/2 — The Modern Web Protocol</h3><p>HTTP/2 was introduced to solve the performance and efficiency limitations of HTTP/1.1<strong> without changing HTTP semantics</strong>. It focuses on speed, efficiency, and better resource handling.</p><h4>How HTTP/2 increased performance?</h4><h4>1. Binary Protocol</h4><p>Unlike HTTP/1.1, which is text-based, HTTP/2 uses a binary format.<br>This makes parsing faster, reduces parsing errors, and improves performance for both clients and servers.</p><h4>2. Multiplexing</h4><p>HTTP/2 allows multiple requests and responses to be sent simultaneously over a single TCP connection.<br> This completely eliminates Head-of-Line Blocking at the application level and significantly improves page load times.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/895/1*GMihrmvrIu9x-ZP_ZE_Lbg.png" /><figcaption>How does HTTP/2 work?</figcaption></figure><blockquote>As this figure shows HTTP/2 multiplexing, where multiple requests and responses are sent in parallel over a single connection, eliminating waiting time between requests</blockquote><h4>3. Header Compression (HPACK)</h4><p>HTTP/2 uses HPACK compression to reduce the size of request and response headers.<br>This minimizes bandwidth usage and removes unnecessary overhead caused by repeated headers in HTTP/1.1.</p><h4>4. Server Push</h4><p>With Server Push, the server can proactively send resources (such as CSS or JavaScript files) before the browser requests them because it predicts that the server will ask for them later.<br>This reduces round-trip delays and speeds up page rendering.</p><h4>How HTTP/2 increased security?</h4><h4>1. Encryption by Default</h4><p>Most HTTP/2 implementations run over HTTPS, which <strong>enforces encrypted communication using TLS</strong>.<br><strong>This protects data from eavesdropping and man-in-the-middle attacks.</strong></p><h4>2. Flow Control</h4><p>HTTP/2 introduces flow control to prevent clients or servers from being overwhelmed with data.<br>This helps mitigate buffer overflow risks and improves stability.</p><h3>New Attack Surface</h3><p>Although HTTP/2 improves performance and security, it also introduces new risks such as:</p><ul><li><strong>Stream-based DoS attacks</strong>:<br>Attackers open a massive number of streams within a single connection to overwhelm the server’s processing power</li><li><strong>Server Push abuse:<br></strong>Misconfiguring push resources can be exploited to flood the client with unwanted data, wasting bandwidth and CPU</li><li><strong>Resource exhaustion due to multiplexing:<br></strong>Because of multiplexing, a single connection can now deliver a high volume of requests instantly, potentially crashing the server’s memory if limits aren&#39;t set</li></ul><p><strong>In conclusion, HTTP/2 isn’t just an upgrade; it’s a reconstruction of how data flows on the web. Although it brings incredible speed and security, it also requires developers to be more aware about new types of vulnerabilities and threats. So, nowadays the web is faster, but the responsibility is greater.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c4465a2e8f5b" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>