---
name: "FusionInventory::Agent::HTTP::Client::OCS"
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::OCS"
---

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

An HTTP client using OCS protocol

## NAME

FusionInventory::Agent::HTTP::Client::OCS - An HTTP client using OCS protocol

## DESCRIPTION

This is the object used by the agent to send messages to OCS or GLPI servers, using original OCS protocol (XML messages sent through POST requests).

## METHODS

### send(%params)

Send an instance of `"FusionInventory::Agent::XML::Query"` to the target (the server).

The following parameters are allowed, as keys of the `%params` hash:

- *url*

  the url to send the message to (mandatory)

- *message*

  the message to send (mandatory)

This method returns an `"FusionInventory::Agent::XML::Response"` instance.
