Last updated

cURL request

You can use the command line tool cURL to send requests to the API.

Sample request

curl	-H "Connection: keep-alive" \
	-H "Content-Length: XXX" \
	-H "Cache-Control: no-cache" \
	-H "User-Agent: Provider User-Agent name" \
	-H "Content-Type: text/xml;charset=UTF-8" \
	-H "Accept: */*" \
	-H "Accept-Encoding: gzip,deflate" \
	-H "Authorization: Basic XxXxXxXxXxXx=" \
	--http1.1 \
	-d @messagebody.xml -X POST \ 'https://(secure){ota or xml}/{API name}'

Here, XxXxXxXxXxXx is the machine username and password provided by, combined into a string username:password which is then encoded using the RFC2045-MIME variant of Base64 (though not limited to 76 characters per line).

Replace the endpoint name according to the specification of the API to be called.