diff options
Diffstat (limited to 'Build/source/texk/web2c/luatexdir/luasocket/doc/http.html')
-rw-r--r-- | Build/source/texk/web2c/luatexdir/luasocket/doc/http.html | 35 |
1 files changed, 17 insertions, 18 deletions
diff --git a/Build/source/texk/web2c/luatexdir/luasocket/doc/http.html b/Build/source/texk/web2c/luatexdir/luasocket/doc/http.html index 0acac13feec..cd41c0ddb9e 100644 --- a/Build/source/texk/web2c/luatexdir/luasocket/doc/http.html +++ b/Build/source/texk/web2c/luatexdir/luasocket/doc/http.html @@ -24,8 +24,8 @@ </td></tr> </table> <p class=bar> -<a href="home.html">home</a> · -<a href="home.html#download">download</a> · +<a href="index.html">home</a> · +<a href="index.html#download">download</a> · <a href="introduction.html">introduction</a> · <a href="introduction.html">introduction</a> · <a href="reference.html">reference</a> @@ -36,7 +36,7 @@ <!-- http +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> -<h2 id=http>HTTP</h2> +<h2 id="http">HTTP</h2> <p> HTTP (Hyper Text Transfer Protocol) is the protocol used to exchange @@ -45,8 +45,7 @@ namespace offers full support for the client side of the HTTP protocol (i.e., the facilities that would be used by a web-browser implementation). The implementation conforms to the HTTP/1.1 standard, -<a href="http://www.cs.princeton.edu/~diego/rfc/rfc2616.txt">RFC -2616</a>. +<a href="http://www.ietf.org/rfc/rfc2616.txt">RFC 2616</a>. </p> <p> @@ -67,8 +66,7 @@ local http = require("socket.http") <p> URLs must conform to -<a href="http://www.cs.princeton.edu/~diego/rfc/rfc1738.txt">RFC -1738</a>, +<a href="http://www.ietf.org/rfc/rfc1738.txt">RFC 1738</a>, that is, an URL is a string in the form: </p> @@ -97,8 +95,9 @@ headers = {<br> </blockquote> <p> -Field names are case insensitive (as specified by the standard) and all -functions work with lowercase field names. +Field names are case insensitive (as specified by the standard) and all +functions work with lowercase field names (but see +<a href=socket.html#headers.canonic><tt>socket.headers.canonic</tt></a>). Field values are left unmodified. </p> @@ -119,9 +118,10 @@ the HTTP module: <li> <tt>USERAGENT</tt>: default user agent reported to server. </ul> + <!-- http.request ++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> -<p class=name id=request> +<p class=name id="request"> http.<b>request(</b>url [, body]<b>)</b><br> http.<b>request{</b><br> url = <i>string</i>,<br> @@ -199,8 +199,7 @@ it usually returns a message body (a web page informing the URL was not found or some other useless page). To make sure the operation was successful, check the returned status <tt>code</tt>. For a list of the possible values and their meanings, refer to <a -href="http://www.cs.princeton.edu/~diego/rfc/rfc2616.txt">RFC -2616</a>. +href="http://www.ietf.org/rfc/rfc2616.txt">RFC 2616</a>. </p> <p class=description> @@ -259,7 +258,7 @@ r, c, h = http.request { -- } </pre> -<p class=note id=post> +<p class=note id="post"> Note: When sending a POST request, simple interface adds a "<tt>Content-type: application/x-www-form-urlencoded</tt>" header to the request. This is the type used by @@ -267,7 +266,7 @@ HTML forms. If you need another type, use the generic interface. </p> -<p class=note id=authentication> +<p class=note id="authentication"> Note: Some URLs are protected by their servers from anonymous download. For those URLs, the server must receive some sort of authentication along with the request or it will deny @@ -278,7 +277,7 @@ download and return status "401 Authentication Required". The HTTP/1.1 standard defines two authentication methods: the Basic Authentication Scheme and the Digest Authentication Scheme, both explained in detail in -<a href="http://www.cs.princeton.edu/~diego/rfc/rfc2068.txt">RFC 2068</a>. +<a href="http://www.ietf.org/rfc/rfc2068.txt">RFC 2068</a>. </p> <p class=note>The Basic Authentication Scheme sends @@ -304,7 +303,7 @@ b, c, h = http.request("http://fulano:silva@www.example.com/private/index.html") -- the request directly. r, c = http.request { url = "http://www.example.com/private/index.html", - headers = { authentication = "Basic " .. (mime.b64("fulano:silva")) } + headers = { authorization = "Basic " .. (mime.b64("fulano:silva")) } } </pre> @@ -314,8 +313,8 @@ r, c = http.request { <hr> <center> <p class=bar> -<a href="home.html">home</a> · -<a href="home.html#download">download</a> · +<a href="index.html">home</a> · +<a href="index.html#download">download</a> · <a href="installation.html">installation</a> · <a href="introduction.html">introduction</a> · <a href="reference.html">reference</a> |