2
0

README 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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_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. --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, BSD, OS X, W32 and z/OS.
  33. Note that HTTPS is not supported on z/OS (yet). We also have reports
  34. of users using it on vxWorks and Symbian. Note that on platforms
  35. where the compiler does not support the "constructor" attribute, you
  36. must call "MHD_init" before using any MHD functions and "MHD_fini"
  37. after you are done using MHD.
  38. Development Status
  39. ==================
  40. This is a beta release for libmicrohttpd. Before declaring the
  41. library stable, we should implement support for HTTP "Upgrade"
  42. requests and 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)