Use Cases
You can directly initiate a request to download objects in COS. The following features are supported:
Download a complete object: Download the complete object data by initiating a GET request.
Download a part of an object: Use the Range request header in a GET request to retrieve a specific range of bytes of an object. Retrieving multiple ranges is not supported.
The object's metadata will be returned along with the object's content as an HTTP response header. The GET request supports overwriting certain metadata values in the response using URL parameters.
For example, the response value of Content-Disposition can be overwritten. Response headers that support modification include:
Content-Type
Content-Language
Expires
Cache-Control
Content-Disposition
Content-Encoding
How to Use
Using COS console
Download an object in the COS console. For more information, see Downloading Objects in Console Guide. Using the REST API
Use the REST API to initiate an object download request. For more information, see GET Object. Using SDKs
Directly call the object download method in the SDK. For more information, see the SDK documentation for the corresponding programming language below:
Was this page helpful?