---
name: "FusionInventory::Agent::HTTP::Client"
section: "3pm"
platform: "linux"
package: "fusioninventory-agent"
version: "2.2.3-8"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/FusionInventory::Agent::HTTP::Client"
---

# FusionInventory::Agent::HTTP::Client(3pm)

An abstract HTTP client

## NAME

FusionInventory::Agent::HTTP::Client - 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.
