[英]Call REST Service from Win32 application
I have an Win32 application which runs on the Windows server (2003 & later). 我有一个在Windows服务器(2003及更高版本)上运行的Win32应用程序。 My application has to call a REST service to POST some JSON data.
我的应用程序必须调用REST服务以发布一些JSON数据。
How can I proceed with implementation? 我如何进行实施? Which library or SDK should I use to call REST service from C++ application.
我应该使用哪个库或SDK从C ++应用程序调用REST服务。
Please suggest. 请提出建议。
Thanks in advance. 提前致谢。
I'd suggest using modern C++11 Casablanca REST API developed by Microsoft. 我建议使用Microsoft开发的现代C ++ 11 Casablanca REST API 。 This API is now included into Visual Studio installation package.
现在,此API已包含在Visual Studio安装包中。 You can also use WinHTTP API which is kind of legacy stuff.
您还可以使用WinHTTP API,这是一种传统的东西。 There is also MFC/ATL implementation called ATL Server that does include HTTP Client classes.
还有一个称为ATL Server的 MFC / ATL实现,它确实包含HTTP客户端类。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.