diff --git a/nselib/http.lua b/nselib/http.lua index 8f075df79..3af4a4be4 100644 --- a/nselib/http.lua +++ b/nselib/http.lua @@ -4,7 +4,7 @@ -- Because HTTP has so many uses, there are a number of interfaces to this library. -- The most obvious and common ones are simply get, post, -- and head; or, if more control is required, generic_request --- can be used. Thse functions do what one would expect. The get_url +-- can be used. These functions do what one would expect. The get_url -- helper function can be used to parse and retrieve a full URL. -- -- These functions return a table of values, including: @@ -12,9 +12,9 @@ -- * header - An associative array representing the header. Keys are all lowercase, and standard headers, such as 'date', 'content-length', etc. will typically be present. -- * rawheader - A numbered array of the headers, exactly as the server sent them. While header['content-type'] might be 'text/html', rawheader[3] might be 'Content-type: text/html'. -- * cookies - A numbered array of the cookies the server sent. Each cookie is a table with the following keys: name, value, path, domain, and expires. --- * body - The full body, as retunred by the server. +-- * body - The full body, as returned by the server. -- --- If a script is planning on making a lot of requests, the pipeling functions can +-- If a script is planning on making a lot of requests, the pipelining functions can -- be helpful. pipeline_add queues requests in a table, and -- pipeline performs the requests, returning the results as an array, -- with the respones in the same order as the queries were added. As a simple example: