libwebsockets/minimal-examples-lowlevel/http-client/minimal-http-client-multi
2023-12-08 13:23:04 +00:00
..
CMakeLists.txt cmake: upgrade everyone to 3.5 minimum version 2023-12-08 13:23:04 +00:00
minimal-http-client-multi.c clean: remove needless LWS_PRE 2022-05-04 08:43:26 +01:00
README.md examples: move existing to m-e-lowlevel and start repoulating m-e with SS 2021-10-08 09:49:05 +01:00
warmcat.com.cer examples: move existing to m-e-lowlevel and start repoulating m-e with SS 2021-10-08 09:49:05 +01:00

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

Option Meaning
-s Stagger the connections by 100ms, the last by 1s
-p Use http/1.1 pipelining or h2 simultaneous streams
--h1 Force http/1 only
-l Connect to server on https://localhost:7681 instead of https://warmcat.com:443
-n Read numbered files like /1.png, /2.png etc. Default is just read /
--uv Use libuv event loop if lws built for it
--event Use libevent event loop if lws built for it
--ev Use libev event loop if lws built for it
--post POST to the server rather than GET
-c Create n connections (n can be 1 .. 8)
--path Force the URL path (should start with /)