tree: e5429743e9627705ef25684fc64f015a3a73abbf [path history] [tgz]
  1. CMakeLists.txt
  2. minimal-http-client-multi.c
  3. README.md
  4. warmcat.com.cer
minimal-examples/http-client/minimal-http-client-multi/README.md

lws minimal http client multi

build

 $ cmake . && make

usage

The application goes to https://warmcat.com and receives the page data same as minimal http client.

However it does it for 8 client connections concurrently.

Commandline Options

OptionMeaning
-sStagger the connections by 100ms, the last by 1s
-pUse http/1.1 pipelining or h2 simultaneous streams
--h1Force http/1 only
-lConnect to server on https://localhost:7681 instead of https://warmcat.com:443
-nRead numbered files like /1.png, /2.png etc. Default is just read /
--uvUse libuv event loop if lws built for it
--eventUse libevent event loop if lws built for it
--evUse libev event loop if lws built for it
--postPOST to the server rather than GET
-cCreate n connections (n can be 1 .. 8)
--path Force the URL path (should start with /)