{"id":69573,"date":"2022-05-24T10:08:34","date_gmt":"2022-05-24T08:08:34","guid":{"rendered":"https:\/\/rmarketingdigital.com\/wiki\/parametro-get\/"},"modified":"2024-10-28T22:56:37","modified_gmt":"2024-10-28T21:56:37","slug":"parametro-get","status":"publish","type":"glossary","link":"https:\/\/rmarketingdigital.com\/en\/wiki\/parametro-get\/","title":{"rendered":"Get parameter"},"content":{"rendered":"<p><\/p>\n<div id=\"mw-content-text\" lang=\"es\" dir=\"ltr\" class=\"mw-content-ltr\">\n<p>The getParameter () method is one of the most widely used HTTP request methods to request resources from a server through a client, such as a browser. Since the contents or files of the page transmitted are requested by means of URL, it is also essential to indicate the parameters of the URL.\n<\/p>\n<h2>\n<span class=\"mw-headline\" id=\"Informaci.C3.B3n_general\">General information<\/span><br \/>\n<\/h2>\n<p>Communication between clients and servers on the Internet is carried out mainly through the HTTP protocol (Hypertext Transfer Protocol). This enables a data exchange by request and response. A client could be, for example, a user&#039;s web browser; the server provides an HTML page that is loaded by the user&#039;s browser. The two most widely used methods to allow this type of communication are GET and POST.\n<\/p>\n<h2>\n<span class=\"mw-headline\" id=\"Solicitud_GET\">GET request<\/span><br \/>\n<\/h2>\n<p>If a client uses the HTTP protocol on a web server to request a certain resource, the client sends certain GET parameters to the server using the requested URL. These parameters are pairs of names and their corresponding values, the so-called name-value pairs. These are appended to the URL with a &quot;?&quot; and it tells you to sign and tell the server what resources you are referring to. The name and value are always separated by the &quot;=&quot; sign.\n<\/p>\n<p>The syntax is as follows:\n<\/p>\n<pre>\nhttp:\/\/www.domain.com\/index.html*?name1=value1\n<\/pre>\n<p>Not only individual parameters, but also various, as well as complete lists, can be transmitted to the server. In this case, the different parameters are separated by the sign &quot;&amp;&quot;.\n<\/p>\n<pre>\nhttp:\/\/www.domain.com\/index.html*?name1=value1&name2=value2\n<\/pre>\n<p>If the request is syntactically correct, the server sends a response. Initially, it contains some status information about the request. This can be, for example, if the requested resource is enabled or not or when the request was made. The server does not send the resource to the client first, but tells it where the resource can be found. The browser follows the instructions and requests the resource from the server. At this point, the browser briefly loads the resource based on the location-based information provided to it by the server. The reason for this is that the HTTP protocol only allows one-way communication. Each request only receives one response.\n<\/p>\n<h2>\n<span class=\"mw-headline\" id=\"Comentarios_sobre_el_par.C3.A1metro_GET\">Comments on the GET parameter<\/span><br \/>\n<\/h2>\n<p>Requests that use getParameter () have certain properties and disadvantages. Since the data is transmitted via the URL, it is advisable to only use the GET parameter to request files that are not security relevant.\n<\/p>\n<p>The following properties characterize the GET parameter\n<\/p>\n<ul>\n<li> Browser caching is doable<\/li>\n<li> Preservation in browser history<\/li>\n<li> It is possible to save as a favorite<\/li>\n<li> Not suitable for use with sensitive files<\/li>\n<li> Length limitation (URL length)<\/li>\n<li> Its main purpose is to obtain data<\/li>\n<\/ul>\n<h2>\n<span class=\"mw-headline\" id=\"Relevancia_pr.C3.A1ctica\">Practical relevance<\/span><br \/>\n<\/h2>\n<p>Parameterized URLs are also known as Dynamic URLs. By changing the parameters, we get a new URL and the content of the page can change dynamically. For example, if an online store has added products on a category page and a user loads this page using a browser, the new products will also be displayed, since the page URL also requests the modified content using the GET parameter.\n<\/p>\n<h2>\n<span class=\"mw-headline\" id=\"Importancia_para_la_optimizaci.C3.B3n_de_motores_de_b.C3.BAsqueda\">Importance for search engine optimization<\/span><br \/>\n<\/h2>\n<p>The appearance of dynamic URLs when using getParameter () also has disadvantages. By means of dynamics, it can happen that partially equivalent content is generated in several URLs. The duplicate content that results has a negative effect on the ranking of the pages, so there are certain essential measures to take from an SEO perspective. It is advisable to use the canonical tag so that the search engine crawler ignores duplicate pages with the-URLs parameter. With the Google Search Console, Crawling parameters are excluded. Through this, SEOs and Webmasters can make the most of Googlebot&#039;s crawl budget.\n<\/p>\n<p>Another aspect that becomes important through the use of the getParameter is the readability of the URL. URL parameters are generally cryptic to the user and don&#039;t mean much. For this reason, the ideal is to redirect the URLs with parameters to URLs without the respective parameter.\n<\/p>\n<h2>\n<\/h2>\n<p><a rel=\"nofollow noopener noreferrer\" target=\"_blank\" class=\"external text\" href=\"https:\/\/www.w3schools.com\/tags\/ref_httpmethods.asp\">HTTP Methods: GET vs. POST<\/a> w3schools.com. Retrieved 2015-05-08.\n<\/p>\n<p><a rel=\"nofollow noopener noreferrer\" target=\"_blank\" class=\"external text\" href=\"https:\/\/victorroblesweb.es\/2017\/07\/22\/recoger-parametros-get-javascript\/\">Collect GET parameters in JavaScript<\/a> Victor Robles&#039; Blog\n<\/p>\n<h2>\n<span class=\"mw-headline\" id=\"Enlaces_Web\">Web Links<\/span><br \/>\n<\/h2>\n<ul>\n<li><a rel=\"nofollow noopener noreferrer\" target=\"_blank\" class=\"external text\" href=\"https:\/\/tools.ietf.org\/html\/rfc7231#section-4.3.1\">GET method definition with IETF<\/a><\/li>\n<li><a rel=\"nofollow noopener noreferrer\" target=\"_blank\" class=\"external text\" href=\"http:\/\/www.w3.org\/Protocols\/rfc2616\/rfc2616-sec9.html\">GET method definition with W3C<\/a><\/li>\n<li><a rel=\"nofollow noopener noreferrer\" target=\"_blank\" class=\"external text\" href=\"http:\/\/www.tutorialspoint.com\/http\/http_requests.htm\">Other application methods<\/a><\/li>\n<\/ul>\n<p><!-- \nNewPP limit report\nCached time: 20200502092149\nCache expiry: 86400\nDynamic content: false\nCPU time usage: 0.004 seconds\nReal time usage: 0.005 seconds\nPreprocessor visited node count: 45\/1000000\nPreprocessor generated node count: 72\/1000000\nPost\u2010expand include size: 0\/2097152 bytes\nTemplate argument size: 0\/2097152 bytes\nHighest expansion depth: 2\/40\nExpensive parser function count: 0\/100\n--><!-- \nTransclusion expansion time report (%,ms,calls,template)\n100.00%    0.000      1 - -total\n--><!-- Saved in parser cache with key es_:stable-pcache:idhash:150-0!*!0!!es!*!* and timestamp 20200502092149 and revision id 2100\n -->\n<\/div>","protected":false},"excerpt":{"rendered":"<p>El m\u00e9todo getParameter() es uno de los m\u00e9todos de HTTP request m\u00e1s utilizados para solicitar recursos desde un servidor mediante de un cliente, como un navegador. Puesto que los contenidos&#8230;<\/p>","protected":false},"author":1,"featured_media":0,"parent":0,"template":"","glossary-cat":[],"class_list":["post-69573","glossary","type-glossary","status-publish"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.0 (Yoast SEO v28.2) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Par\u00e1metro Get - R Marketing Digital<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/rmarketingdigital.com\/en\/wiki\/parametro-get\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Par\u00e1metro Get\" \/>\n<meta property=\"og:description\" content=\"El m\u00e9todo getParameter() es uno de los m\u00e9todos de HTTP request m\u00e1s utilizados para solicitar recursos desde un servidor mediante de un cliente, como un navegador. Puesto que los contenidos...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/rmarketingdigital.com\/en\/wiki\/parametro-get\/\" \/>\n<meta property=\"og:site_name\" content=\"R Marketing Digital\" \/>\n<meta property=\"article:modified_time\" content=\"2024-10-28T21:56:37+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/rmarketingdigital.com\\\/wiki\\\/parametro-get\\\/\",\"url\":\"https:\\\/\\\/rmarketingdigital.com\\\/wiki\\\/parametro-get\\\/\",\"name\":\"Par\u00e1metro Get - R Marketing Digital\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/rmarketingdigital.com\\\/#website\"},\"datePublished\":\"2022-05-24T08:08:34+00:00\",\"dateModified\":\"2024-10-28T21:56:37+00:00\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/rmarketingdigital.com\\\/wiki\\\/parametro-get\\\/\"]}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/rmarketingdigital.com\\\/#website\",\"url\":\"https:\\\/\\\/rmarketingdigital.com\\\/\",\"name\":\"R Marketing Digital\",\"description\":\"Agencia SEO | Publicidad redes sociales | Community Management\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/rmarketingdigital.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Parameter Get - R Digital Marketing","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:\/\/rmarketingdigital.com\/en\/wiki\/parametro-get\/","og_locale":"en_US","og_type":"article","og_title":"Par\u00e1metro Get","og_description":"El m\u00e9todo getParameter() es uno de los m\u00e9todos de HTTP request m\u00e1s utilizados para solicitar recursos desde un servidor mediante de un cliente, como un navegador. Puesto que los contenidos...","og_url":"https:\/\/rmarketingdigital.com\/en\/wiki\/parametro-get\/","og_site_name":"R Marketing Digital","article_modified_time":"2024-10-28T21:56:37+00:00","twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/rmarketingdigital.com\/wiki\/parametro-get\/","url":"https:\/\/rmarketingdigital.com\/wiki\/parametro-get\/","name":"Parameter Get - R Digital Marketing","isPartOf":{"@id":"https:\/\/rmarketingdigital.com\/#website"},"datePublished":"2022-05-24T08:08:34+00:00","dateModified":"2024-10-28T21:56:37+00:00","inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/rmarketingdigital.com\/wiki\/parametro-get\/"]}]},{"@type":"WebSite","@id":"https:\/\/rmarketingdigital.com\/#website","url":"https:\/\/rmarketingdigital.com\/","name":"R Digital Marketing","description":"SEO Agency | Advertising social networks | Community Management","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/rmarketingdigital.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/rmarketingdigital.com\/en\/wp-json\/wp\/v2\/glossary\/69573","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rmarketingdigital.com\/en\/wp-json\/wp\/v2\/glossary"}],"about":[{"href":"https:\/\/rmarketingdigital.com\/en\/wp-json\/wp\/v2\/types\/glossary"}],"author":[{"embeddable":true,"href":"https:\/\/rmarketingdigital.com\/en\/wp-json\/wp\/v2\/users\/1"}],"version-history":[{"count":0,"href":"https:\/\/rmarketingdigital.com\/en\/wp-json\/wp\/v2\/glossary\/69573\/revisions"}],"wp:attachment":[{"href":"https:\/\/rmarketingdigital.com\/en\/wp-json\/wp\/v2\/media?parent=69573"}],"wp:term":[{"taxonomy":"glossary-cat","embeddable":true,"href":"https:\/\/rmarketingdigital.com\/en\/wp-json\/wp\/v2\/glossary-cat?post=69573"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}