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

后端 未结 22 2773
有刺的猬
有刺的猬 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 07:06

    If you are looking for a HTTP client library in C++ that is supported in multiple platforms (Linux, Windows and Mac) for consuming Restful web services. You can have below options.

    1. QT Network Library - Allows the application to send network requests and receive replies
    2. C++ REST SDK - An emerging third-party HTTP library with PPL support
    3. Libcurl - It is probably one of the most used http lib in the native world.

提交回复
热议问题