Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table of Contents

This section provides general information about the SCSP READ method that applies to both named and unnamed objects.

...

Range

Returns

0-499

First 500 bytes of the object

500-999

The second 500 bytes

-500

Last 500 bytes

0-499, 500-999

First 1000 bytes

Info

Note

Range headers are not compatible with either integrity seals or the ContentMD5 header because both require a hash of the object's entire contents. The connection is closed as if the integrity seal or the Content-MD5 was invalid if the range is not set to a value greater than or equal to the size of the object.

READ requests that include invalid Range headers (for example, ranges that do not exist existing in the object) cause Swarm to respond with a 416 (Range not satisfiable) error. A successful response to a READ that includes one or more Range headers is 206 (Partial content). Data in the requested ranges are included in the 206 response.

...