diff --git a/nselib/http.lua b/nselib/http.lua index 70d93e876..5ae2be2f7 100644 --- a/nselib/http.lua +++ b/nselib/http.lua @@ -65,12 +65,7 @@ -- * timeout: A timeout used for socket operations. -- * header: A table containing additional headers to be used for the request. For example, options['header']['Content-Type'] = 'text/xml' -- * content: The content of the message (content-length will be added -- set header['Content-Length'] to override). This can be either a string, which will be directly added as the body of the message, or a table, which will have each key=value pair added (like a normal POST request). --- * cookies: A list of cookies as either a string, which will be directly sent, or a table. If it's a table, the following fields are recognized: --- ** name --- ** value --- ** path --- ** expires --- Only name and value fields are required. +-- * cookies: A list of cookies as either a string, which will be directly sent, or a table. If it's a table, the following fields are recognized: name, value, path, expires. Only name and value fields are required. -- * auth: A table containing the keys username and password, which will be used for HTTP Basic authentication. -- If a server requires HTTP Digest authentication, then there must also be a key digest, with value true. -- If a server requires NTLM authentication, then there must also be a key ntlm, with value true.