awilhite
awilhite

Reputation: 133

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

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

Upvotes: 3

Views: 891

Answers (1)

binji
binji

Reputation: 1860

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

Upvotes: 3

Related Questions