Simple web server and client implemented in C