Query string

From Wiki @ Karl Jones dot com
Jump to: navigation, search

In the World Wide Web, a query string (or querystring)is the part of a uniform resource locator (URL) containing data that does not fit conveniently into a hierarchical path structure.

Description

The query string commonly includes fields added to a base URI by a Web browser or other client application, for example as part of an HTML form.

Web servers handle query strings

A web server can handle (process, respond to) a Hypertext Transfer Protocol request using one of two methods: [Static web page|static] or dynamic.

Static web page

Dynamic web page

  • Handling the request using logic that is specific to the type of resource
    • The query string is available that logic for use in its processing
    • See Dynamic web page.

Examples

Google search

The hyperlink below requests Google to search for the words "query string":

https://www.google.com/#q=query+string

Question mark in

On many websites, the query string is preceded by a question mark (?) in the URL.

TO DO: example.

See also

External links