{"id":5041,"date":"2025-03-13T01:30:00","date_gmt":"2025-03-12T20:00:00","guid":{"rendered":"https:\/\/devnote.in\/?p=5041"},"modified":"2025-03-13T17:06:13","modified_gmt":"2025-03-13T11:36:13","slug":"top-9-http-request-methods","status":"publish","type":"post","link":"https:\/\/devnote.in\/top-9-http-request-methods\/","title":{"rendered":"Top 9 HTTP Request Methods"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Today, we will learn the <strong>Top 9 HTTP Request methods<\/strong>. HTTP set of request methods to indicate the desired action to be performed for a given resource. HTTP request is made by a client, which is located on a server. and The main use of the request is to access a resource on the server.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Table of concept<\/h4>\n\n\n\n<ol class=\"wp-block-list\">\n<li><a class=\"wp-block-table-of-contents__entry\" href=\"https:\/\/devnote.in\/?p=5041#1-get\">GET<\/a><\/li>\n\n\n\n<li><a class=\"wp-block-table-of-contents__entry\" href=\"https:\/\/devnote.in\/?p=5041#2-post\">POST<\/a><\/li>\n\n\n\n<li><a class=\"wp-block-table-of-contents__entry\" href=\"https:\/\/devnote.in\/?p=5041#3-put\">PUT<\/a><\/li>\n\n\n\n<li><a class=\"wp-block-table-of-contents__entry\" href=\"https:\/\/devnote.in\/?p=5041#4-patch\">PATCH<\/a><\/li>\n\n\n\n<li><a class=\"wp-block-table-of-contents__entry\" href=\"https:\/\/devnote.in\/?p=5041#5-delete\">DELETE<\/a><\/li>\n\n\n\n<li><a class=\"wp-block-table-of-contents__entry\" href=\"https:\/\/devnote.in\/?p=5041#6-head\">HEAD<\/a><\/li>\n\n\n\n<li><a class=\"wp-block-table-of-contents__entry\" href=\"https:\/\/devnote.in\/?p=5041#7-options\">OPTIONS<\/a><\/li>\n\n\n\n<li><a class=\"wp-block-table-of-contents__entry\" href=\"https:\/\/devnote.in\/?p=5041#8-trace\">TRACE<\/a><\/li>\n\n\n\n<li><a class=\"wp-block-table-of-contents__entry\" href=\"https:\/\/devnote.in\/?p=5041#9-connect\">CONNECT<\/a><\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"1-get\">1. GET<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">GET Method Retrieves data from the server. it should only retrieve data and should have no other effect on the data.<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"example\">Example<\/h5>\n\n\n\n<pre class=\"wp-block-code\"><code>GET \/api\/employees\/{employee-id}<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The above example returns a specific employee by Employee ID.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"2-post\">2. POST<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">POST Method Used to send data to a server to create a new resource. the data is included in the body of the request.<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"example-1\">Example<\/h5>\n\n\n\n<pre class=\"wp-block-code\"><code>POST \/api\/employees\/department<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The above example Creates a department resource.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"3-put\">3. PUT<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The PUT Method is similar to POST, but it&#8217;s used to update existing resources. the entire resource is updated at once.<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"example-1\">Example<\/h5>\n\n\n\n<pre class=\"wp-block-code\"><code>PUT \/api\/employees\/16<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The above example Update employee by employee ID.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"4-patch\">4. PATCH<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">PATCH Method is used to update resources but it only updates the fields that were included in the request.<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"example-1\">Example<\/h5>\n\n\n\n<pre class=\"wp-block-code\"><code>PATCH \/api\/employees\/16{\"name\": \"John\"}<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The above example Updates the name for employee id 16.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"5-delete\">5. DELETE<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">DELETE Method deletes a resource, Regardless if the number of calls, it returns the same result.<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"example-1\">Example<\/h5>\n\n\n\n<pre class=\"wp-block-code\"><code>DELETE \/api\/employees\/16<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The above example is Delete employee by Employee ID.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"6-head\">6. HEAD<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">HEAD Method Typically this is used to check if a resource is available and to get the metadata.<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"example-1\">Example<\/h5>\n\n\n\n<pre class=\"wp-block-code\"><code>HEAD \/api\/employees<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The above example is Similar to GET, but it does not return the list of employees.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"7-options\">7. OPTIONS<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The OPTIONS Method is used to get information about the possible communication options for the given URL or an asterisk to refer to the entire server.<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"example-1\">Example<\/h5>\n\n\n\n<pre class=\"wp-block-code\"><code>OPTIONS \/api\/index.html\/1.2<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The above example Returns the Permitted HTTP Method in this URL.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"8-trace\">8. TRACE<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">TRACE Method Is for diagnosis purposes. it echoes the received request so that a client can see what changes or additions have been made by intermediate servers.<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"example-1\">Example<\/h5>\n\n\n\n<pre class=\"wp-block-code\"><code>TRACE \/api\/index.html<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The above example Responds to the exact request that the client sent.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"9-connect\">9. CONNECT<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">CONNECT Method is for making end-to-end connections between a client and a server. It makes a two-away connection like a tunnel between them.<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"example-1\">Example<\/h5>\n\n\n\n<pre class=\"wp-block-code\"><code>CONNECT www.devnote.in:443HTTP\/1.2<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The above example connects to the URL Provided.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today, we will learn the Top 9 HTTP Request methods. HTTP set of request methods to indicate the desired action to be performed for a given resource. HTTP request is made by a client, which is located on a server. and The main use of the request is to access a resource on the server. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":5042,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[302],"tags":[],"class_list":["post-5041","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-http"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Top 9 HTTP Request Methods - Devnote<\/title>\n<meta name=\"description\" content=\"Top 9 HTTP Request methods. HTTP set of request methods to indicate the desired action to be performed for a given resource.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/devnote.in\/top-9-http-request-methods\/\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Devnote team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/devnote.in\\\/top-9-http-request-methods\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/devnote.in\\\/top-9-http-request-methods\\\/\"},\"author\":{\"name\":\"Devnote team\",\"@id\":\"https:\\\/\\\/devnote.in\\\/#\\\/schema\\\/person\\\/989004291ce5d7cb78fdbcecd35d29cc\"},\"headline\":\"Top 9 HTTP Request Methods\",\"datePublished\":\"2025-03-12T20:00:00+00:00\",\"dateModified\":\"2025-03-13T11:36:13+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/devnote.in\\\/top-9-http-request-methods\\\/\"},\"wordCount\":374,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/devnote.in\\\/#\\\/schema\\\/person\\\/989004291ce5d7cb78fdbcecd35d29cc\"},\"image\":{\"@id\":\"https:\\\/\\\/devnote.in\\\/top-9-http-request-methods\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/devnote.in\\\/wp-content\\\/uploads\\\/2023\\\/08\\\/Top-9-http-request-methods-1.png\",\"articleSection\":[\"HTTP\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/devnote.in\\\/top-9-http-request-methods\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/devnote.in\\\/top-9-http-request-methods\\\/\",\"url\":\"https:\\\/\\\/devnote.in\\\/top-9-http-request-methods\\\/\",\"name\":\"Top 9 HTTP Request Methods - Devnote\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/devnote.in\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/devnote.in\\\/top-9-http-request-methods\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/devnote.in\\\/top-9-http-request-methods\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/devnote.in\\\/wp-content\\\/uploads\\\/2023\\\/08\\\/Top-9-http-request-methods-1.png\",\"datePublished\":\"2025-03-12T20:00:00+00:00\",\"dateModified\":\"2025-03-13T11:36:13+00:00\",\"description\":\"Top 9 HTTP Request methods. HTTP set of request methods to indicate the desired action to be performed for a given resource.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/devnote.in\\\/top-9-http-request-methods\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/devnote.in\\\/top-9-http-request-methods\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/devnote.in\\\/top-9-http-request-methods\\\/#primaryimage\",\"url\":\"https:\\\/\\\/devnote.in\\\/wp-content\\\/uploads\\\/2023\\\/08\\\/Top-9-http-request-methods-1.png\",\"contentUrl\":\"https:\\\/\\\/devnote.in\\\/wp-content\\\/uploads\\\/2023\\\/08\\\/Top-9-http-request-methods-1.png\",\"width\":1920,\"height\":1080,\"caption\":\"Top 9 HTTP Request Methods\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/devnote.in\\\/top-9-http-request-methods\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/devnote.in\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Top 9 HTTP Request Methods\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/devnote.in\\\/#website\",\"url\":\"https:\\\/\\\/devnote.in\\\/\",\"name\":\"Devnote\",\"description\":\"Web Development Blog Company, Services India\",\"publisher\":{\"@id\":\"https:\\\/\\\/devnote.in\\\/#\\\/schema\\\/person\\\/989004291ce5d7cb78fdbcecd35d29cc\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/devnote.in\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/devnote.in\\\/#\\\/schema\\\/person\\\/989004291ce5d7cb78fdbcecd35d29cc\",\"name\":\"Devnote team\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/devnote.in\\\/wp-content\\\/uploads\\\/2020\\\/04\\\/devnote.png\",\"url\":\"https:\\\/\\\/devnote.in\\\/wp-content\\\/uploads\\\/2020\\\/04\\\/devnote.png\",\"contentUrl\":\"https:\\\/\\\/devnote.in\\\/wp-content\\\/uploads\\\/2020\\\/04\\\/devnote.png\",\"width\":3000,\"height\":574,\"caption\":\"Devnote team\"},\"logo\":{\"@id\":\"https:\\\/\\\/devnote.in\\\/wp-content\\\/uploads\\\/2020\\\/04\\\/devnote.png\"},\"description\":\"My name is Ravi Patel. I'm a full-stack developer. I live in India and I love to write tutorials and tips that can help other artisans. I am a big fan of PHP, Javascript, JQuery, Laravel, WordPress, HTML, CSS, Python, Django, and Bootstrap.\",\"sameAs\":[\"https:\\\/\\\/devnote.in\",\"https:\\\/\\\/www.facebook.com\\\/devnote16\",\"https:\\\/\\\/www.instagram.com\\\/fefar_ravi\\\/\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/fefar-ravi-72bb17159\\\/\",\"https:\\\/\\\/in.pinterest.com\\\/devnote\\\/\",\"https:\\\/\\\/x.com\\\/FefarRavi1\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCkYwTeflIV5PiIw_zCOCDvA\\\/featured\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Top 9 HTTP Request Methods - Devnote","description":"Top 9 HTTP Request methods. HTTP set of request methods to indicate the desired action to be performed for a given resource.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/devnote.in\/top-9-http-request-methods\/","twitter_misc":{"Written by":"Devnote team","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/devnote.in\/top-9-http-request-methods\/#article","isPartOf":{"@id":"https:\/\/devnote.in\/top-9-http-request-methods\/"},"author":{"name":"Devnote team","@id":"https:\/\/devnote.in\/#\/schema\/person\/989004291ce5d7cb78fdbcecd35d29cc"},"headline":"Top 9 HTTP Request Methods","datePublished":"2025-03-12T20:00:00+00:00","dateModified":"2025-03-13T11:36:13+00:00","mainEntityOfPage":{"@id":"https:\/\/devnote.in\/top-9-http-request-methods\/"},"wordCount":374,"commentCount":0,"publisher":{"@id":"https:\/\/devnote.in\/#\/schema\/person\/989004291ce5d7cb78fdbcecd35d29cc"},"image":{"@id":"https:\/\/devnote.in\/top-9-http-request-methods\/#primaryimage"},"thumbnailUrl":"https:\/\/devnote.in\/wp-content\/uploads\/2023\/08\/Top-9-http-request-methods-1.png","articleSection":["HTTP"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/devnote.in\/top-9-http-request-methods\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/devnote.in\/top-9-http-request-methods\/","url":"https:\/\/devnote.in\/top-9-http-request-methods\/","name":"Top 9 HTTP Request Methods - Devnote","isPartOf":{"@id":"https:\/\/devnote.in\/#website"},"primaryImageOfPage":{"@id":"https:\/\/devnote.in\/top-9-http-request-methods\/#primaryimage"},"image":{"@id":"https:\/\/devnote.in\/top-9-http-request-methods\/#primaryimage"},"thumbnailUrl":"https:\/\/devnote.in\/wp-content\/uploads\/2023\/08\/Top-9-http-request-methods-1.png","datePublished":"2025-03-12T20:00:00+00:00","dateModified":"2025-03-13T11:36:13+00:00","description":"Top 9 HTTP Request methods. HTTP set of request methods to indicate the desired action to be performed for a given resource.","breadcrumb":{"@id":"https:\/\/devnote.in\/top-9-http-request-methods\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/devnote.in\/top-9-http-request-methods\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/devnote.in\/top-9-http-request-methods\/#primaryimage","url":"https:\/\/devnote.in\/wp-content\/uploads\/2023\/08\/Top-9-http-request-methods-1.png","contentUrl":"https:\/\/devnote.in\/wp-content\/uploads\/2023\/08\/Top-9-http-request-methods-1.png","width":1920,"height":1080,"caption":"Top 9 HTTP Request Methods"},{"@type":"BreadcrumbList","@id":"https:\/\/devnote.in\/top-9-http-request-methods\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/devnote.in\/"},{"@type":"ListItem","position":2,"name":"Top 9 HTTP Request Methods"}]},{"@type":"WebSite","@id":"https:\/\/devnote.in\/#website","url":"https:\/\/devnote.in\/","name":"Devnote","description":"Web Development Blog Company, Services India","publisher":{"@id":"https:\/\/devnote.in\/#\/schema\/person\/989004291ce5d7cb78fdbcecd35d29cc"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/devnote.in\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/devnote.in\/#\/schema\/person\/989004291ce5d7cb78fdbcecd35d29cc","name":"Devnote team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/devnote.in\/wp-content\/uploads\/2020\/04\/devnote.png","url":"https:\/\/devnote.in\/wp-content\/uploads\/2020\/04\/devnote.png","contentUrl":"https:\/\/devnote.in\/wp-content\/uploads\/2020\/04\/devnote.png","width":3000,"height":574,"caption":"Devnote team"},"logo":{"@id":"https:\/\/devnote.in\/wp-content\/uploads\/2020\/04\/devnote.png"},"description":"My name is Ravi Patel. I'm a full-stack developer. I live in India and I love to write tutorials and tips that can help other artisans. I am a big fan of PHP, Javascript, JQuery, Laravel, WordPress, HTML, CSS, Python, Django, and Bootstrap.","sameAs":["https:\/\/devnote.in","https:\/\/www.facebook.com\/devnote16","https:\/\/www.instagram.com\/fefar_ravi\/","https:\/\/www.linkedin.com\/in\/fefar-ravi-72bb17159\/","https:\/\/in.pinterest.com\/devnote\/","https:\/\/x.com\/FefarRavi1","https:\/\/www.youtube.com\/channel\/UCkYwTeflIV5PiIw_zCOCDvA\/featured"]}]}},"jetpack_featured_media_url":"https:\/\/devnote.in\/wp-content\/uploads\/2023\/08\/Top-9-http-request-methods-1.png","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/devnote.in\/wp-json\/wp\/v2\/posts\/5041","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devnote.in\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devnote.in\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devnote.in\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/devnote.in\/wp-json\/wp\/v2\/comments?post=5041"}],"version-history":[{"count":1,"href":"https:\/\/devnote.in\/wp-json\/wp\/v2\/posts\/5041\/revisions"}],"predecessor-version":[{"id":5309,"href":"https:\/\/devnote.in\/wp-json\/wp\/v2\/posts\/5041\/revisions\/5309"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devnote.in\/wp-json\/wp\/v2\/media\/5042"}],"wp:attachment":[{"href":"https:\/\/devnote.in\/wp-json\/wp\/v2\/media?parent=5041"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devnote.in\/wp-json\/wp\/v2\/categories?post=5041"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devnote.in\/wp-json\/wp\/v2\/tags?post=5041"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}