RawSushi's Tech Journal
My online tech scrapbook where I keep my notes in case I need to look them up later
Thursday, August 7, 2014
Cocos2D-X HttpClient: Adding HTTP Headers
It's done like this:
std::vector<std::string> headers;
headers.push_back("Content-Type: application/json; charset=utf-8");
request->setHeaders(headers);
Reference:
http://www.snip2code.com/Snippet/15942/HTTP-Client-for-Cocos2dx
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment