lch.com_个人页

个人头像照片 lch.com
0
2
0

个人介绍

暂无个人介绍

擅长的技术

获得更多能力
通用技术能力:

暂时未有相关通用技术能力~

云产品技术能力:

暂时未有相关云产品技术能力~

阿里云技能认证

详细说明
暂无更多信息
正在加载, 请稍后...
暂无更多信息
  • 回答了问题 2012-10-20

    求助,用libcurl使用Range不起作用

    Re求助,用libcurl使用Range不起作用

    -------------------------

    Re求助,用libcurl使用Range不起作用
    > GET /welcome2myspace/oss_test.txt HTTP/1.1
    Host: storage.aliyun.com
    Accept: */*
    Range:bytes=2-6
    Authorization: OSS abysmn89uz488l1dfycon3qa:9Ec/1r8xqgymrDoA37jjdX7 APc=
    Date:Sun, 21 Oct 2012 05:28:41 GMT

    * additional stuff not fine transfer.c:1037: 0 0
    * HTTP 1.1 or later with persistent connection, pipelining supported
    < HTTP/1.1 200 OK
    < Date: Sun, 21 Oct 2012 05:28:46 GMT
    < Content-Type: text/html
    < Connection: close
    < Content-Disposition: attachment; filename=oss_test.txt
    < Content-Length: 6
    < ETag: "B1946AC92492D2347C6235B4D2611184"
    < Last-Modified: Sat, 13 Oct 2012 09:23:47 GMT
    < Server: AliyunOSS
    < x-oss-request-id: 5083880E5037C20E3CB86320
    <
    * Closing connection #0

    文档上应该返回这样的吧
    HTTP/1.1 206 Partial Content
    x-oss-request-id: 28f6508f-15ea-8224-234e-c0ce40734b89
    Date: Fri, 28 Feb 2012 05:38:42 GMT
    Last-Modified: Fri, 24 Feb 2012 06:07:48 GMT
    ETag: "5B3C1A2E053D763E1B002CC607C5A0FE "
    Accept-Ranges: bytes
    Content-Range: bytes 100-900/344606
    Content-Type: image/jpg
    Content-Length: 801
    Server: AliyunOSS

    -------------------------

    Re求助,用libcurl使用Range不起作用
    我错了,文件的最后一段的值应该是content-length-1才对
    > GET /welcome2myspace/oss_test.txt HTTP/1.1
    Host: storage.aliyun.com
    Range:bytes=2-5
    Authorization: OSS abysmn89uz488l1dfycon3qa:s5sm9SRp8CNZtzWF 9Elb3O8PPA=
    Date:Mon, 22 Oct 2012 10:11:30 GMT

    * additional stuff not fine transfer.c:1037: 0 0
    * HTTP 1.1 or later with persistent connection, pipelining supported
    < HTTP/1.1 206 Partial Content
    < Date: Mon, 22 Oct 2012 10:11:30 GMT
    < Content-Type: text/html
    < Connection: close
    < Accept-Ranges: bytes
    < Content-Disposition: attachment; filename=oss_test.txt
    < Content-Length: 4
    < Content-Range: bytes 2-5/6
    < ETag: "B1946AC92492D2347C6235B4D2611184"
    < Last-Modified: Sat, 13 Oct 2012 09:23:47 GMT
    < Server: AliyunOSS
    < x-oss-request-id: 50851BD28D954A2B79EF0C06
    <
    * Closing connection #0
    踩0 评论0
  • 提交了问题 2012-10-17

    求助,用libcurl使用Range不起作用

正在加载, 请稍后...
滑动查看更多
正在加载, 请稍后...
暂无更多信息