-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How should I make my process send requests to the target when using OATPP #925
Comments
Try pass You'd better refer to the documentation and implement your own apiclient to send a request. |
_connectionProvider = oatpp::network::tcp::client::ConnectionProvider The |
牛的老哥 我搞定了! 十分感谢! |
I am currently using C++to create a video engine, and I can use the OATPP framework to receive external requests and execute corresponding methods. But now I hope to send a post request to the backend at the specified address when executing some of my methods. I tried to encapsulate a class but it doesn't seem to work. Can you help me solve my problem? Thank you very much!
``
class RequestHandler {
public:
RequestHandler() {}
private:
std::shared_ptroatpp::network::tcp::client::ConnectionProvider _connectionProvider;
std::shared_ptroatpp::web::client::HttpRequestExecutor _requestExecutor;
};
``
my error:
zhaozimo@zhaozimodeMacBook-Pro test % sh livePlatform_test_request.sh
server=oatpp/1.3.0
code=500
description=Internal Server Error
message=[oatpp::web::client::HttpRequestExecutor::executeOnce()]: Connection is null
The text was updated successfully, but these errors were encountered: