README 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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 "./bootstrap" 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 (mhd_panic.c); special case (abort)
  61. - parse_options (daemon.c)
  62. - MHD_get_version (daemon.c)
  63. Note that the working library is in src/microhttpd/ with the API in
  64. src/include/microhttpd.h. An *experimental* (read: not yet working
  65. at all) newer implementation is in src/lib/, with the new API in
  66. src/include/microhttpd2.h. The experimental code will need MUCH
  67. more testing and development, you are strongly advised to stick
  68. to microhttpd.h unless you are a MHD developer!