开发者

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

开发者 https://www.devze.com 2023-03-25 08:18 出处:网络
How would one perform开发者_运维技巧 a HTTP POST request with Google\'s C++ Native Client? This question was asked a long time ago, but just in case anyone else is wondering the same thing:

How would one perform开发者_运维技巧 a HTTP POST request with Google's C++ Native Client?


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

0

精彩评论

暂无评论...
验证码 换一张
取 消