#include <cpprest/http_client.h>
...
// Create http_client to send the request.
http_client client(U("http://www.bing.com/"));
// Build request URI and start the request.
uri_builder builder(U("/search"));
builder.append_query(U("q"), U("cpprestsdk github"));
auto t1{client.request(methods::GET, builder.to_string()); };
t1.then([](http_response res) {
std::wstring s1{ res.extract_string().get().c_str() };
wprintf(s1.c_str());
}).wait();