Armadito::Agent::HTTP::Client::Armadito - Armadito HTTP Client class.
This is the class used by Armadito agent to communicate with armadito plugin in GLPI or with Armadito Antivirus.
Send a request according to params given. If this is a GET request, params are formatted into URL with _prepareURL method. If this is a POST request, a message must be given in params. This should be a valid JSON message.
The following parameters are allowed, as keys of the %params hash :
the url to send the message to (mandatory)
the method used: GET or POST. (mandatory)
the message to send (mandatory if method is POST)
The return value is a response object. See HTTP::Request and HTTP::Response for a description of the interface provided by these classes.
To install Armadito::Agent, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Armadito::Agent
CPAN shell
perl -MCPAN -e shell install Armadito::Agent
For more information on module installation, please visit the detailed CPAN module installation guide.