Output CompressionNEW!

The ExtremeXOS 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/1.3.3.7 (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
http://10.68.5.80/rest/restconf/data/openconfig_vlan:vlans
\
-H 'Content-Type: application/json' \
-H 'Cookie: x-authtoken=
eyJhbGciOiJIUzI1NiIsImV4cCI6MTYyODU1NjUwMSwiaWF0IjoxNjI4NDcwM
TAxfQ.eyJ1c2VybmFtZSI6ImFkbWluIiwiYWNjZXNzX2xldmVsIjoiYWRtaW4ifQ.x1
nEONl-jIbcrjNuTAUnS0y-a-_gtMsHdMQEMur09JY' \
-H 'Accept-Encoding: gzip, deflate' \
| gunzip –