aboutsummaryrefslogtreecommitdiff
path: root/doc/chapters
diff options
context:
space:
mode:
Diffstat (limited to 'doc/chapters')
-rw-r--r--doc/chapters/basicauthentication.inc4
-rw-r--r--doc/chapters/hellobrowser.inc4
-rw-r--r--doc/chapters/introduction.inc2
-rw-r--r--doc/chapters/largerpost.inc2
-rw-r--r--doc/chapters/responseheaders.inc6
-rw-r--r--doc/chapters/tlsauthentication.inc2
6 files changed, 10 insertions, 10 deletions
diff --git a/doc/chapters/basicauthentication.inc b/doc/chapters/basicauthentication.inc
index bbdd3641..cfcc96ff 100644
--- a/doc/chapters/basicauthentication.inc
+++ b/doc/chapters/basicauthentication.inc
@@ -14,7 +14,7 @@ GET /picture.png?mypassword
14 14
15In the rare situation where the client is customized enough and the connection occurs 15In the rare situation where the client is customized enough and the connection occurs
16through secured lines (e.g., a embedded device directly attached to another via wire) 16through secured lines (e.g., a embedded device directly attached to another via wire)
17and where the ability to embedd a password in the URI or to pass on a URI with a 17and where the ability to embed a password in the URI or to pass on a URI with a
18password are desired, this can be a reasonable choice. 18password are desired, this can be a reasonable choice.
19 19
20But when it is assumed that the user connecting does so with an ordinary Internet browser, 20But when it is assumed that the user connecting does so with an ordinary Internet browser,
@@ -37,7 +37,7 @@ Initially, the pointer this parameter references is set by @emph{MHD} in the cal
37also be "remembered" on the next call (for the same connection). 37also be "remembered" on the next call (for the same connection).
38Thus, we will generate no response until the parameter is non-null---implying the callback was 38Thus, we will generate no response until the parameter is non-null---implying the callback was
39called before at least once. We do not need to share information between different calls of the callback, 39called before at least once. We do not need to share information between different calls of the callback,
40so we can set the parameter to any adress that is assured to be not null. The pointer to the 40so we can set the parameter to any address that is assured to be not null. The pointer to the
41@code{connection} structure will be pointing to a legal address, so we take this. 41@code{connection} structure will be pointing to a legal address, so we take this.
42 42
43The first time @code{answer_to_connection} is called, we will not even look at the headers. 43The first time @code{answer_to_connection} is called, we will not even look at the headers.
diff --git a/doc/chapters/hellobrowser.inc b/doc/chapters/hellobrowser.inc
index 983cfb6a..ac7a5fe1 100644
--- a/doc/chapters/hellobrowser.inc
+++ b/doc/chapters/hellobrowser.inc
@@ -116,7 +116,7 @@ information (which could be passed via the next parameter) so the next (sixth) p
116we do not need to pass extra options to the daemon so we just write the MHD_OPTION_END as the last parameter. 116we do not need to pass extra options to the daemon so we just write the MHD_OPTION_END as the last parameter.
117 117
118As the server daemon runs in the background in its own thread, the execution flow in our main 118As the server daemon runs in the background in its own thread, the execution flow in our main
119function will contine right after the call. Because of this, we must delay the execution flow in the 119function will continue right after the call. Because of this, we must delay the execution flow in the
120main thread or else the program will terminate prematurely. We let it pause in a processing-time 120main thread or else the program will terminate prematurely. We let it pause in a processing-time
121friendly manner by waiting for the enter key to be pressed. In the end, we stop the daemon so it can 121friendly manner by waiting for the enter key to be pressed. In the end, we stop the daemon so it can
122do its cleanup tasks. 122do its cleanup tasks.
@@ -161,7 +161,7 @@ right after the response has been transferred then. This is typically not what
161disables HTTP pipelining. The correct approach is to simply not queue a message on the first 161disables HTTP pipelining. The correct approach is to simply not queue a message on the first
162callback unless there is an error. The @code{void**} argument to the callback provides a location 162callback unless there is an error. The @code{void**} argument to the callback provides a location
163for storing information about the history of the connection; for the first call, the pointer 163for storing information about the history of the connection; for the first call, the pointer
164will point to NULL. A simplistic way to differenciate the first call from others is to check 164will point to NULL. A simplistic way to differentiate the first call from others is to check
165if the pointer is NULL and set it to a non-NULL value during the first call. 165if the pointer is NULL and set it to a non-NULL value during the first call.
166 166
167Both of these issues you will find addressed in the official @code{minimal_example.c} residing in 167Both of these issues you will find addressed in the official @code{minimal_example.c} residing in
diff --git a/doc/chapters/introduction.inc b/doc/chapters/introduction.inc
index 95caf9a5..2845d35b 100644
--- a/doc/chapters/introduction.inc
+++ b/doc/chapters/introduction.inc
@@ -19,5 +19,5 @@ built on similar systems.
19@section History 19@section History
20 20
21This tutorial was originally written by Sebastian Gerhardt for MHD 21This tutorial was originally written by Sebastian Gerhardt for MHD
220.4.0. It was slighly polished and updated to MHD 0.9.0 by Christian 220.4.0. It was slightly polished and updated to MHD 0.9.0 by Christian
23Grothoff. \ No newline at end of file 23Grothoff. \ No newline at end of file
diff --git a/doc/chapters/largerpost.inc b/doc/chapters/largerpost.inc
index 1f60028f..11479382 100644
--- a/doc/chapters/largerpost.inc
+++ b/doc/chapters/largerpost.inc
@@ -49,7 +49,7 @@ We want the server to report internal errors, such as memory shortage or file ac
49adequately. 49adequately.
50@verbatim 50@verbatim
51const char* servererrorpage 51const char* servererrorpage
52 = "<html><body>An internal server error has occured.</body></html>"; 52 = "<html><body>An internal server error has occurred.</body></html>";
53const char* fileexistspage 53const char* fileexistspage
54 = "<html><body>This file already exists.</body></html>"; 54 = "<html><body>This file already exists.</body></html>";
55@end verbatim 55@end verbatim
diff --git a/doc/chapters/responseheaders.inc b/doc/chapters/responseheaders.inc
index ece7ce1c..0b1c67e2 100644
--- a/doc/chapters/responseheaders.inc
+++ b/doc/chapters/responseheaders.inc
@@ -60,7 +60,7 @@ server side and if so, the client should be informed with @code{MHD_HTTP_INTERNA
60 /* error accessing file */ 60 /* error accessing file */
61 if (fd != -1) close (fd); 61 if (fd != -1) close (fd);
62 const char *errorstr = 62 const char *errorstr =
63 "<html><body>An internal server error has occured!\ 63 "<html><body>An internal server error has occurred!\
64 </body></html>"; 64 </body></html>";
65 response = 65 response =
66 MHD_create_response_from_buffer (strlen (errorstr), 66 MHD_create_response_from_buffer (strlen (errorstr),
@@ -79,7 +79,7 @@ server side and if so, the client should be informed with @code{MHD_HTTP_INTERNA
79 return MHD_NO; 79 return MHD_NO;
80 if (!ret) 80 if (!ret)
81 { 81 {
82 const char *errorstr = "<html><body>An internal server error has occured!\ 82 const char *errorstr = "<html><body>An internal server error has occurred!\
83 </body></html>"; 83 </body></html>";
84 84
85 if (buffer) free(buffer); 85 if (buffer) free(buffer);
@@ -120,7 +120,7 @@ But in the case of success a response will be constructed directly from the file
120@end verbatim 120@end verbatim
121@noindent 121@noindent
122 122
123Note that the response object will take care of closing the file desciptor for us. 123Note that the response object will take care of closing the file descriptor for us.
124 124
125Up to this point, there was little new. The actual novelty is that we enhance the header with the 125Up to this point, there was little new. The actual novelty is that we enhance the header with the
126meta data about the content. Aware of the field's name we want to add, it is as easy as that: 126meta data about the content. Aware of the field's name we want to add, it is as easy as that:
diff --git a/doc/chapters/tlsauthentication.inc b/doc/chapters/tlsauthentication.inc
index 8bdfa764..fdb3d920 100644
--- a/doc/chapters/tlsauthentication.inc
+++ b/doc/chapters/tlsauthentication.inc
@@ -65,7 +65,7 @@ main ()
65@end verbatim 65@end verbatim
66@noindent 66@noindent
67 67
68and then we point the @emph{MHD} daemon to it upon initalization. 68and then we point the @emph{MHD} daemon to it upon initialization.
69@verbatim 69@verbatim
70 70
71 daemon = MHD_start_daemon (MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_SSL, 71 daemon = MHD_start_daemon (MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_SSL,