README 3.4 KB

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