Allan Xu
Allan Xu

Reputation: 9368

Azure blob storage REST API: Why "Get Blob Properties" and "Get Blob" requests are the same?

Looking at the MSDN documentation for Get Blob and Get Blob Properties. Both requests are looking the same

"https://myaccount.blob.core.windows.net/mycontainer/myblob"

Get Properties: https://msdn.microsoft.com/en-us/library/dd179440.aspx

Get Blob Properties: https://msdn.microsoft.com/en-us/library/dd179394.aspx

I must be missing a point?

Upvotes: 6

Views: 2390

Answers (2)

Zhaoxing Lu
Zhaoxing Lu

Reputation: 6467

The HTTP method of "Get Blob" is GET, but the HTTP method of "Get Blob Properties" is HEAD.

The response of "Get Blob" is blob properties (in response headers) and blob content (in response body), but the response of "Get Blob Properties" only contains blob properties in headers.

Upvotes: 7

Kai Zhao
Kai Zhao

Reputation: 1025

From the Get Blob Properties page,

It does not return the content of the blob.

I believe that's the difference between these two

Upvotes: 1

Related Questions