<?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: prateekagrawl</title>
    <description>The latest articles on DEV Community by prateekagrawl (@prateekagrawl).</description>
    <link>https://dev.to/prateekagrawl</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%2F524935%2F48c0778d-a2e7-4fd1-b8f3-a2a42d051261.png</url>
      <title>DEV Community: prateekagrawl</title>
      <link>https://dev.to/prateekagrawl</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/prateekagrawl"/>
    <language>en</language>
    <item>
      <title>HTTP overview and its request methods</title>
      <dc:creator>prateekagrawl</dc:creator>
      <pubDate>Thu, 03 Dec 2020 16:17:05 +0000</pubDate>
      <link>https://dev.to/prateekagrawl/http-overview-and-its-request-methods-1mip</link>
      <guid>https://dev.to/prateekagrawl/http-overview-and-its-request-methods-1mip</guid>
      <description>&lt;p&gt;&lt;strong&gt;What is HTTP?&lt;/strong&gt;&lt;br&gt;
Hypertext Transfer Protocol is a set of rules which allows us to retrieve data from servers. It is the underlying format that is used to structure request and responses for effective communication between a client and a server. A complete document is constructed by making different calls to server. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--wjhXm7y4--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://media.prod.mdn.mozit.cloud/attachments/2016/08/09/13677/d031b77dee83f372ffa4e0389d68108b/Fetching_a_page.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--wjhXm7y4--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://media.prod.mdn.mozit.cloud/attachments/2016/08/09/13677/d031b77dee83f372ffa4e0389d68108b/Fetching_a_page.png" alt="alt text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;So like in communication we have sender and receiver, same is the case here. The former being the client i.e. browser(most of the times) and latter being the server here.&lt;/p&gt;

&lt;p&gt;Clients and servers communicate with each other through messages.The messages sent by the client are called &lt;em&gt;requests&lt;/em&gt; and the messages sent by the server in reply are called &lt;em&gt;responses&lt;/em&gt;.&lt;br&gt;
Formally put through:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;HTTP is a client-server protocol: requests are sent by one entity (client) and response by the other entity (server).&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h1&gt;
  
  
  HTTP Request Methods
&lt;/h1&gt;

&lt;p&gt;There are many methods for the browser to make request to the server. It depends on the following operations. &lt;br&gt;
&lt;strong&gt;CRUD: Create, Read, Update and Delete&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  GET
&lt;/h2&gt;

&lt;p&gt;GET is used to fetch data from a server. GET is one of the most popular HTTP request techniques. It does the operation of &lt;strong&gt;Read&lt;/strong&gt; in the browser.&lt;/p&gt;

&lt;h2&gt;
  
  
  HEAD
&lt;/h2&gt;

&lt;p&gt;The HEAD method requests a reaction that is similar to that of GET request, but it doesn’t have a message-body in the response.&lt;/p&gt;

&lt;h2&gt;
  
  
  POST
&lt;/h2&gt;

&lt;p&gt;It is used to create a resource. It performs the operation of &lt;strong&gt;Create&lt;/strong&gt; in the browser. It results in some changes in the server. A typical example for it would be uploading a photo on social media.&lt;/p&gt;

&lt;h2&gt;
  
  
  PUT
&lt;/h2&gt;

&lt;p&gt;It is used to update a resource. It performs the operation of &lt;strong&gt;Update&lt;/strong&gt; in the browser.&lt;/p&gt;

&lt;p&gt;The difference between POST and PUT is that PUT requests are &lt;em&gt;idempotent&lt;/em&gt;. This means that if you call the same PUT requests multiple times, the results will always be the same. But the same is not true for POST. POST will result in changes in the server every time we do this.&lt;/p&gt;

&lt;h2&gt;
  
  
  DELETE
&lt;/h2&gt;

&lt;p&gt;It is used to delete a resource.It performs the operation of &lt;strong&gt;Delete&lt;/strong&gt; in the browser. This method is also idempotent.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Note:&lt;/em&gt; There are some other methods as well but these are the commonly used ones.&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>http</category>
      <category>httprequests</category>
    </item>
  </channel>
</rss>
