README 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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. GNU libmicrohttpd is dual-licensed under the GNU Lesser General Public
  9. License (LGPLv2.1+) and the eCos License. See COPYING for details.
  10. Installation
  11. ============
  12. See INSTALL for generic installation instructions.
  13. If you are using Git, run "autoreconf -fi" to create configure.
  14. In order to run the testcases, you need a recent version of libcurl.
  15. libcurl is not required if you just want to install the library.
  16. Especially for development, do use the MHD_USE_ERROR_LOG option to get
  17. error messages.
  18. Configure options
  19. =================
  20. If you are concerned about space, you should set "CFLAGS" to "-Os
  21. -fomit-frame-pointer" to have gcc generate tight code.
  22. You can use the following options to disable certain MHD features:
  23. --disable-https: no HTTPS / TLS / SSL support (significant reduction)
  24. --disable-messages: no error messages (they take space!)
  25. --disable-postprocessor: no MHD_PostProcessor API
  26. --disable-dauth: no digest authentication API
  27. --disable-epoll: no support for epoll, even on Linux
  28. The resulting binary should be about 30-40k depending on the platform.
  29. Portability
  30. ===========
  31. The latest version of libmicrohttpd will try to avoid SIGPIPE on its
  32. sockets. This should work on OS X, Linux and recent BSD systems (at
  33. least). On other systems that may trigger a SIGPIPE on send/recv, the
  34. main application should install a signal handler to handle SIGPIPE.
  35. libmicrohttpd should work well on GNU/Linux, W32, FreeBSD, Darwin,
  36. NetBSD, OpenBSD, Solaris/OpenIndiana, and z/OS.
  37. Note that HTTPS is not supported on z/OS (yet). We also have reports
  38. of users using it on vxWorks.
  39. Development Status
  40. ==================
  41. This is a beta release for libmicrohttpd. Before declaring the
  42. library stable, we should have testcases for the following features:
  43. - HTTP/1.1 pipelining (need to figure out how to ensure curl pipelines
  44. -- and it seems libcurl has issues with pipelining,
  45. see http://curl.haxx.se/mail/lib-2007-12/0248.html)
  46. - resource limit enforcement
  47. - client queuing early response, suppressing 100 CONTINUE
  48. - chunked encoding to validate handling of footers
  49. - more testing for SSL support
  50. - MHD basic and digest authentication
  51. In particular, the following functions are not covered by 'make check':
  52. - mhd_panic_std (daemon.c); special case (abort)
  53. - parse_options (daemon.c)
  54. - MHD_set_panic_func (daemon.c)
  55. - MHD_get_version (daemon.c)
  56. Note that the working library is in src/microhttpd/ with the API in
  57. src/include/microhttpd.h. An *experimental* (read: not yet working
  58. at all) newer implementation is in src/lib/, with the new API in
  59. src/include/microhttpd2.h. The experimental code will need MUCH
  60. more testing and development, you are strongly advised to stick
  61. to microhttpd.h unless you are a MHD developer!