Add paramethers to libcurl GET in c++

后端 未结 2 822
忘了有多久
忘了有多久 2021-01-24 10:32

I want to add some additional data in variable to HTTP GET using c++. When I make request using HTTP POST I do it like that:

    curl_easy_setopt(curl, CURLOPT_U         


        
2条回答
  •  走了就别回头了
    2021-01-24 11:25

    For GET just append the parameters to the URL, like

    http://some.host.com/some/path?variable1=value1&variable2=value2
    

    I'm sure you've seen it before!

提交回复
热议问题