From 88d10158d9df1a92e83ffe3200006853221865b7 Mon Sep 17 00:00:00 2001 From: Sebastian Gerhardt Date: Sat, 1 Nov 2008 08:18:13 +0000 Subject: Upgraded & tested tutorial for version 0.4 prerelease0 --- doc/chapters/basicauthentication.inc | 2 +- doc/chapters/hellobrowser.inc | 10 +++++----- doc/chapters/largerpost.inc | 3 --- doc/examples/basicauthentication.c | 4 +--- doc/examples/hellobrowser.c | 4 +--- doc/examples/largepost.c | 3 --- doc/examples/logging.c | 4 +--- doc/examples/responseheaders.c | 4 +--- doc/examples/simplepost.c | 4 +--- doc/tutorial.texi | 2 +- 10 files changed, 12 insertions(+), 28 deletions(-) diff --git a/doc/chapters/basicauthentication.inc b/doc/chapters/basicauthentication.inc index 8e7f4c60..6b7dcdc6 100644 --- a/doc/chapters/basicauthentication.inc +++ b/doc/chapters/basicauthentication.inc @@ -12,7 +12,7 @@ GET /picture.png?mypassword @end verbatim @noindent -In a situation, where the client is customized enough and the connection occurs +In a situation where the client is customized enough and the connection occurs through secured lines (e.g., a embedded device directly attached to another via wire), this can be a reasonable choice. diff --git a/doc/chapters/hellobrowser.inc b/doc/chapters/hellobrowser.inc index 0513a674..611463e2 100644 --- a/doc/chapters/hellobrowser.inc +++ b/doc/chapters/hellobrowser.inc @@ -9,15 +9,15 @@ The C program @code{hellobrowser.c}, which is to be found in the examples sectio If you are very eager, you can compile and start it right away but it is advisable to type the lines in by yourself as they will be discussed and explained in detail. -After the unexciting includes and the definition of the port which our server should listen on +After the necessary includes and the definition of the port which our server should listen on @verbatim +#include #include -#include -#include -#include + +#define PORT 8888 @end verbatim @noindent -the desired behaviour of our server when HTTP request arrive have to be implemented. We already have +the desired behaviour of our server when HTTP request arrive has to be implemented. We already have agreed that it should not care about the particular details of the request, such as who is requesting what. The server will respond merely with the same small HTML page to every request. diff --git a/doc/chapters/largerpost.inc b/doc/chapters/largerpost.inc index 07e62470..d05dd46d 100644 --- a/doc/chapters/largerpost.inc +++ b/doc/chapters/largerpost.inc @@ -1,6 +1,3 @@ ---- NOTE: This does not work flawlessly with the beta release because there is -a bug preventing early busy messages from being sent --- - The previous chapter introduced a way to upload data to the server, but the developed example program has some shortcomings, such as not being able to handle larger chunks of data. In this chapter, we are going to discuss a more advanced server program that allows clients to upload a file in order to diff --git a/doc/examples/basicauthentication.c b/doc/examples/basicauthentication.c index b3af2e97..f8c80a35 100644 --- a/doc/examples/basicauthentication.c +++ b/doc/examples/basicauthentication.c @@ -1,7 +1,5 @@ +#include #include -#include -#include -#include #include #define PORT 8888 diff --git a/doc/examples/hellobrowser.c b/doc/examples/hellobrowser.c index 02ac8ef1..63b8d310 100644 --- a/doc/examples/hellobrowser.c +++ b/doc/examples/hellobrowser.c @@ -1,7 +1,5 @@ +#include #include -#include -#include -#include #define PORT 8888 diff --git a/doc/examples/largepost.c b/doc/examples/largepost.c index d5dc591f..7a9c1ef1 100644 --- a/doc/examples/largepost.c +++ b/doc/examples/largepost.c @@ -1,8 +1,5 @@ #include #include -#include -#include -#include #define PORT 8888 #define POSTBUFFERSIZE 512 diff --git a/doc/examples/logging.c b/doc/examples/logging.c index d1dd4f1f..2daaa4d0 100644 --- a/doc/examples/logging.c +++ b/doc/examples/logging.c @@ -1,7 +1,5 @@ +#include #include -#include -#include -#include #define PORT 8888 diff --git a/doc/examples/responseheaders.c b/doc/examples/responseheaders.c index 31c3900d..a94e4433 100644 --- a/doc/examples/responseheaders.c +++ b/doc/examples/responseheaders.c @@ -1,7 +1,5 @@ +#include #include -#include -#include -#include #include #define PORT 8888 diff --git a/doc/examples/simplepost.c b/doc/examples/simplepost.c index 6a1322db..d8172b87 100644 --- a/doc/examples/simplepost.c +++ b/doc/examples/simplepost.c @@ -1,7 +1,5 @@ +#include #include -#include -#include -#include #define PORT 8888 #define POSTBUFFERSIZE 512 diff --git a/doc/tutorial.texi b/doc/tutorial.texi index 7b9b877e..b530eab6 100644 --- a/doc/tutorial.texi +++ b/doc/tutorial.texi @@ -4,7 +4,7 @@ @settitle A tutorial for GNU libmicrohttpd @afourpaper -@set VERSION 0.3.1 beta +@set VERSION 0.4.0 prerelease0 @titlepage @title A Tutorial for GNU libmicrohttpd -- cgit v1.2.3