Sending Request Through cURL

The cURL is a command line tool for getting or sending data using URL syntax. For details on cURL, its syntax and exit codes, please visit their official site.

To post request to Billing we recommend the following command:

curl --connect-timeout 10 -d'
<xml request>
' -H 'Content-type:text/xml' https://<Billing Core server>:<Port>/RP

where

  • <xml request> is an Billing API method call formed according to XML-RPC specification

    Note: To make a call from a file, use command -d@ instead of -d.

  • <Billing Core server> is a host name or IP address of a server where Billing Core is installed
  • <port> is a xmlrpcd port number listened by Billing Core server, by default it is 5224

Example:

curl --connect-timeout 10 -d@'/root/DomainSubscrAdd_API.xml' -H 'Content-type:text/xml' https://10.183.05.190:5224