From 11282d17c8ecb6aa6fa31a3de742eae0215f4cc0 Mon Sep 17 00:00:00 2001 From: Diego Nehab Date: Mon, 3 Apr 2006 04:45:42 +0000 Subject: Almost done 2.0.1. --- doc/http.html | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'doc/http.html') 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; In case of failure, the function returns nil followed by an error message. If successful, the simple form returns the response body as a string, followed by the response status code, the response -headers and the response status line. The complex function returns the same +headers and the response status line. The generic function returns the same information, except the first return value is just the number 1 (the body goes to the sink).

@@ -259,6 +259,14 @@ r, c, h = http.request { -- } +

+Note: When sending a POST request, simple interface adds a +"Content-type: application/x-www-form-urlencoded" +header to the request. This is the type used by +HTML forms. If you need another type, use the generic +interface. +

+

Note: Some URLs are protected by their servers from anonymous download. For those URLs, the server must receive -- cgit v1.2.3-55-g6feb