Home page logo
/
Intro Reference Guide Book Install Guide
Download Changelog Zenmap GUI Docs
Bug Reports OS Detection Propaganda Related Projects
In the Movies In the News

Library ajp

A basic AJP 1.3 implementation based on documentation available from Apache mod_proxy_ajp; http://httpd.apache.org/docs/2.2/mod/mod_proxy_ajp.html

Author:
"Patrik Karlsson <patrik@cqure.net>"

Source: http://nmap.org/svn/nselib/ajp.lua

Functions

Helper.close (self)

Disconnects from the server

Helper.connect (self)

Connects to the AJP server

Helper.delete (self, url, headers, attributes, options)

Sends an AJP DELETE request to the server

Helper.get (self, url, headers, attributes, options)

Sends an AJP GET request to the server

Helper.head (self, url, headers, attributes, options)

Sends an AJP HEAD request to the server

Helper.new (self, host, port, opt)

Creates a new AJP Helper instance

Helper.options (self, url, headers, attributes, options)

Sends an AJP OPTIONS request to the server

Helper.put (self, url, headers, attributes, options)

Sends an AJP PUT request to the server

Helper.request (self, method, url, headers, attributes, options)

Sends an AJP request to the server

Helper.trace (self, url, headers, attributes, options)

Sends an AJP TRACE request to the server

Tables

ajp.options

AJP Request options

ajp.response

AJP response table



Functions

Helper.close (self)

Disconnects from the server

Parameters

  • self:
Helper.connect (self)

Connects to the AJP server

Parameters

  • self:

Return values:

  1. status true on success, false on failure
  2. err string containing error message on failure
Helper.delete (self, url, headers, attributes, options)

Sends an AJP DELETE request to the server

Parameters

  • self:
  • url: string containing the URL to query
  • headers: table containing optional headers
  • attributes: table containing optional attributes
  • options: table with request specific options

Return values:

  1. status true on success, false on failure
  2. response table, or error message on failure

See also:

Helper.get (self, url, headers, attributes, options)

Sends an AJP GET request to the server

Parameters

  • self:
  • url: string containing the URL to query
  • headers: table containing optional headers
  • attributes: table containing optional attributes
  • options: table with request specific options

Return values:

  1. status true on success, false on failure
  2. response table, or error message on failure

See also:

Helper.head (self, url, headers, attributes, options)

Sends an AJP HEAD request to the server

Parameters

  • self:
  • url: string containing the URL to query
  • headers: table containing optional headers
  • attributes: table containing optional attributes
  • options: table with request specific options

Return values:

  1. status true on success, false on failure
  2. response table, or error message on failure

See also:

Helper.new (self, host, port, opt)

Creates a new AJP Helper instance

Parameters

  • self:
  • host: host table
  • port: port table
  • opt: request and comm options

Return value:

o new Helper instance

See also:

Helper.options (self, url, headers, attributes, options)

Sends an AJP OPTIONS request to the server

Parameters

  • self:
  • url: string containing the URL to query
  • headers: table containing optional headers
  • attributes: table containing optional attributes
  • options: table with request specific options

Return values:

  1. status true on success, false on failure
  2. response table, or error message on failure

See also:

Helper.put (self, url, headers, attributes, options)

Sends an AJP PUT request to the server

Parameters

  • self:
  • url: string containing the URL to query
  • headers: table containing optional headers
  • attributes: table containing optional attributes
  • options: table with request specific options

Return values:

  1. status true on success, false on failure
  2. response table, or error message on failure

See also:

Helper.request (self, method, url, headers, attributes, options)

Sends an AJP request to the server

Parameters

  • self:
  • method:
  • url: string containing the URL to query
  • headers: table containing optional headers
  • attributes: table containing optional attributes
  • options: table with request specific options

Return values:

  1. status true on success, false on failure
  2. response table, or error message on failure

See also:

Helper.trace (self, url, headers, attributes, options)

Sends an AJP TRACE request to the server

Parameters

  • self:
  • url: string containing the URL to query
  • headers: table containing optional headers
  • attributes: table containing optional attributes
  • options: table with request specific options

Return values:

  1. status true on success, false on failure
  2. response table, or error message on failure

See also:

Tables

ajp.options

AJP Request options

Fields
  • auth: table with <code>username</code> and <code>password</code> fields
  • timeout: Socket timeout in milliseconds. Default: 5000
ajp.response

AJP response table

Fields
  • status: status of response (see HTTP status codes)
  • status_line: the complete status line (eg. 200 OK)
  • body: the response body as string
  • headers: table of response headers

Nmap Site Navigation

Intro Reference Guide Book Install Guide
Download Changelog Zenmap GUI Docs
Bug Reports OS Detection Propaganda Related Projects
In the Movies In the News
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]