<br />
<b>Warning</b>:  Undefined array key "global_protection_id" in <b>/home/wikitechy/public_html/interview-questions/wp-content/plugins/content-protector/inc/class-ps-rest-handler.php</b> on line <b>51</b><br />
{"id":4576,"date":"2022-08-04T06:33:30","date_gmt":"2022-08-04T06:33:30","guid":{"rendered":"https:\/\/www.wikitechy.com\/interview-questions\/?p=4576"},"modified":"2022-08-04T06:34:51","modified_gmt":"2022-08-04T06:34:51","slug":"what-is-the-difference-between-get-and-post-method","status":"publish","type":"post","link":"https:\/\/www.wikitechy.com\/interview-questions\/php\/what-is-the-difference-between-get-and-post-method\/","title":{"rendered":"What is the difference between GET and POST Method ?"},"content":{"rendered":"<p><img fetchpriority=\"high\" decoding=\"async\" class=\"alignnone size-full wp-image-4578 aligncenter\" src=\"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/08\/get-post-method.png\" alt=\"\" width=\"956\" height=\"526\" srcset=\"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/08\/get-post-method.png 956w, https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/08\/get-post-method-300x165.png 300w, https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/08\/get-post-method-768x423.png 768w, https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/08\/get-post-method-390x215.png 390w, https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/08\/get-post-method-820x451.png 820w\" sizes=\"(max-width: 956px) 100vw, 956px\" \/><\/p>\n<table width=\"0\">\n<tbody>\n<tr>\n<td width=\"335\"><strong>\u00a0<\/strong><\/p>\n<p><strong>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 GET <\/strong><\/td>\n<td width=\"335\"><strong>\u00a0<\/strong><\/p>\n<p><strong>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0POST<\/strong><\/td>\n<\/tr>\n<tr>\n<td width=\"335\">In browser history parameters remain because they are the part of the URL<\/td>\n<td width=\"335\">In browser history parameters remain because they are the part of the URL<\/td>\n<\/tr>\n<tr>\n<td width=\"335\">It can be bookmarked<\/td>\n<td width=\"335\">It cannot be bookmarked<\/td>\n<\/tr>\n<tr>\n<td width=\"335\">If the HTML is stored in the browser cache, GET requests are re-executed but may not be re-submitted to server<\/p>\n<p>&nbsp;<\/td>\n<td width=\"335\">The browser alerts the user that data will need to be re-submitted<\/td>\n<\/tr>\n<tr>\n<td width=\"335\">It can send but the parameter data is limited to what we can stuff into the URL<\/td>\n<td width=\"335\">It can send parameters, including uploading files to the server<\/td>\n<\/tr>\n<tr>\n<td width=\"335\">Hacking becomes easier for script kiddies<\/td>\n<td width=\"335\">Hacking becomes more difficult<\/td>\n<\/tr>\n<tr>\n<td width=\"335\">There is restriction on form data type, only ASCII characters allowed<\/td>\n<td width=\"335\">There is no restrictions. Binary data is also allowed<\/td>\n<\/tr>\n<tr>\n<td width=\"335\"><a href=\"https:\/\/www.wikitechy.com\/php\/php-get\">PHP GET<\/a> method is less secure than POST because data sent is part of the URL. So, its saved in browser history or server logs in plaintext<\/td>\n<td width=\"335\"><a href=\"https:\/\/www.wikitechy.com\/php\/php-post\">PHP POST<\/a> is little safer than GET because the parameters are not stored in browser history or web- server logs<\/td>\n<\/tr>\n<tr>\n<td width=\"335\">There are restrictions on form data length<\/td>\n<td width=\"335\">There are no restrictions on form data length<\/td>\n<\/tr>\n<tr>\n<td width=\"335\">GET method should not be used while sending passwords or other sensitive information<\/td>\n<td width=\"335\">POST method used when sending passwords or other sensitive information.<\/td>\n<\/tr>\n<tr>\n<td width=\"335\">GET method is visible to everyone in address bar and it has limits on amount of information to send<\/td>\n<td width=\"335\">POST method variables are not displayed in the URL<\/td>\n<\/tr>\n<tr>\n<td width=\"335\">It can be cached<\/td>\n<td width=\"335\">It cannot be cached<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-4577 aligncenter\" src=\"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/08\/get-method.gif\" alt=\"\" width=\"1920\" height=\"1080\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u00a0 \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 GET \u00a0 \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0POST In browser history parameters remain because they are the part of the URL In browser history parameters remain because they are the part of the URL It can be bookmarked It cannot be bookmarked If the HTML is stored in the browser cache, GET requests are re-executed but may [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"passster_activate_protection":false,"passster_protect_child_pages":"","passster_protection_type":"password","passster_password":"","passster_activate_overwrite_defaults":"","passster_headline":"","passster_instruction":"","passster_placeholder":"","passster_button":"","passster_id":"","passster_activate_misc_settings":"","passster_redirect_url":"","passster_hide":"no","passster_area_shortcode":"","gtb_hide_title":false,"gtb_wrap_title":false,"gtb_class_title":"","gtb_remove_headerfooter":false,"footnotes":""},"categories":[8182],"tags":[17771,17772,17769,17768,8377,8358,17774,8383,17776,17777,17778,17770,17775,17779,17773,17780],"class_list":["post-4576","post","type-post","status-publish","format-standard","hentry","category-php","tag-difference-between-get-and-post-in-rest-api","tag-difference-between-get-and-post-method-in-html-with-example","tag-get-and-post-method-difference-in-java","tag-get-and-post-method-example","tag-get-and-post-method-in-java","tag-get-and-post-method-in-php","tag-get-method","tag-what-is-the-difference-between-get-and-post-method","tag-what-is-the-difference-between-get-and-post-method-in-html","tag-what-is-the-difference-between-get-and-post-method-in-java","tag-what-is-the-difference-between-get-and-post-method-in-javascript","tag-what-is-the-difference-between-get-and-post-method-in-php","tag-what-is-the-difference-between-get-and-post-method-in-rest-api","tag-what-is-the-difference-between-get-and-post-method-in-web-api","tag-what-is-the-difference-between-get-and-post-method-mcq","tag-what-is-the-difference-between-get-and-post-methods-in-html-discuss"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>What is the difference between GET and POST Method ? - Get Vs Post<\/title>\n<meta name=\"description\" content=\"What is the difference between GET and POST Method ? - HTTP Methods Get Vs Post - In browser history parameters remain because they are the part of the URL\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wikitechy.com\/interview-questions\/php\/what-is-the-difference-between-get-and-post-method\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"What is the difference between GET and POST Method ? - Get Vs Post\" \/>\n<meta property=\"og:description\" content=\"What is the difference between GET and POST Method ? - HTTP Methods Get Vs Post - In browser history parameters remain because they are the part of the URL\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wikitechy.com\/interview-questions\/php\/what-is-the-difference-between-get-and-post-method\/\" \/>\n<meta property=\"og:site_name\" content=\"Wikitechy\" \/>\n<meta property=\"article:published_time\" content=\"2022-08-04T06:33:30+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-08-04T06:34:51+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/08\/get-post-method.png\" \/>\n<meta name=\"author\" content=\"webmaster\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"webmaster\" \/>\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\":\"WebPage\",\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/php\/what-is-the-difference-between-get-and-post-method\/\",\"url\":\"https:\/\/www.wikitechy.com\/interview-questions\/php\/what-is-the-difference-between-get-and-post-method\/\",\"name\":\"What is the difference between GET and POST Method ? - Get Vs Post\",\"isPartOf\":{\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/php\/what-is-the-difference-between-get-and-post-method\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/php\/what-is-the-difference-between-get-and-post-method\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/08\/get-post-method.png\",\"datePublished\":\"2022-08-04T06:33:30+00:00\",\"dateModified\":\"2022-08-04T06:34:51+00:00\",\"author\":{\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/f785ba3ecc599133e65ab6138042a3e4\"},\"description\":\"What is the difference between GET and POST Method ? - HTTP Methods Get Vs Post - In browser history parameters remain because they are the part of the URL\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wikitechy.com\/interview-questions\/php\/what-is-the-difference-between-get-and-post-method\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/php\/what-is-the-difference-between-get-and-post-method\/#primaryimage\",\"url\":\"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/08\/get-post-method.png\",\"contentUrl\":\"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/08\/get-post-method.png\",\"width\":956,\"height\":526},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/#website\",\"url\":\"https:\/\/www.wikitechy.com\/interview-questions\/\",\"name\":\"Wikitechy\",\"description\":\"Interview Questions\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wikitechy.com\/interview-questions\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/f785ba3ecc599133e65ab6138042a3e4\",\"name\":\"webmaster\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/155b77fd8cdda3d0913fcb7e7ee63543b0c345d2d8f6dcebda5b0583ab61f967?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/155b77fd8cdda3d0913fcb7e7ee63543b0c345d2d8f6dcebda5b0583ab61f967?s=96&d=mm&r=g\",\"caption\":\"webmaster\"},\"sameAs\":[\"https:\/\/www.wikitechy.com\/interview-questions\"],\"url\":\"https:\/\/www.wikitechy.com\/interview-questions\/author\/webmaster\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"What is the difference between GET and POST Method ? - Get Vs Post","description":"What is the difference between GET and POST Method ? - HTTP Methods Get Vs Post - In browser history parameters remain because they are the part of the URL","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:\/\/www.wikitechy.com\/interview-questions\/php\/what-is-the-difference-between-get-and-post-method\/","og_locale":"en_US","og_type":"article","og_title":"What is the difference between GET and POST Method ? - Get Vs Post","og_description":"What is the difference between GET and POST Method ? - HTTP Methods Get Vs Post - In browser history parameters remain because they are the part of the URL","og_url":"https:\/\/www.wikitechy.com\/interview-questions\/php\/what-is-the-difference-between-get-and-post-method\/","og_site_name":"Wikitechy","article_published_time":"2022-08-04T06:33:30+00:00","article_modified_time":"2022-08-04T06:34:51+00:00","og_image":[{"url":"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/08\/get-post-method.png"}],"author":"webmaster","twitter_card":"summary_large_image","twitter_misc":{"Written by":"webmaster","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wikitechy.com\/interview-questions\/php\/what-is-the-difference-between-get-and-post-method\/","url":"https:\/\/www.wikitechy.com\/interview-questions\/php\/what-is-the-difference-between-get-and-post-method\/","name":"What is the difference between GET and POST Method ? - Get Vs Post","isPartOf":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/php\/what-is-the-difference-between-get-and-post-method\/#primaryimage"},"image":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/php\/what-is-the-difference-between-get-and-post-method\/#primaryimage"},"thumbnailUrl":"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/08\/get-post-method.png","datePublished":"2022-08-04T06:33:30+00:00","dateModified":"2022-08-04T06:34:51+00:00","author":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/f785ba3ecc599133e65ab6138042a3e4"},"description":"What is the difference between GET and POST Method ? - HTTP Methods Get Vs Post - In browser history parameters remain because they are the part of the URL","inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wikitechy.com\/interview-questions\/php\/what-is-the-difference-between-get-and-post-method\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.wikitechy.com\/interview-questions\/php\/what-is-the-difference-between-get-and-post-method\/#primaryimage","url":"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/08\/get-post-method.png","contentUrl":"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/08\/get-post-method.png","width":956,"height":526},{"@type":"WebSite","@id":"https:\/\/www.wikitechy.com\/interview-questions\/#website","url":"https:\/\/www.wikitechy.com\/interview-questions\/","name":"Wikitechy","description":"Interview Questions","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wikitechy.com\/interview-questions\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/f785ba3ecc599133e65ab6138042a3e4","name":"webmaster","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/155b77fd8cdda3d0913fcb7e7ee63543b0c345d2d8f6dcebda5b0583ab61f967?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/155b77fd8cdda3d0913fcb7e7ee63543b0c345d2d8f6dcebda5b0583ab61f967?s=96&d=mm&r=g","caption":"webmaster"},"sameAs":["https:\/\/www.wikitechy.com\/interview-questions"],"url":"https:\/\/www.wikitechy.com\/interview-questions\/author\/webmaster\/"}]}},"_links":{"self":[{"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts\/4576","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/comments?post=4576"}],"version-history":[{"count":3,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts\/4576\/revisions"}],"predecessor-version":[{"id":4581,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts\/4576\/revisions\/4581"}],"wp:attachment":[{"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/media?parent=4576"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/categories?post=4576"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/tags?post=4576"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}