client.cc 414 B

12345678910111213141516171819202122232425262728
  1. //
  2. // client.cc
  3. //
  4. // Copyright (c) 2012 Yuji Hirose. All rights reserved.
  5. // The Boost Software License 1.0
  6. //
  7. #include <httplib.h>
  8. #include <cstdio>
  9. #include <signal.h>
  10. using namespace httplib;
  11. int main(void)
  12. {
  13. using namespace httplib;
  14. const char* hi = "/hi";
  15. Client cli("localhost", 1234);
  16. Response res;
  17. cli.get(hi, res);
  18. return 0;
  19. }
  20. // vim: et ts=4 sw=4 cin cino={1s ff=unix