Embodiment of the transmission parameters http GET request

The first: adding parameters directly behind the URL of:
localhost: 21811 / Handler1.ashx the above mentioned id = 1 & name = "abc";?
The following figure:
Turn left | right turn
The second: passing parameters with hyperlinks: When clicking a hyperlink, the first thing will jump:
localhost: 21811 / Handler1.ashx page, then id and name will be passed in the past two parameters;
for example: hyperlinks

Third: Passing through js method: the user clicks the button button to trigger the onClick event, the implementation of Go () method, Jump to:
localhost: 21811 / Handler1.ashx page, passing the id, and name two parameters in the past;
Here Insert Picture Description
fourth: form by passing the form:
form action = "Handler1.ashx" Method = "GET", attention can not take action which connection parameters;
Here Insert Picture Description

Use get parameter passing Precautions

1, submit the parameters using the get way to note that the parameters can not have \.

2, get way transfer date Date format parameters: startDate = 2011/12/02 10:50:25, use yyyy / mm / dd HH: mm: ss format transfer, http protocol is a set of foreigners, so starting a common foreign delivery time format.

3, using the GET request method to pass parameters WEB server format: http: //www.it315.org/counter.jsp name = zhangsan & password = 123?.

Published 90 original articles · won praise 5 · views 10000 +

Guess you like

Origin blog.csdn.net/me_never/article/details/101202679