libmicrohttpd2

HTTP server C library (MHD 2.x, alpha)
Log | Files | Refs | README | LICENSE

libmicrohttpd2-tutorial.texi (4347B)


      1 \input texinfo  @c -*-texinfo-*-
      2 @finalout
      3 @setfilename libmicrohttpd-tutorial.info
      4 @set UPDATED 2 April 2016
      5 @set UPDATED-MONTH April 2016
      6 @set EDITION 0.9.48
      7 @set VERSION 0.9.48
      8 @settitle A tutorial for GNU libmicrohttpd
      9 @c Unify all the indices into concept index.
     10 @syncodeindex fn cp
     11 @syncodeindex vr cp
     12 @syncodeindex ky cp
     13 @syncodeindex pg cp
     14 @syncodeindex tp cp
     15 
     16 @dircategory Software libraries
     17 @direntry
     18 * libmicrohttpdtutorial: (libmicrohttpd-tutorial).       A tutorial for GNU libmicrohttpd.
     19 @end direntry
     20 
     21 @copying
     22 This tutorial documents GNU libmicrohttpd version @value{VERSION}, last
     23 updated @value{UPDATED}.
     24 
     25 Copyright (c)  2008  Sebastian Gerhardt.
     26 
     27 Copyright (c)  2010, 2011, 2012, 2013, 2016, 2021  Christian Grothoff.
     28 @quotation
     29 Permission is granted to copy, distribute and/or modify this document
     30 under the terms of the GNU Free Documentation License, Version 1.3
     31 or any later version published by the Free Software Foundation;
     32 with no Invariant Sections, no Front-Cover Texts, and no Back-Cover
     33 Texts.  A copy of the license is included in the section entitled "GNU
     34 Free Documentation License".
     35 @end quotation
     36 @end copying
     37 
     38 @titlepage
     39 @title A Tutorial for GNU libmicrohttpd
     40 @subtitle Version @value{VERSION}
     41 @subtitle @value{UPDATED}
     42 @author Sebastian Gerhardt (@email{sebgerhardt@@gmx.net})
     43 @author Christian Grothoff (@email{christian@@grothoff.org})
     44 @author Matthieu Speder (@email{mspeder@@users.sourceforge.net})
     45 
     46 @page
     47 @vskip 0pt plus 1filll
     48 @insertcopying
     49 @end titlepage
     50 
     51 
     52 
     53 @contents
     54 
     55 @ifnottex
     56 @node Top
     57 @top A Tutorial for GNU libmicrohttpd
     58 @insertcopying
     59 @end ifnottex
     60 
     61 @menu
     62 * Introduction::
     63 * Hello browser example::
     64 * Exploring requests::
     65 * Response headers::
     66 * Supporting basic authentication::
     67 * Processing POST data::
     68 * Improved processing of POST data::
     69 * Session management::
     70 * Adding a layer of security::
     71 * Websockets::
     72 * Bibliography::
     73 * License text::
     74 * Example programs::
     75 @end menu
     76 
     77 @node Introduction
     78 @chapter Introduction
     79 @include tutorial/introduction.inc
     80 
     81 @node Hello browser example
     82 @chapter Hello browser example
     83 @include tutorial/hellobrowser.inc
     84 
     85 @node Exploring requests
     86 @chapter Exploring requests
     87 @include tutorial/exploringrequests.inc
     88 
     89 @node Response headers
     90 @chapter Response headers
     91 @include tutorial/responseheaders.inc
     92 
     93 @node Supporting basic authentication
     94 @chapter Supporting basic authentication
     95 @include tutorial/basicauthentication.inc
     96 
     97 @node Processing POST data
     98 @chapter Processing POST data
     99 @include tutorial/processingpost.inc
    100 
    101 @node Improved processing of POST data
    102 @chapter Improved processing of POST data
    103 @include tutorial/largerpost.inc
    104 
    105 @node Session management
    106 @chapter Session management
    107 @include tutorial/sessions.inc
    108 
    109 @node Adding a layer of security
    110 @chapter Adding a layer of security
    111 @include tutorial/tlsauthentication.inc
    112 
    113 @node Websockets
    114 @chapter Websockets
    115 @include tutorial/websocket.inc
    116 
    117 @node Bibliography
    118 @appendix Bibliography
    119 @include tutorial/bibliography.inc
    120 
    121 @node License text
    122 @appendix GNU Free Documentation License
    123 @include fdl-1.3.texi
    124 
    125 @node Example programs
    126 @appendix Example programs
    127 @menu
    128 * hellobrowser.c::
    129 * logging.c::
    130 * responseheaders.c::
    131 * basicauthentication.c::
    132 * simplepost.c::
    133 * largepost.c::
    134 * sessions.c::
    135 * tlsauthentication.c::
    136 * websocket.c::
    137 @end menu
    138 
    139 @node hellobrowser.c
    140 @section hellobrowser.c
    141 @smalldisplay
    142 @verbatiminclude examples/hellobrowser.c
    143 @end smalldisplay
    144 
    145 @node logging.c
    146 @section logging.c
    147 @smalldisplay
    148 @verbatiminclude examples/logging.c
    149 @end smalldisplay
    150 
    151 @node responseheaders.c
    152 @section responseheaders.c
    153 @smalldisplay
    154 @verbatiminclude examples/responseheaders.c
    155 @end smalldisplay
    156 
    157 @node basicauthentication.c
    158 @section basicauthentication.c
    159 @smalldisplay
    160 @verbatiminclude examples/basicauthentication.c
    161 @end smalldisplay
    162 
    163 @node simplepost.c
    164 @section simplepost.c
    165 @smalldisplay
    166 @verbatiminclude examples/simplepost.c
    167 @end smalldisplay
    168 
    169 @node largepost.c
    170 @section largepost.c
    171 @smalldisplay
    172 @verbatiminclude examples/largepost.c
    173 @end smalldisplay
    174 
    175 @node sessions.c
    176 @section sessions.c
    177 @smalldisplay
    178 @verbatiminclude examples/sessions.c
    179 @end smalldisplay
    180 
    181 @node tlsauthentication.c
    182 @section tlsauthentication.c
    183 @smalldisplay
    184 @verbatiminclude examples/tlsauthentication.c
    185 @end smalldisplay
    186 
    187 @node websocket.c
    188 @section websocket.c
    189 @smalldisplay
    190 @verbatiminclude examples/websocket.c
    191 @end smalldisplay
    192 
    193 @bye