<?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 Prajjwal Kapoor on Medium]]></title>
        <description><![CDATA[Stories by Prajjwal Kapoor on Medium]]></description>
        <link>https://medium.com/@prajjwalkapoor?source=rss-e69954728047------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Stories by Prajjwal Kapoor on Medium</title>
            <link>https://medium.com/@prajjwalkapoor?source=rss-e69954728047------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 20:59:57 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@prajjwalkapoor/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[How Web Works!]]></title>
            <link>https://medium.com/@prajjwalkapoor/how-web-works-e83de3c70243?source=rss-e69954728047------2</link>
            <guid isPermaLink="false">https://medium.com/p/e83de3c70243</guid>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[backend-development]]></category>
            <category><![CDATA[networking]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[https]]></category>
            <dc:creator><![CDATA[Prajjwal Kapoor]]></dc:creator>
            <pubDate>Wed, 24 Aug 2022 14:10:22 GMT</pubDate>
            <atom:updated>2022-12-29T11:44:15.148Z</atom:updated>
            <content:encoded><![CDATA[<p>Have you ever thought about what is happening behind the scenes after entering <a href="http://www.google./">www.google.</a>com on your browser? <br>How does the browser know you are requesting Google’s home page and where is google.com located on the internet?</p><p>To answer all those questions, you need to understand how web technology works behind the scenes.</p><h3>The Client-Server model</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*kZuLJa3OA0BqtEjv" /></figure><p>So, as I have introduced two terms <strong><em>CLIENT</em></strong> and <strong><em>SERVER</em></strong>, let’s understand what they are.</p><p><strong><em>CLIENT</em></strong> refers to your browser from where you are requesting a website/resource and the <strong><em>SERVER</em></strong> refers to the computer where the requested website/resource is hosted. Whenever a client sends the request either to get data from the server or to post data on the server. In any of these two cases, the server will respond to that particular request either by providing or posting the desired data with a specific success or error message.</p><p>As of now, we have understood that there are two parties between which a connection needs to be established so that they can share data with each other. Now let’s look at how your browser knows the address of the server.</p><h3>Domain Name System (DNS)</h3><p>Let’s take the example of your phone’s contact list to understand DNS. When you save any contact to your phone, you save it with the name of the person mapped with the number as the name is easier to remember when you compare it to the number. <br>DNS works in the same way. The domain name of any website is mapped with the server’s IP address to find where the server is located. DNS works as a translator and it translates the domain names to IP addresses so browsers can load Internet resources.<br>Check out this video by <a href="https://www.youtube.com/c/IBMTechnology">IBM</a> to know about DNS in detail.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FnyH0nYhMW9M%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DnyH0nYhMW9M&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FnyH0nYhMW9M%2Fhqdefault.jpg&amp;key=d04bfffea46d4aeda930ec88cc64b87c&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/3b0defec2a736b8cb5dc9054fc3837ef/href">https://medium.com/media/3b0defec2a736b8cb5dc9054fc3837ef/href</a></iframe><p>After getting the server’s IP address, there must be some way to communicate with servers to get the desired resources. Let’s look at how client-server communication works.</p><h3>HTTP ( HyperText Transfer Protocol )</h3><p>The Hypertext Transfer Protocol is a network protocol that is based on TCP/IP for the communication between client and server.<br>The Basic flow is client sends the request to the server to get the resource and then the server gives the response back to the client. The transfer of data takes place in the form of small segments which are called packets.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*oXe5go_NVSj441Gd.jpeg" /></figure><p><strong>HTTP Headers:</strong></p><p>Whenever you request something from the server or the server is responding to you back, HTTP headers are involved in both cases. HTTP Headers are nothing but the metadata for requests and responses. It carries the information about the request and response.<br>HTTP Headers are of mainly two types:</p><ul><li><strong><em>Request Headers</em></strong>: Carries the information about the request of the client.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/0*DU0ACcNb9CN35_uW.png" /></figure><ul><li><strong><em>Response Headers</em></strong>: Carries the information about the response from the server.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/424/1*RK8k7_CLo6TqoPYczMvk4w.png" /></figure><p><strong>HTTP Request Methods:</strong></p><p>Look at the first line of the above example of a request header, a method is <em>GET</em> defined which means that you are requesting something from the server.</p><p>There are mainly four types of HTTP methods:</p><ul><li><em>GET</em> → To get the data from the server</li><li><em>POST</em> →To post the data on the server</li><li><em>PUT</em> →To update the data on the server</li><li><em>DELETE</em> →To delete the data on the server.</li></ul><p>There are other methods also but we generally use the above four. You can see the complete list <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods">here</a>.</p><p><strong>HTTP Status Codes</strong></p><p>HTTP status code shows if the request is fulfilled by the server or not. If it is fulfilled, the server responds with a success status code otherwise it responds with a specific error code.<br>All the status codes are clubbed together in 5 different subgroups:</p><ol><li>Informational (100–199)ts</li><li>Successful (200–299)</li><li>theRedirection (300–399)</li><li>Client error (400–499)</li><li>Server error (500–599)</li></ol><p><strong>HTTP response and request body</strong></p><p>The request body is used to send users the data to the server for processing. For example, submitting a form on some website. Similarly, the response body is used to get the data from the server.</p><h3>HTTPS <em>( HyperText Transfer Protocol Secure )</em></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ItKgwGP5_8wB6_IAtPQ0iA.png" /></figure><p>The main issue of using HTTP is security. Data packets are not encrypted while transmitting and therefore attackers can quickly get access to your data by stealing data packets with a <a href="https://en.wikipedia.org/wiki/Man-in-the-middle_attack">MITM attack</a>. HTTPS is used instead of HTTP to avoid these things.<br><em>HTTPS (HyperText Transfer Protocol Secure) </em>is a protocol built over HTTP with security enhancements. Cryptographic principles are introduced in HTTPS so that you can freely transmit data packets without any security issues. The protocol which is used by HTTPS is <em>TLS ( Transport Layer Security )</em>.</p><p>To understand what is TLS and how TLS handshake works, we need to know about public-private key encryption.<br><strong>Public keys </strong>are used to encrypt sensitive data and anyone can use this to encrypt data but <strong>Private keys</strong> are for the decryption of encrypted data only receivers has access to this only receiver can decrypt the data.</p><p>So when you visit <a href="https://www.google.com/">https://www.google.com</a>, google sends you their public key which is signed by a verified certificate authority ( in this case, google itself ), and then your browser encrypts the data packets with google’s public key so that only google can decrypt data packets.</p><p>If you are able to see the green lock icon, that means the connection is secured with HTTPS security.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/460/1*WnXhJljZ8QHOTkNkXht3Bw.png" /><figcaption>Example of an SSL/TLS certificate</figcaption></figure><p>After all these things, your browser assembles all the data packets and creates an HTML document with CSS and JS files to see the website&#39;s main content.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e83de3c70243" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>