Download Files

Last update:2020-07-06 14:00:18

Description

This interface allows you to download a specified resource file from the cloud storage platform.

Request Description

File downloads use the standard HTTP GET specification. See the [RFC2616 Standard] (http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.3) for details.

http://< domain>/< key>?< param1>=< value1>&< param2>=< value2>…

During a download, the standard HTTP Range request header can be used to support the multipart download and resuming upload from breakpoint.

List Item

Range: bytes=< first-byte>-< last-byte>

Response Description

Response of the download request should conform to the HTTP GET request specification. See the [RFC2616 Standard] (http://www.w3.org/Protocols/rfc2616/rfc2616-sec6.html#sec6) for details.

For an object append-uploaded, the following two headers will be added during response:

x-wcs-object-type: Appendable
x-next-append-position: < Content-Length int64>

The above two headers are used to identify the type of object and position of the next append.

Example

curl -v -o 1.png http://downloadDomain/1.png

Is the content of this document helpful to you?
Yes
I have suggestion
Submitted successfully! Thank you very much for your feedback, we will continue to strive to do better!