简体   繁体   中英

Call REST Service from Win32 application

I have an Win32 application which runs on the Windows server (2003 & later). My application has to call a REST service to POST some JSON data.

How can I proceed with implementation? Which library or SDK should I use to call REST service from C++ application.

Please suggest.

Thanks in advance.

I'd suggest using modern C++11 Casablanca REST API developed by Microsoft. This API is now included into Visual Studio installation package. You can also use WinHTTP API which is kind of legacy stuff. There is also MFC/ATL implementation called ATL Server that does include HTTP Client classes.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM