aboutsummaryrefslogtreecommitdiff
path: root/doc/tutorial.texi
blob: e715058af0c956871bf953a8bc34aa8ab6fb21fe (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
\input texinfo  @c -*-texinfo-*-
@finalout
@setfilename libmicrohttpdtutorial
@settitle A tutorial for GNU libmicrohttpd
@afourpaper

@set VERSION 0.3.1 beta

@titlepage
@title A Tutorial for GNU libmicrohttpd
@subtitle written for version @value{VERSION}
@author Sebastian Gerhardt (@email{sebgerhardt@@gmx.net})
@page
@vskip 0pt plus 1filll
@end titlepage

@verbatim
Copyright (c)  2008  Sebastian Gerhardt.
Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License, Version 1.2
or any later version published by the Free Software Foundation;
with no Invariant Sections, no Front-Cover Texts, and no Back-Cover
Texts.  A copy of the license is included in the section entitled "GNU
Free Documentation License".
@end verbatim

@contents

@ifnottex
@node Top
@top Top
@end ifnottex     

@menu
* Introduction::
* Hello browser example::
* Exploring requests::
* Response headers::
* Supporting basic authentication::
* Processing POST data::
* Bibliography::
* License text::
* Example programs::
@end menu

@node Introduction
@chapter Introduction
@include introduction.inc

@node Hello browser example
@chapter Hello browser example
@include hellobrowser.inc

@node Exploring requests
@chapter Exploring requests
@include exploringrequests.inc

@node Response headers
@chapter Response headers
@include responseheaders.inc

@node Supporting basic authentication
@chapter Supporting basic authentication
@include basicauthentication.inc

@node Processing POST data
@chapter Processing POST data
@include processingpost.inc


@node Bibliography
@appendix Bibliography
@include bibliography.inc

@node License text
@appendix GNU Free Documentation License
@include fdl-1.2.texi

@node Example programs
@appendix Example programs
@menu
* hellobrowser.c::
* logging.c::
* responseheaders.c::
* basicauthentication.c::
* simplepost.c::
@end menu

@node hellobrowser.c
@section hellobrowser.c
@smalldisplay
@verbatiminclude examples/hellobrowser.c
@end smalldisplay

@node logging.c
@section logging.c
@smalldisplay
@verbatiminclude examples/logging.c
@end smalldisplay

@node responseheaders.c
@section responseheaders.c
@smalldisplay
@verbatiminclude examples/responseheaders.c
@end smalldisplay

@node basicauthentication.c
@section basicauthentication.c
@smalldisplay
@verbatiminclude examples/basicauthentication.c
@end smalldisplay

@node simplepost.c
@section simplepost.c
@smalldisplay
@verbatiminclude examples/simplepost.c
@end smalldisplay

@bye