% sudo apt install libmicrohttpd-dev
...
% ls -l
total 924
-rw-r--r-- 1 pierce pierce 28 Oct 16 2021 index.css
-rw-r--r-- 1 pierce pierce 308 Oct 16 2021 index.html
-rw-r--r-- 1 pierce pierce 24301 Oct 16 2021 mime.types
-rw-r--r-- 1 pierce pierce 1023 Oct 16 2021 README.txt
-rw-r--r-- 1 pierce pierce 1924 Oct 16 2021 simpleserver.lpi
-rw-r--r-- 1 pierce pierce 10747 Jan 13 2022 simpleserver.pas
% lazbuild simpleserver.lpi
...
(9015) Linking /home/pierce/pkg/fpc/share/fpcsrc/3.2.2/packages/fcl-web/examples/simpleserver/simpleserver
(1008) 9764 lines compiled, 0.8 sec
(1021) 39 warning(s) issued
(1022) 22 hint(s) issued
(1023) 2 note(s) issued
% ./simpleserver -p 8080
2024-08-03 09:55:07.360 [etInfo] Listening on port 8080, serving files from directory: /home/pierce/pkg/fpc/share/fpcsrc/3.2.2/packages/fcl-web/examples/simpleserver/ (using SSL: false)
2024-08-03 09:55:07.360 [etInfo] Using index page index.html
Server created.
% curl http://localhost:8080/
<http>
<link rel="stylesheet" href="index.css">
<body>
<H1>Simple server demo</H1>
If you see this page, it demonstrates that the simple server demo serves the
<span class="important">index.html</span> page. <p>
If it shows index.html in a
different style, it means the css is loaded as well.
</body>
</http>