{"id":1731,"date":"2012-12-19T16:02:35","date_gmt":"2012-12-19T16:02:35","guid":{"rendered":"https:\/\/www.techopedia.com\/definition\/query-string\/"},"modified":"2017-05-31T18:22:21","modified_gmt":"2017-05-31T18:22:21","slug":"query-string","status":"publish","type":"definition","link":"https:\/\/www.techopedia.com\/definition\/1228\/query-string","title":{"rendered":"Query String"},"content":{"rendered":"
A query string is the portion of a URL where data is passed to a web application and\/or back-end database. The reason we need query strings is that the HTTP protocol is stateless by design. For a website to be anything more than a brochure, you need to maintain state (store data). There are a number of ways to do this: On most web servers, you can use something like session state server-side. On the client, you can store via cookies. Or in the URL, you can store data via a query string.\n<\/p>\n
On the world wide web, all URLs can be broken down into the protocol, the location of the file (or program) and the query string. The protocol you see in a browser is almost always HTTP; the location is the typical form of the hostname and filename (for example, www.techopedia.com\/somefile.html), and the query string is whatever follows the question mark sign (“?”).\n<\/p>\n
For example, in the URL below, the bolded area is the query string that was generated when the term “database” was searched on the Techopedia website.\n<\/p>\n
\/\/www.techopedia.com\/search.aspx?q=database\u00a7ion=all<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":" What Does Query String Mean? A query string is the portion of a URL where data is passed to a web application and\/or back-end database. The reason we need query strings is that the HTTP protocol is stateless by design. For a website to be anything more than a brochure, you need to maintain state […]<\/p>\n","protected":false},"author":7813,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"_acf_changed":false,"_lmt_disableupdate":"","_lmt_disable":"","om_disable_all_campaigns":false,"footnotes":""},"definitioncat":[273,245],"class_list":["post-1731","definition","type-definition","status-publish","format-standard","hentry","definitioncat-devops","definitioncat-internet"],"acf":[],"yoast_head":"\n