mirror of
https://git.gnunet.org/libmicrohttpd.git
synced 2026-09-25 04:09:31 +03:00
Upgraded & tested tutorial for version 0.4 prerelease0
This commit is contained in:
@@ -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.
|
||||
|
||||
|
||||
@@ -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 <platform.h>
|
||||
#include <microhttpd.h>
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#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.
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
#include <platform.h>
|
||||
#include <microhttpd.h>
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <time.h>
|
||||
|
||||
#define PORT 8888
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
#include <platform.h>
|
||||
#include <microhttpd.h>
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#define PORT 8888
|
||||
|
||||
|
||||
@@ -1,8 +1,5 @@
|
||||
#include <platform.h>
|
||||
#include <microhttpd.h>
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#define PORT 8888
|
||||
#define POSTBUFFERSIZE 512
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
#include <platform.h>
|
||||
#include <microhttpd.h>
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#define PORT 8888
|
||||
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
#include <platform.h>
|
||||
#include <microhttpd.h>
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <time.h>
|
||||
|
||||
#define PORT 8888
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
#include <platform.h>
|
||||
#include <microhttpd.h>
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#define PORT 8888
|
||||
#define POSTBUFFERSIZE 512
|
||||
|
||||
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user