如何在Qt / C ++中访问HTTP GET / POST API [关闭]

I have a MySQL database with a PHP scripts written to exploit the database. I'm writing a program in C++ and want to access the PHP classes to power the application. How should I go about doing this?

If I have a PHP function I want to get a return value from, how do I do this in C++? Is it even possible?

curl is a general one for C++. If you are using Qt then I would suggest QNetworkAccessManager class. It has functions get and post to handle HTTP GET/POST request.