All appliance service commands that send data use the JSON data format and require the following header values:
Accept: application/json Content-Type: application/json
Response Headers include the following information:
Date: Tue, 23 Jul 2013 13:07:37 GMT X-Zfs-Sa-Appliance-Api: 1.0 Content-Type: application/json Content-Length: 357
For list results, the content length may not be known before data is sent back. If the content length is not supplied, the client must read the response body until EOF to read all the returned data.