Does anybody have an idea about how to get data from web api in visual c++? Thanks.
Asked
Active
Viewed 1,046 times
-2
-
1Your question is too broad, but Microsoft C++ has a library called Casablanca, which can be used to make REST calls. – Tim Biegeleisen Apr 10 '18 at 05:35
-
1Possible duplicate of [RESTful Client API in C++](https://stackoverflow.com/questions/4222879/restful-client-api-in-c) – E. Vakili Apr 10 '18 at 05:44
-
REST API aka Casablanka if you're working with purely microsoft products. libcurl, Qt WebKit (outdated), CEF (Chromium embedded network) if your code must be portable. – Swift - Friday Pie Apr 10 '18 at 08:10
1 Answers
1
C++ doesn't have a built-in library for http. You can use either one of the multitude of libraries that exist that do this, for instance curl, or you can just use the socket API (in visual studio that would be winsock2) and write your own http request and response handling code.

shoosh
- 76,898
- 55
- 205
- 325