Query string: Difference between revisions

Content deleted Content added
No edit summary
Tags: Reverted Visual edit Mobile edit Mobile web edit
Undid revision 1257990267 by 2601:547:B01:CDC7:85E0:BB42:BC0F:A472 (talk) - unexplained content removal
Tags: Undo Reverted
(42 intermediate revisions by 29 users not shown)
Line 1:
{{Short description|Part of a URL that assigns values to specified parameters}}
 
[[Indonesia|A]] '''query string''' is a part of a uniform resource locator (URL) that assigns values to specified parameters. A query string commonly includes fields added to a base URL by a Web browser or other client application, for example as part of an HTML document, choosing the appearance of a page, or jumping to positions in multimedia content.<ref>[[:mw:Manual:Parameters to index.php|Parameters to ''index.xhtml'' – MediaWiki]]</ref>
 
[[File:Query string.png|frame|center|An [[address bar]] on [[Google Chrome]] showing a [[URL]] 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 [[Uniform Resource Locator|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.
 
== 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)}}</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}}</ref>
 
When the text input into the indexed search control is submitted, it is encoded as a query string as follows: