如何修改“Get /Http/1.1”。 To“Get /Products.Asp?Id=1344%20And%201=2 Http / 1.1” [英] How Do I Modify "Get /Http/1.1" To "Get /Products.Asp?Id=1344%20And%201=2 Http/1.1"
本文介绍了如何修改“Get /Http/1.1”。 To“Get /Products.Asp?Id=1344%20And%201=2 Http / 1.1”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我使用libcurl时,我有一个问题。
如何将GET /HTTP/1.1修改为GET /products.asp?id=1344%20and%201=2 HTTP /1.1。
GET /HTTP/1.1默认生成
when i use libcurl,wo have a question.
how do i modify "GET /HTTP/1.1" to "GET /products.asp?id=1344%20and%201=2 HTTP/1.1".
"GET /HTTP/1.1" is Generated by default
推荐答案
使用curl_easy_setopt()
[ ^ ],带选项CURLOPT_URL
。提供资源的完整URL作为参数,包括scheme(http:)和主机名。
Usecurl_easy_setopt()
[^] with optionCURLOPT_URL
. Give the full URL to the resource as the parameter, including scheme ("http:") and the hostname.
curl_easy_setopt(curl,CURLOPT_URL,http://127.0.0.1/host :127.0.0.1);
就这样。我这样做。谢谢你
curl_easy_setopt(curl, CURLOPT_URL, "http://127.0.0.1/host:127.0.0.1");
In this way。i do it。thank you
这篇关于如何修改“Get /Http/1.1”。 To“Get /Products.Asp?Id=1344%20And%201=2 Http / 1.1”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文