HTTP POST request with Google's C++ Native Client

柔情痞子 提交于 2019-12-22 10:52:03

问题


How would one perform a HTTP POST request with Google's C++ Native Client?


回答1:


This question was asked a long time ago, but just in case anyone else is wondering the same thing:

You can use pp::URLRequstInfo::SetMethod to do a POST request.

And you can add data to the post using pp::URLRequestInfo::AppendDataToBody, pp::URLRequestInfo::AppendFileRangeToBody or pp::URLRequestInfo::AppendFileToBody.

See an example of using URLLoader class here: https://developers.google.com/native-client/devguide/coding/URLLoading



来源:https://stackoverflow.com/questions/6935585/http-post-request-with-googles-c-native-client

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!