How to Create Restful Web Services using c++ langu

2019-03-08 02:11发布

I am working on Embedded Linux and I want Restful web services to run on my Linux Custom Board.

My objective is to send/receive data (in JSON format) to/from web server (httpd server).

Also, I want to create that Restful Web services using C++ language.

Please see below idea about need of Restful Web Services for my Linux Custom Board.

  1. First, I will send HTTP request with JSON format data through httpd server which is running on my linux board.

  2. Then, I want to create one binary or server which implements this Restful Web Services in c++ language which is used to handle HTTP request.

  3. Then, This C++ binary will send response back to httpd server for display purpose over web browser.

Does anyone have idea or example about how to create Restful Web Services using C++ language?

Any help on Restful is welcome.

Does any one has idea about ffead and its functionalities which fulfills my Restful Web Services or not?

8条回答
贪生不怕死
2楼-- · 2019-03-08 03:10

For send/receive data in JSON format, try jsoncpp

查看更多
在下西门庆
3楼-- · 2019-03-08 03:13

Probably your best bet is to use FastCGI to create a module to interface with your web server. This should prevent you from having to implement your own HTTP server.

查看更多
登录 后发表回答