How do you make a HTTP request with C++?

后端 未结 22 2510
有刺的猬
有刺的猬 2020-11-22 06:25

Is there any way to easily make a HTTP request with C++? Specifically, I want to download the contents of a page (an API) and check the contents to see if it contains a 1 o

22条回答
  •  长情又很酷
    2020-11-22 06:58

    CppRest SDK by MS is what I just found and after about 1/2 hour had my first simple web service call working. Compared that to others mentioned here where I was not able to get anything even installed after hours of looking, I'd say it is pretty impressive

    https://github.com/microsoft/cpprestsdk

    Scroll down and click on Documentation, then click on Getting Started Tutorial and you will have a simple app running in no time.

提交回复
热议问题