FusionInventory::Agent::HTTP::Client(3)
An abstract HTTP client
DESCRIPTION
This is an abstract class for HTTP clients. It can send messages through HTTP
or HTTPS, directly or through a proxy, and validate SSL certificates.
METHODS
new(%params)
The constructor. The following parameters are allowed, as keys of the
%params
hash:
- logger
-
the logger object to use (default: a new stderr logger)
- proxy
-
the URL of an HTTP proxy
- user
-
the user for HTTP authentication
- password
-
the password for HTTP authentication
- no_ssl_check
-
a flag allowing to ignore untrusted server certificates (default: false)
- ca_cert_file
-
the file containing trusted certificates
- ca_cert_dir
-
the directory containing trusted certificates
request($request)
Send given HTTP::Request object, handling
SSL checking and user authentication
automatically if needed.