Curl: escape the query string parameter, curlstring

Source: Internet
Author: User

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.

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.