What is query string?

Source: Internet
Author: User

On the World Wide Web,Query stringIs part of the uniform resource locator (URL), which contains the data to be passed to the Web application.


When a page is requested through Hypertext Transfer protocol, the server locates the requested file in the file system based on the requested URL. This file may be a common file orProgramIn the second case, the server needs to run the program and then return the running result as a page.Query stringIs part of the URL passed to this program. Through its use, we can allow us to send data from the HTTP client to the application that generates web pages.


Typical includeQuery stringThe URL looks like this:

Http: // server/path/program? QUERY_STRING



Http: // localhost/sites/mydoclib/Forms/allitems. aspx? Sortfield = last % 5fx0020% 5 fmodified & sortdir = ASC & view = % 7b5a000045% 2d3e06% 2d4a5e % 2d9733% 2d1b872a014410% 7D



  1. The variable names and variable values are separated by the = sign.
  2. Multiple parameters are separated by Ampersand, '&' or semicolon.
  3. The characters in the parameter use URL encoding.


Query string


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.