Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 669
Allan Xu Avatar asked Apr 20 '16 01:04

Allan Xu


2 Answers

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.

like image 89
Zhaoxing Lu Avatar answered Sep 28 '22 13:09

Zhaoxing Lu


From the Get Blob Properties page,

It does not return the content of the blob.

I believe that's the difference between these two

like image 38
Kai Zhao Avatar answered Sep 28 '22 13:09

Kai Zhao