Analyzing the XML interface using cURL

The following section describes the analysis of the XML interface with the open-source software cURL.

Client for URL, or cURL, is a command line application use for transferring files on a network without the use of a Web browser or FTP client. "cURL" is a component of many Linux distributions and is also available for other operating systems.

Note: To analyze the XML interface using cURL, you need an administrator account with the function right "Public Spot XML interface" for the Public Spot.
  1. First download cURL and install or unpack it.
  2. Start cURL with the console command curl -X POST -H "Content-Type:text/xml" -d @filename http://user:pass@myhost/xmlauth/.

    The parameters have the following meaning:

    filename
    Path and name of the local XML file, e.g. the login request from the examples.
    user
    Username with the function right titled "Public Spot XML interface". The XML feature does not work without this authentication.
    pass
    User password.
    myhost
    IP address or DNS name of the device with the Public Spot XML interface
  3. With Telnet you can use the command trace # XML-Interface-PbSpot to activate a trace that verifies whether XML requests were successful or error messages were received.

www.lancom-systems.com

LANCOM Systems GmbH | A Rohde & Schwarz Company | Adenauerstr. 20/B2 | 52146 Wuerselen | Germany | E‑Mail info@lancom.de

LANCOM Logo