Query string: Difference between revisions

Content deleted Content added
No edit summary
Tags: Reverted Mobile edit Mobile web edit
 
(29 intermediate revisions by 28 users not shown)
Line 5:
[[File:Query string.png|frame|center|An [[address bar]] on [[Google Chrome]] showing a URL (Uniform Resource Locator) with the query string <code>?title=Query_string&action=edit</code>]]
 
A web server can handle a [[HTTPS|Hypertext Transfer Protocol]] (HTTP) request either by reading a file from its [[file system]] based on the [[URL]] path or by handling the request using logic that is specific to the type of resource. In cases where special logic is invoked, the query string will be available to that logic for use in its processing, along with the path component of the URL.bhj
 
== Structure ==
Line 53:
 
=== Indexed search ===
Before [[form (HTML)|forms]] were added to HTML, browsers rendered the –{{tag|isindex|open}} element as a single-line text-input control. The text entered into this control was sent to the server as a query string addition to a [[GET (HTTP)|GET]] request for the base URL or another URL specified by the {{code|action}} attribute.<ref>{{cite web |title=&lt;isindex&gt; |url=https://developer.mozilla.org/en-US/docs/Web/HTML/Element/isindex |website=HTML (HyperText Markup Language) |access-date=2015-11-21 |archive-date=2017-10-19 |archive-url=https://web.archive.org/web/20171019030835/https://developer.mozilla.org/en-US/docs/Web/HTML/Element/isindex |url-status=dead }}</ref> This was intended to allow web servers to use the provided text as query criteria so they could return a list of matching pages.<ref>{{cite web |title=HTML/Elements/isindex |url=https://www.w3.org/wiki/HTML/Elements/isindex |website=W3C Wiki |access-date=2020-03-20 |archive-date=2021-06-22 |archive-url=https://web.archive.org/web/20210622024419/https://www.w3.org/wiki/HTML/Elements/isindex |url-status=dead }}</ref>
 
When the text input into the indexed search control is submitted, it is encoded as a query string as follows: