aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Gerhardt <sebgerhardt@gmx.net>2008-11-01 08:18:13 +0000
committerSebastian Gerhardt <sebgerhardt@gmx.net>2008-11-01 08:18:13 +0000
commit88d10158d9df1a92e83ffe3200006853221865b7 (patch)
tree7c7a2550568a7b9c060ea1aa853b3a4be2a48e9e
parent22e3613826a28f046f3e48639956c7721e7c8de0 (diff)
downloadlibmicrohttpd-88d10158d9df1a92e83ffe3200006853221865b7.tar.gz
libmicrohttpd-88d10158d9df1a92e83ffe3200006853221865b7.zip
Upgraded & tested tutorial for version 0.4 prerelease0
-rw-r--r--doc/chapters/basicauthentication.inc2
-rw-r--r--doc/chapters/hellobrowser.inc10
-rw-r--r--doc/chapters/largerpost.inc3
-rw-r--r--doc/examples/basicauthentication.c4
-rw-r--r--doc/examples/hellobrowser.c4
-rw-r--r--doc/examples/largepost.c3
-rw-r--r--doc/examples/logging.c4
-rw-r--r--doc/examples/responseheaders.c4
-rw-r--r--doc/examples/simplepost.c4
-rw-r--r--doc/tutorial.texi2
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
12@end verbatim 12@end verbatim
13@noindent 13@noindent
14 14
15In a situation, where the client is customized enough and the connection occurs 15In a 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),
17this can be a reasonable choice. 17this can be a reasonable choice.
18 18
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
9If you are very eager, you can compile and start it right away but it is advisable to type the 9If you are very eager, you can compile and start it right away but it is advisable to type the
10lines in by yourself as they will be discussed and explained in detail. 10lines in by yourself as they will be discussed and explained in detail.
11 11
12After the unexciting includes and the definition of the port which our server should listen on 12After the necessary includes and the definition of the port which our server should listen on
13@verbatim 13@verbatim
14#include <platform.h>
14#include <microhttpd.h> 15#include <microhttpd.h>
15#include <string.h> 16
16#include <stdlib.h> 17#define PORT 8888
17#include <stdio.h>
18@end verbatim 18@end verbatim
19@noindent 19@noindent
20the desired behaviour of our server when HTTP request arrive have to be implemented. We already have 20the desired behaviour of our server when HTTP request arrive has to be implemented. We already have
21agreed that it should not care about the particular details of the request, such as who is requesting 21agreed that it should not care about the particular details of the request, such as who is requesting
22what. The server will respond merely with the same small HTML page to every request. 22what. The server will respond merely with the same small HTML page to every request.
23 23
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 @@
1--- NOTE: This does not work flawlessly with the beta release because there is
2a bug preventing early busy messages from being sent ---
3
4The previous chapter introduced a way to upload data to the server, but the developed example program 1The previous chapter introduced a way to upload data to the server, but the developed example program
5has some shortcomings, such as not being able to handle larger chunks of data. In this chapter, we 2has some shortcomings, such as not being able to handle larger chunks of data. In this chapter, we
6are going to discuss a more advanced server program that allows clients to upload a file in order to 3are 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 @@
1#include <platform.h>
1#include <microhttpd.h> 2#include <microhttpd.h>
2#include <string.h>
3#include <stdio.h>
4#include <stdlib.h>
5#include <time.h> 3#include <time.h>
6 4
7#define PORT 8888 5#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 @@
1#include <platform.h>
1#include <microhttpd.h> 2#include <microhttpd.h>
2#include <string.h>
3#include <stdlib.h>
4#include <stdio.h>
5 3
6#define PORT 8888 4#define PORT 8888
7 5
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 @@
1#include <platform.h> 1#include <platform.h>
2#include <microhttpd.h> 2#include <microhttpd.h>
3#include <string.h>
4#include <stdlib.h>
5#include <stdio.h>
6 3
7#define PORT 8888 4#define PORT 8888
8#define POSTBUFFERSIZE 512 5#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 @@
1#include <platform.h>
1#include <microhttpd.h> 2#include <microhttpd.h>
2#include <string.h>
3#include <stdlib.h>
4#include <stdio.h>
5 3
6#define PORT 8888 4#define PORT 8888
7 5
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 @@
1#include <platform.h>
1#include <microhttpd.h> 2#include <microhttpd.h>
2#include <string.h>
3#include <stdio.h>
4#include <stdlib.h>
5#include <time.h> 3#include <time.h>
6 4
7#define PORT 8888 5#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 @@
1#include <platform.h>
1#include <microhttpd.h> 2#include <microhttpd.h>
2#include <string.h>
3#include <stdlib.h>
4#include <stdio.h>
5 3
6#define PORT 8888 4#define PORT 8888
7#define POSTBUFFERSIZE 512 5#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 @@
4@settitle A tutorial for GNU libmicrohttpd 4@settitle A tutorial for GNU libmicrohttpd
5@afourpaper 5@afourpaper
6 6
7@set VERSION 0.3.1 beta 7@set VERSION 0.4.0 prerelease0
8 8
9@titlepage 9@titlepage
10@title A Tutorial for GNU libmicrohttpd 10@title A Tutorial for GNU libmicrohttpd