POST /ObjectName?append&position=*position* HTTP/1.1Host: <BucketName-APPID>.cos.<Region>.myqcloud.comContent-Length: sizeContent-Type: ContentTypeDate: GMT DateAuthorization: Auth String
名称 | 描述 | 类型 | 是否必选 |
Content-Length | RFC 2616 中定义的 HTTP 请求内容长度(字节) | String | 是 |
节点名称(关键字) | 描述 | 类型 | 是否必选 |
Cache-Control | RFC 2616 中定义的缓存策略,将作为 Object 元数据返回 | String | 否 |
Content-Disposition | RFC 2616 中定义的文件名称,将作为 Object 元数据返回 | String | 否 |
Content-Encoding | RFC 2616 中定义的编码格式,将作为 Object 元数据返回 | String | 否 |
Content-MD5 | RFC 1864中定义的请求体内容的16字节二进制 MD5 哈希值的 Base64 编码形式,用于完整性检查,验证请求体在传输过程中是否发生变化,最终的取值长度应为24个字符,请注意在编写代码时使用正确的方法和参数,例如 ZzD3iDJdrMAAb00lgLLeig== | String | 否 |
Content-Type | RFC 2616 中定义的内容类型(MIME),将作为 Object 元数据返回 | String | 否 |
Expect | 当使用 Expect: 100-continue 时,在收到服务端确认后,才会发送请求内容 | String | 否 |
Expires | RFC 2616 中定义的过期时间,将作为 Object 元数据返回 | String | 否 |
x-cos-meta- * | 允许用户自定义的头部信息,将作为 Object 元数据返回,大小限制2K | String | 否 |
名称 | 描述 | 类型 | 是否必选 |
x-cos-acl | 定义 Object 的 ACL 属性,有效值为 private,public-read-write,public-read 默认值为 private | String | 否 |
x-cos-grant-read | 赋予被授权者读的权限,格式: x-cos-grant-read: id=" ",id=" " 当需要给子账号授权时, id="qcs::cam::uin/<OwnerUin>:uin/<SubUin>" 当需要给主账号授权时, id="qcs::cam::uin/<OwnerUin>:uin/<OwnerUin>" | String | 否 |
x-cos-grant-write | 赋予被授权者写的权限,格式: x-cos-grant-write: id=" ",id=" " 当需要给子账号授权时, id="qcs::cam::uin/<OwnerUin>:uin/<SubUin>" 当需要给主账号授权时, id="qcs::cam::uin/<OwnerUin>:uin/<OwnerUin>" | String | 否 |
x-cos-grant-full-control | 赋予被授权者读写权限,格式: x-cos-grant-full-control: id=" ",id=" " 当需要给子账号授权时, id="qcs::cam::uin/<OwnerUin>:uin/<SubUin>" 当需要给主账号授权时, id="qcs::cam::uin/<OwnerUin>:uin/<OwnerUin>" | String | 否 |
参数名称 | 描述 | 类型 | 是否必选 |
position | 追加操作的起始点,单位为字节。首次追加则设置 Position=0,后续追加则设置 Position 为当前 Object 的 content-length | Int | 是 |
节点名称(关键字) | 描述 | 类型 |
x-cos-next-append-position | 下一次追加操作的起始点,单位:字节 | String |
ETag | 文件的唯一标识 | String |
POST /coss3/app?append&position=0 HTTP/1.1Host: examplebucket-1250000000.cos.ap-beijing.myqcloud.comDate: Tue, 16 Jan 2016 21:32:00 GMTAuthorization: q-sign-algorithm=sha1&q-ak=AKIDDNMEycgLRPI2axw9xa2Hhx87wZ3M****&q-sign-time=1484208848;32557104848&q-key-time=1484208848;32557104848&q-header-list=host&q-url-param-list=append;position&q-signature=855fe6b833fadf20570f7f650e2120e17ce8****Content-Length: 4096[Object]
HTTP/1.1 200 OKContent-Type: application/xmlContent-Length: 0Connection: keep-aliveDate: Tue, 16 Jan 2016 21:32:00 GMTETag: 1ce5b469b7d6600ecc2fd112e570917bServer: tencent-cosx-cos-content-sha1: 1ceaf73df40e531df3bfb26b4fb7cd95fb7bff1dx-cos-next-append-position: 4096x-cos-request-id: NTg3NzNhZGZfMmM4OGY3X2I2Zl8x****
本页内容是否解决了您的问题?