Protocol and Message Format
Clients communicate with the WSAPI server using HTTPS and data structures represented with
JSON. The supported JSON character encodings include the following formats:
• ASCII
• ISO-8859-1
• US-ASCII
• UTF-8
• UTF-16
• UTF-32
• UTF-16BE
• UTF-32BE
• UTF-16LE
• UTF-32LE
Client HTTP Headers
The HTTP requests that clients make to the API server include HTTP headers. Table 1 (page 12)
shows the required and optional HTTP headers. Optional headers, when present, must be one of
the values listed in the Values column. For example:
Accept: application/json; charset=UTF-8
Table 1 Client HTTP Headers Supported by the HP 3PAR WSAPI for Requests
RequiredValuesDescriptionHeader
NoOne of the following:The response format the
client can accept.
Accept
• application/json
• application/*
• application/json*
• application/<anything>+json
• */json
• */*
• */json*
• */<anything>+json
where * is literally an asterisk (*)
and <anything> is any string of
characters.
NoOne of the following:The response language the
client can accept.
Accept-Language
• *
• en
• en*
Yes, for requests
with a message
body.
Number of bytesThe length of the content in
bytes.
Content-Length
12 Accessing the WSAPI