summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathan Angelacos <nangel@alpinelinux.org>2010-07-23 00:37:25 +0000
committerNathan Angelacos <nangel@alpinelinux.org>2010-07-23 00:37:25 +0000
commitbef8f32c5153ec308aebabc0ad7309dadf8baaa5 (patch)
tree04d07237bf5d4f6227631d1bd87a93d124c392bb
parent7ab23666ab2ac9cdd2b776e1b6e3708abf1c2a0f (diff)
downloadhaserl-bef8f32c5153ec308aebabc0ad7309dadf8baaa5.tar.bz2
haserl-bef8f32c5153ec308aebabc0ad7309dadf8baaa5.tar.xz
Ralph Siemsen RFC 2616 manpage update
-rw-r--r--ChangeLog4
-rw-r--r--doc/haserl.112
2 files changed, 16 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 39be221..0ee9139 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2010-07-22
+ 0.9.27
+ * Daniel Griscom reported clarification on RFC 2616 compliance
+ Ralph Siemsen provided the actual man-page update
2009-07-30
0.9.26
* Peter Korsgaard found a buffer overflow error in handling
diff --git a/doc/haserl.1 b/doc/haserl.1
index c683405..1faab6b 100644
--- a/doc/haserl.1
+++ b/doc/haserl.1
@@ -415,7 +415,19 @@ and by setting the form
.RI "to " multipart/form-data.
If the client sends a file, then some information regarding the file is printed, and then deleted. Otherwise, the form states that the client has not uploaded a file.
+.TP
+.B RFC-2616 Conformance
+.nf
+#!/usr/local/bin/haserl
+<% echo -en "content-type: text/html\\r\\n\\r\\n" %>
+<html><body>
+ ...
+</body></html>
+.fi
+To fully comply with the HTTP specification, headers should be terminated
+using CR+LF, rather than the normal unix LF line termination only. The
+above syntax can be used to produce RFC 2616 compliant headers.
.SH ENVIRONMENT
In addition to the environment variables inherited from the web server, the following environment variables are always defined at startup: