获取Bucket op响应+ AWS S3 + Content-Length标头

时间:2016-04-10 03:17:23

标签: amazon-s3 aws-sdk

只是想知道GET Bucket op响应是否跳过了Content-Length标头。我测试了这个,我看到GET Bucket op的响应中没有Content-Length头。

如果响应不包含Content-Length标头,那么阅读响应的应用程序如何理解响应主体的结束位置?

请求 - 响应代码段:

    GET /?max-keys=1000&prefix&delimiter=%2F HTTP/1.1
    Date: Sat, 09 Apr 2016 18:27:23 GMT
    x-amz-request-payer: requester
    Authorization: AWS AKIAIP3KAUILC4GG7A2A:UG3bGvIjayrxrkxEX1mfrvETy/M=
    Connection: Keep-Alive
    User-Agent: Cyberduck/4.9.19632 (Mac OS X/10.10.5) (x86_64)

    HTTP/1.1 200 OK
    x-amz-id-2: yg76HSq5j0mi0oR6dXF8ZfGq722kHBWiMQmNvXPqiLxr1S4nGj5GVn1RVrPQrOUfNynxxaMSYEY=
    x-amz-request-id: B4468E68E10B6AEF
    Date: Sat, 09 Apr 2016 18:27:25 GMT
    x-amz-bucket-region: us-east-1
    Content-Type: application/xml
    Server: AmazonS3
    Connection: close

    <?xml version="1.0" encoding="UTF-8"?>
    <ListBucketResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/">......</ListBucketResult>

谢谢!

0 个答案:

没有答案