Download & Installation

Download

Source code is available from the git repository as a zip or tar archive. Alternatively clone the repository as follows

$ git clone https://iarthair.mywire.org/gogs/brian/httplib.git

Dependencies

Posix threads is required to build. The library can optionally be built with OpenSSL support; this is basically the same code as used in libESMTP and is quite robust. However most applications I’ve ever used httplib for sit behind a reverse proxy like Nginx or Apache so this is not necessarily a must-have feature.

Zlib is supported and used if available on your system, which it probably is. Obviously you need to make sure the development headers are installed.

There are no other dependencies beyond standard C library stuff found on SUSv3/Posix systems.

Build & Install

Originally this project had a hand crafted makefile, rather than autoconf. However, this year (2020) I migrated the makefile to Meson. Among other benefits this leads to drastically reduced build time and considerably simplifies cross-builds. The latter was the main motivation for this.

$ meson [options] --buildtype=release builddir
$ ninja -C builddir install

Note that the meson/ninja installer does not require an explicit sudo, instead it will prompt for a password during install. This avoids polluting builddir with files owned by root.


TBH, the GNU autoconf tools do my head in and, frankly, I would rather poke hot needles in my eyes than ever use them again.