Skip to content

Latest commit

 

History

History

README.md

example - cpp_httplib

cpp_httplib sample

The files in this directory downloaded from below
https://github.com/yhirose/cpp-httplib/blob/master/example

sample code

  • hello.cc
    very simple HTTP server

  • simplesvr.cc
    simple HTTP server

  • simplecli.cc
    simple HTTP client

  • server.cc
    HTTP server

  • client.cc
    HTTP client

  • ssesvr.cc
    SSE (Server Send Event) server

  • ssecli.cc
    SSE (Server Send Event) client

  • ssl_server.cc
    HTTPS server

  • ssl_client.cc
    // HTTPS client

  • redirect.cc
    HTTP server with redirect

  • upload.cc
    HTTP post server

  • benchmark.cc
    post large data to httpbin.org

build sample code
% g++ hello.cc -std=c++11

run sample code
% ./a.out

access localhost:8080 by WEB Brawser

Reference