Advertisement
Guest User

Untitled

a guest
Jul 1st, 2015
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. __int64 queryID = 12345689;
  2. std::stringstream stream;
  3. stream << queryID;
  4. std::string queryID_utf8(stream.str());
  5. std::wstring_convert<std::codecvt_utf8<char32_t>, char32_t> convert;
  6. std::u32string queryID_utf32 = convert.from_bytes(queryID_utf8);
  7.  
  8. http_client client(U("http://localhost:8080/MyJavaWebApp"));
  9. uri_builder builder(U("/getContent"));
  10. builder.append_query(U("queryID"), queryID_utf32.c_str());
  11. client.request(methods::GET, builder.to_string()) // etc.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement