<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Victoria</title>
    <description>The latest articles on DEV Community by Victoria (@csvt).</description>
    <link>https://dev.to/csvt</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F664200%2F5beb6625-eca5-47d4-b570-16c74ec1b2a3.png</url>
      <title>DEV Community: Victoria</title>
      <link>https://dev.to/csvt</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/csvt"/>
    <language>en</language>
    <item>
      <title>How does the browser work?</title>
      <dc:creator>Victoria</dc:creator>
      <pubDate>Sat, 21 Aug 2021 09:23:31 +0000</pubDate>
      <link>https://dev.to/csvt/how-does-the-browser-work-41mk</link>
      <guid>https://dev.to/csvt/how-does-the-browser-work-41mk</guid>
      <description>&lt;p&gt;The task of the browser is to load and display the page:&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--XWY5AmGt--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/pr9fqy9xfznvpz9h1ogu.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--XWY5AmGt--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/pr9fqy9xfznvpz9h1ogu.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;&lt;strong&gt;URL (Uniform Resource Locator)&lt;/strong&gt; is a pointer to a resource: a website, a document, an image, a video.&lt;/em&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  What happens when a user requests a resource?
&lt;/h1&gt;

&lt;h4&gt;
  
  
  0. The browser splits the URL into parts:
&lt;/h4&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--MjtzTE19--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3ip9q6fmm9fue3b5j53f.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--MjtzTE19--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3ip9q6fmm9fue3b5j53f.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h4&gt;
  
  
  1. DNS Resolution
&lt;/h4&gt;

&lt;p&gt;Using DNS browser converts habr.com to the IP address:&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--fWXvHcUO--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/r9tpevjrrhbqzo6bbxd7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--fWXvHcUO--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/r9tpevjrrhbqzo6bbxd7.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;&lt;strong&gt;DNS (Domain Name System)&lt;/strong&gt; is a system that&lt;br&gt;
converts a domain name (google.com, habr.com) to the IP address.&lt;/em&gt;&lt;/p&gt;

&lt;h4&gt;
  
  
  2. TCP connection:
&lt;/h4&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--z4m6G53a--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vfgkqbvzuz7h6c0rjysn.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--z4m6G53a--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vfgkqbvzuz7h6c0rjysn.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;br&gt;
Using the IP address the browser establishes a connection with the host to start exchanging traffic.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;&lt;strong&gt;TCP (Transmission Control Protocol)&lt;/strong&gt; is a protocol that establishes a reliable connection between two hosts.&lt;/em&gt;&lt;/p&gt;

&lt;h4&gt;
  
  
  3. The browser can request the necessary resource from the server using HTTP:
&lt;/h4&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--pRIyIVIF--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zal392qdn4rwzuzdmzio.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--pRIyIVIF--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zal392qdn4rwzuzdmzio.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;&lt;strong&gt;HTTP (Hypertext Transfer Protocol)&lt;/strong&gt; is a specific format of messages between the client (browser) and the server.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;The server receives the request, then sends it to the database to take the requested data from there, forms it in a certain format (HTML, XML, JSON) and gives it to the browser.&lt;/p&gt;

&lt;p&gt;Or returns an error:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;1xx&lt;/strong&gt; — informational answer&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;2xx&lt;/strong&gt; — successful execution &lt;em&gt;(200 OK)&lt;/em&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;3xx&lt;/strong&gt; — redirection&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;4xx&lt;/strong&gt; — client error &lt;em&gt;(400 — bad request, 404 — not found)&lt;/em&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;5xx&lt;/strong&gt; — server error&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>beginners</category>
      <category>codenewbie</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
