Click here to Skip to main content
15,881,588 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Posted
Comments
Rage 4-May-14 19:28pm    
Can you post your code ?

Use curl_easy_setopt()[^] with option CURLOPT_URL. Give the full URL to the resource as the parameter, including scheme ("http:") and the hostname.
 
Share this answer
 
curl_easy_setopt(curl, CURLOPT_URL, "http://127.0.0.1/host:127.0.0.1");
In this way。i do it。thank you
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900