README 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. About
  2. =====
  3. GNU libmicrohttpd is a GNU package offering a C library that provides
  4. a compact API and implementation of an HTTP 1.1 web server (HTTP 1.0
  5. is also supported). GNU libmicrohttpd only implements the HTTP 1.1
  6. protocol. The main application must still provide the application
  7. logic to generate the content.
  8. Installation
  9. ============
  10. If you are using Subversion, run "autoreconf -fi" to create configure.
  11. In order to run the testcases, you need a recent version of libcurl.
  12. libcurl is not required if you just want to install the library.
  13. Especially for development, do use the MHD_USE_ERROR_LOG option to get
  14. error messages.
  15. Configure options
  16. =================
  17. If you are concerned about space, you should set "CFLAGS" to "-Os
  18. -fomit-frame-pointer" to have gcc generate tight code.
  19. You can use the following options to disable certain MHD features:
  20. --disable-https: no HTTPS / TLS / SSL support (significant reduction)
  21. --disable-messages: no error messages (they take space!)
  22. --disable-postprocessor: no MHD_PostProcessor API
  23. --disable-dauth: no digest authentication API
  24. --disable-epoll: no support for epoll, even on Linux
  25. The resulting binary should be about 30-40k depending on the platform.
  26. Portability
  27. ===========
  28. The latest version of libmicrohttpd will try to avoid SIGPIPE on its
  29. sockets. This should work on OS X, Linux and recent BSD systems (at
  30. least). On other systems that may trigger a SIGPIPE on send/recv, the
  31. main application should install a signal handler to handle SIGPIPE.
  32. libmicrohttpd should work well on GNU/Linux, W32, FreeBSD, Darwin,
  33. NetBSD, OpenBSD, Solaris/OpenIndiana, and z/OS.
  34. Note that HTTPS is not supported on z/OS (yet). We also have reports
  35. of users using it on vxWorks.
  36. Development Status
  37. ==================
  38. This is a beta release for libmicrohttpd. Before declaring the
  39. library stable, we should have testcases for the following features:
  40. - HTTP/1.1 pipelining (need to figure out how to ensure curl pipelines
  41. -- and it seems libcurl has issues with pipelining,
  42. see http://curl.haxx.se/mail/lib-2007-12/0248.html)
  43. - resource limit enforcement
  44. - client queuing early response, suppressing 100 CONTINUE
  45. - chunked encoding to validate handling of footers
  46. - more testing for SSL support
  47. - MHD basic and digest authentication
  48. In particular, the following functions are not covered by 'make check':
  49. - mhd_panic_std (daemon.c); special case (abort)
  50. - parse_options (daemon.c)
  51. - MHD_set_panic_func (daemon.c)
  52. - MHD_get_version (daemon.c)