Connection: keep-alive
Transfer-Encoding: chunked
Content-type: application/xml
<?xml version="1.0" encoding="ISO-8859-1"
?><devicectl><download><settings><dlmode>Always</dlmode><dlhttpchunk>Enabled</dlhttpchunk></settings></download></devicectl>
Input (JSON case):
curl -i -k -H "X-SESSION-ID: $token" "http://192.168.0.1/ws/v2/device_ctl/download&js"
Expected output (Full HTTP response must be checked for 200 OK):
HTTP/1.1 200 OK
Date: Mon, 25 Sep 2017 13:39:30 GMT
Server: Hiawatha v10.3
Connection: keep-alive
Transfer-Encoding: chunked
Content-type: application/json
{
"devicectl": {
"download": {
"settings": {
"dlmode": "Always",
"dlhttpchunk": "Enabled"
}
}
}
}
Logic for interpreting the command response:
If the HTTP response is 200 (OK):
{
the client software must check the dlhttpchunk value.
if the dlhttpchunk value is Enabled
{
the client code may use the Chunky CDT Upload command.
}
else
{
the client software must use the Legacy CDT Upload command.
}
}
else
{
the client software must use the Legacy CDT Upload command.
}
Upload Software License File Command
Table 10: Command Details
Description
Command Detail
-F cdtfile=@"lic_file_path/lic_file_name"
"https://192.168.0.1/cdt_upload.html"
Command URL
Software license files can be uploaded to the unit, the same as a
CDT file.
Command Information
POST
HTTP Method
Write
Access Type
Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
21
API Definitions
Upload Software License File Command