aboutsummaryrefslogtreecommitdiff
path: root/doc/http.html
diff options
context:
space:
mode:
Diffstat (limited to 'doc/http.html')
-rw-r--r--doc/http.html10
1 files changed, 9 insertions, 1 deletions
diff --git a/doc/http.html b/doc/http.html
index a60ed25..992ac7a 100644
--- a/doc/http.html
+++ b/doc/http.html
@@ -188,7 +188,7 @@ function from automatically following 301 or 302 server redirect messages;
188In case of failure, the function returns <tt><b>nil</b></tt> followed by an 188In case of failure, the function returns <tt><b>nil</b></tt> followed by an
189error message. If successful, the simple form returns the response 189error message. If successful, the simple form returns the response
190body as a string, followed by the response status code, the response 190body as a string, followed by the response status code, the response
191headers and the response status line. The complex function returns the same 191headers and the response status line. The generic function returns the same
192information, except the first return value is just the number 1 (the body 192information, except the first return value is just the number 1 (the body
193goes to the <tt>sink</tt>). 193goes to the <tt>sink</tt>).
194</p> 194</p>
@@ -259,6 +259,14 @@ r, c, h = http.request {
259-- } 259-- }
260</pre> 260</pre>
261 261
262<p class=note id=post>
263Note: When sending a POST request, simple interface adds a
264"<tt>Content-type: application/x-www-form-urlencoded</tt>"
265header to the request. This is the type used by
266HTML forms. If you need another type, use the generic
267interface.
268</p>
269
262<p class=note id=authentication> 270<p class=note id=authentication>
263Note: Some URLs are protected by their 271Note: Some URLs are protected by their
264servers from anonymous download. For those URLs, the server must receive 272servers from anonymous download. For those URLs, the server must receive