s@rdalya

 

QueryString

Page history last edited by vozcelik 3 yrs ago

QueryString

 

For dynamic webpages, when value-keys are passed between a web client (usually a Web browser) and the server, this info can be passed through two methods. First, for HTTP GET requests, the URL used has a querystring appended to it that the web server, through naming conventions, separates and passes to the dynamic page. Secondly, for HTTP POST requests, value-key pairs are passed as separate parts of the HTTP request.

 

An example URL with a querystring follows:

 

http://localhost/cart/example.jsp?lang=en&size=10&uid=50

 

In this example, there are three key-value pairs:

 

  • lang has the value "en"
  • size has the value "10"
  • uid has the value "50"

Comments (0)

You don't have permission to comment on this page.