Curl: escape the query string parameter, curlstring
If you use curl to access the http site, you must use \ as the prefix when passing parameters.
For example:
Http: // myjenkins/job/run_schedule/buildWithParameters? Token = fe80: c6d9: 87ff: fe76: d1e9 \ & schedule_name = requirement_schedule
How does asp prevent incoming values from being escaped?
Request. ServerVariables ["Query_String"]
Query string content
Request. ServerVariables ["Http_Referer"]
Request string content
Reference: zhidao.baidu.com/question/39464147.html
String SQL; SQL = "update ltcontent set lt_dj = lt_dj + 1 where lt_id =" + RequestQueryString ["id"];
Request. QueryString ["id"]; get the parameters of the user Request through get.
In the SQL statement, update the lt_dj auto-Segment Based on the obtained lt_id.
There is a suggestion: This method of splicing SQL statements can easily cause SQL injection. The program has a great security risk and is easily exposed to others. The recommended method in c # is to use the parameter SqlParameter, which will escape characters that may cause injection in a moment.