Head analysis tokens data

In order to only receive the expected file size of the payload without downloading it, a request MAY be sent using the HEAD method instead of using GET as described in the previous step. The remote service responds with an empty JSON response body and the expected file size is returned as Content-Length HTTP response header.

Request endpoint

HEAD SERVER:PORT/api/tokens/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX/data

Response status

200

Request headers

Accept:application/vnd.api+json
Content-Type:application/vnd.api+json
Session-Key:SSSSSSSS-SSSS-SSSS-SSSS-SSSSSSSSSSSS

Response headers

Connection:keep-alive
Content-Length:124415
Date:Tue, 19 Mar 2024 12:57:48 GMT
Content-Type:application/json; charset=utf-8
Server:nginx/1.25.4

Request body

# intentionally blank

Response body

# intentionally blank

HTTPie example

$ http head SERVER:PORT/api/tokens/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX/data Accept:application/vnd.api+json Content-Type:application/vnd.api+json Session-Key:SSSSSSSS-SSSS-SSSS-SSSS-SSSSSSSSSSSS