HeadObject
    • PDF

    HeadObject

    • PDF

    Article Summary

    Overview

    Gets headers of the object by making a HEAD request with the specified object path. No parameters or payload is used for the operation.

    Request

    Syntax

    HEAD https://{endpoint}/{bucket-name}/{object-name} # path style
    HEAD https://{bucket-name}.{endpoint}/{object-name} # virtual host style
    

    Header

    Header NameRequiredTypeRestrictionsDescription
    rangeNostringReturns the size of the object in bytes within the specified range.
    if-matchNostring (ETag)Returns the object if the specified ETag string matches the source object.
    if-none-matchNostring (ETag)Returns the object if the specified ETag string does not match the source object.
    if-unmodified-sinceNostring (timestamp)Returns the object if the source object has not been modified since the specified date. It must be in the valid date format (e.g.: Wed, 30 Nov 2016 20:21:38 GMT).
    if-modified-sinceNostring (timestamp)Returns the object if the source object has been modified since the specified date. It must be in the valid date format (e.g.: Wed, 30 Nov 2016 20:21:38 GMT).

    Examples

    Request example

    HEAD /example-bucket/soldier-bee HTTP/1.1
    Authorization: {authorization-string}
    x-amz-date: 20160825T183244Z
    Host: kr.object.ncloudstorage.com
    

    Response example

    HTTP/1.1 200 OK
    Date: Thu, 25 Aug 2016 18:32:44 GMT
    Accept-Ranges: bytes
    x-amz-request-id: da214d69-1999-4461-a130-81ba33c484a6
    ETag: "37d4c94839ee181a2224d6242176c4b5"
    Content-Type: text/plain; charset=UTF-8
    Last-Modified: Thu, 25 Aug 2016 17:49:06 GMT
    Content-Length: 11
    

    Was this article helpful?

    What's Next
    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.