README 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. About
  2. =====
  3. libmicrohttpd is a GNU library (part of the GNU project) written in C
  4. that provides a compact API and implementation of an HTTP 1.1 web
  5. server (HTTP 1.0 is also supported). libmicrohttpd only implements
  6. the HTTP 1.1 protocol. The main application must still provide the
  7. 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_DEBUG 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. The resulting binary should be about 30-40k depending on the platform.
  25. Portability
  26. ===========
  27. The latest version of libmicrohttpd will try to avoid SIGPIPE on its
  28. sockets. This should work on OS X, Linux and recent BSD systems (at
  29. least). On other systems that may trigger a SIGPIPE on send/recv, the
  30. main application should install a signal handler to handle SIGPIPE.
  31. libmicrohttpd should work well on GNU/Linux, BSD, OS X, W32 and z/OS.
  32. Note that HTTPS is not supported on z/OS (yet). We also have reports
  33. of users using it on vxWorks and Symbian. Note that on platforms
  34. where the compiler does not support the "constructor" attribute, you
  35. must call "MHD_init" before using any MHD functions and "MHD_fini"
  36. after you are done using MHD.
  37. Notes on compiling on z/OS:
  38. ---------------------------
  39. After extracting the archive, run
  40. iconv -f UTF-8 -t IBM-1047 contrib/ascebc > /tmp/ascebc.sh
  41. chmod +x /tmp/ascebc.sh
  42. for n in `find * -type f`
  43. do
  44. /tmp/ascebc.sh $n
  45. done
  46. to convert all source files to EBCDIC. Note that you must run
  47. "configure" from the directory where the configure script is
  48. located. Otherwise, configure will fail to find the
  49. "contrib/xcc" script (which is a wrapper around the z/OS c89
  50. compiler).
  51. Development Status
  52. ==================
  53. This is a beta release. Below we list things that should be
  54. implemented (in order of importance) before we can claim to be
  55. reasonably complete.
  56. Untested features:
  57. ==================
  58. - add testcases for http/1.1 pipelining (need
  59. to figure out how to ensure curl pipelines
  60. -- and it seems libcurl has issues with pipelining,
  61. see http://curl.haxx.se/mail/lib-2007-12/0248.html)
  62. - add testcases for resource limit enforcement
  63. - add testcases for client queuing early response,
  64. suppressing 100 CONTINUE
  65. - extend testcase for chunked encoding to validate
  66. handling of footers
  67. - more testing for SSL support
  68. - MHD basic and digest authentication
  69. Functions not covered by "make check":
  70. ======================================
  71. - file_reader (response.c); special case (sendfile)
  72. - mhd_panic_std (daemon.c); special case (abort)
  73. - parse_options (daemon.c)
  74. - MHD_set_panic_func (daemon.c)
  75. - MHD_get_version (daemon.c)
  76. Missing documentation:
  77. ======================
  78. - manual:
  79. * document configuration options
  80. * document details on porting MHD (plibc, z/OS)