Content-Range: HTTP entity-header

Return the range of bytes selected from a WebSphere MQ message in the Content-Range header in an HTTP response.

Type Description
HTTP header name Content-Range
HTTP header type Entity-header
Valid in HTTP request message x-msg-require-headers
Returned value
String
Returns the lower limit, m and upper limit, n of the returned substring, and length of the whole message. For example,
m-n/length

Description

  • The Content-Range is only returned in the HTTP response when Content-Range is specified in a GET or DELETE request that contains an x-msg-range request header.
  • If x-msg-range is specified on a GET or DELETE request, the range of bytes specified in the Content-Range header are returned in the response. For example, if x-msg-range: 0-60 is used in a request for a message containing 100 bytes, the content-range header holds the string 0-60/100
  • An x-msg-range request also returns the content range in the x-msg-range header in the HTTP response.