Linux static https client with TLSv1.0 support
From time to time I encounter a need to write a script that fetches data from old equipment with embedded server that supports only SSL/TLSv1.0, or encounter a Linux embedded system which doesn't have a proper SSL library or doesn't have one at all. For such cases I made an extremely simplistic https client using BearSSL library that can be compiled statically with appropriate libc. It is a quick hack based on client_basic.c and may not work properly in cases of unusual server responses. Example command line:
./https_client en.wikipedia.org 443 /wiki/Linux
The client returns response headers as STDERR, body as STDOUT and exit status 0 if HTTP response status is 200.
To compile, untar into a folder containing compiled BearSSL library, cd https_client && ./make.sh