---
updatedAt: 2025-11-11T21:40:51.000Z
agentTools:
  projectIndex: https://domains.opensrs.guide/llms.txt
---

# Construction of the POST Data

The header for the POST data should have the following format.  Replace the items in brackets with user- and command-specific information.

```http POST data
POST / HTTP/1.0
Content-Type: text/xml
X-Username: (OpenSRS Username)
X-Signature: (MD5 Signature)
Content-Length: (Length of XML Document)
```

Following this header should be one blank line followed by the XML document that contains the OpenSRS command data. The header combined with the XML makes up the packet that is sent to OpenSRS to execute your command.

## Response Messages

The response is returned in the form of an XML document.  Responses contain data that may be simple strings or lists of information.

## Common fields

There are a few common fields that all responses share, regardless of the action to which they are responding. The following fields comprise a standard response message. Some actions only use standard response messages.

<Table align={["left","left"]}>
  <thead>
    <tr>
      <th>
        Parameter name
      </th>

      <th>
        Definition/Value
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        protocol
      </td>

      <td>
        The protocol that is being used (XCP).
      </td>
    </tr>

    <tr>
      <td>
        action
      </td>

      <td>
        In the case of responses, this is always **REPLY**.
      </td>
    </tr>

    <tr>
      <td>
        response\_code
      </td>

      <td>
        Response code (meaning is action-specific).
      </td>
    </tr>

    <tr>
      <td>
        response\_text
      </td>

      <td>
        Response text (meaning is action-specific).
      </td>
    </tr>

    <tr>
      <td>
        is\_success
      </td>

      <td>
        Indicates whether the command was successful. Returns **0** if not successful and **1** if the action was successful.
      </td>
    </tr>
  </tbody>
</Table>

## Optional fields

In addition, the structure may contain the following fields, depending on the specific action that was requested.

<Table align={["left","left"]}>
  <thead>
    <tr>
      <th>
        Parameter name
      </th>

      <th>
        Definition/Value
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        attributes
      </td>

      <td>
        A hash that contains any specific parameters or attributes to be sent along with the action request.
      </td>
    </tr>
  </tbody>
</Table>