Output CompressionNEW!

The RESTCONF API supports the gzip-output compression scheme. When interfacing into RESTCONF through scripts, you can use Accept-Encoding to specify the gzip compression data.

Sample request from client

GET /encrypted-area HTTP/1.1
Host: www.example.com
Accept-Encoding: gzip, deflate

Sample response data from server

HTTP/1.1 200 OK
Date: mon, 26 June 2016 22:38:34 GMT
Server: Apache/ (Unix) (Red-Hat/Linux)
Last-Modified: Wed, 08 Jan 2003 23:11:55 GMT
Accept-Ranges: bytes
Content-Length: 438
Connection: close
Content-Type: text/html; charset=UTF-8
Content-Encoding: gzip

Sample request from client using 'curl'

curl -X GET
-H 'Content-Type: application/json' \
-H 'Cookie: x-authtoken=
nEONl-jIbcrjNuTAUnS0y-a-_gtMsHdMQEMur09JY' \
-H 'Accept-Encoding: gzip, deflate' \
| gunzip –