// // client.cc // // Copyright (c) 2012 Yuji Hirose. All rights reserved. // The Boost Software License 1.0 // #include #include using namespace std; using namespace httplib; int main(void) { const char* hi = "/hi"; Client cli("localhost", 8080); auto res = cli.get(hi); if (res) { cout << res->status << endl; cout << res->get_header_value("Content-Type") << endl; cout << res->body << endl; } return 0; } // vim: et ts=4 sw=4 cin cino={1s ff=unix