Skip to content

Latest commit

 

History

History
12 lines (9 loc) · 1.04 KB

CommonRequestHeaders.rst

File metadata and controls

12 lines (9 loc) · 1.04 KB

Common Request Headers

The following describe common HTTP request headers as used in the HDF REST API:

  • Request line: The first line of the request, the format is of the form HTTP verb (GET, PUT, DELETE, or POST) followed by the path to the resource (e.g. /group/<uuid>. Some operations take one or more query parameters (see relevant documentation)
  • Accept: Specifies the media type that is acceptable for the response. Valid values are "application/json", and "/. In addition, GET/PUT/POST Value (see :doc:`DatasetOps/GET_Value`, :doc:`DatasetOps/PUT_Value`, :doc:`DatasetOps/POST_Value`) support the value "application/octet-stream"
  • Authorization: A string that provides the requester's credentials for the request. See :doc:`Authorization`
  • Host: the domain (i.e. related collection of groups, datasets, and attributes) that the request should apply to

Note: the host header can also be provided as a query parameter. Example: https://data.hdfgroup.org:7258/?host=tall.test.data.hdfgroup.org