Executing Public API Methods with curl Utility

This section describes how to execute POA Public API methods using the curl utility.

Note: The curl utility for Windows-based hosts can be obtained from the http://curl.haxx.se web site. For Linux-based hosts the curl utility is available in the OS distribution.

  1. Log in to the host where the curl utility is installed.
  2. Create a file and insert the required XML-RPC request into it. Signatures of POA Public API methods are provided in the Public API Reference section.
  3. Execute the following command:

    # curl -k -d@FILE PROTOCOL://LOGIN:PASSWORD@IP_ADDRESS:PORT

    Where:

    Examples:

    # curl -k -d@/root/pem.addAccount.xml https://login:password@1.1.1.1:8440

    # curl -k -d@/root/pem.addAccount.xml https://1.1.1.1:8440

    # curl -k -d@/root/pem.addAccount.xml http://1.1.1.1:8440