Retrieving part of an object example

Here's a sample GET request that retrieves the first hundred thousand bytes of the object named quarterly_rpts/Q4_2012.ppt in the finance container.

Request with curl command line

curl -v -X GET http://api.hcp.example.com/swift/v1/AUTH_6b6884ebb6f441cfbb7e740f6a927c9e/finance/quarterly_rpts/Q4_2012.ppt -H "X-Auth-Token: dc5efec8f546455eac974e7bbfd0dd87" -H "Range: bytes=0-99999"

Request headers

GET /swift/v1/AUTH_6b6884ebb6f441cfbb7e740f6a927c9e/finance/quarterly_rpts/Q4_2012.ppt HTTP/1.1
X-Auth-Token: dc5efec8f546455eac974e7bbfd0dd87
Range: bytes=0-99999

Response headers

HTTP/1.1 403 Forbidden
Date: Fri, 24 Oct 2014 14:03:39 GMT
Content-Length: 0
Server: Jetty(7.6.0.v20120127)
HTTP/1.1 200 OK

Date: Mon, 03 Nov 2014 14:54:48 GMT
Server: HCP V7.1.0.353
X-Trans-Id: 9cb4f3af-2e8f-498c-9a9a-633b414c99a0
Accept-Ranges: bytes
X-Static-Large-Object: false
ETag: d41d8cd98f00b204e9800998ecf8427e
Last-Modified: Wed, 29 Oct 2014 13:40:34 GMT
Content-Length: 100000
Cache-Control: no-cache,no-store
Pragma: no-cache
Content-Type: application/octet-stream
Content-Disposition: attachment; filename="directory";

Trademark and LegalDisclaimer

© 2016 Hitachi Data Systems Corporation. All rights reserved.