<bdo id='29s7A'></bdo><ul id='29s7A'></ul>

<small id='29s7A'></small><noframes id='29s7A'>

      1. <tfoot id='29s7A'></tfoot>
        <i id='29s7A'><tr id='29s7A'><dt id='29s7A'><q id='29s7A'><span id='29s7A'><b id='29s7A'><form id='29s7A'><ins id='29s7A'></ins><ul id='29s7A'></ul><sub id='29s7A'></sub></form><legend id='29s7A'></legend><bdo id='29s7A'><pre id='29s7A'><center id='29s7A'></center></pre></bdo></b><th id='29s7A'></th></span></q></dt></tr></i><div id='29s7A'><tfoot id='29s7A'></tfoot><dl id='29s7A'><fieldset id='29s7A'></fieldset></dl></div>
        <legend id='29s7A'><style id='29s7A'><dir id='29s7A'><q id='29s7A'></q></dir></style></legend>
      2. 我可以使用 HTTP 范围标头“故意"加载部分文件吗?

        时间:2023-08-01

          <tfoot id='WKNyl'></tfoot>
        1. <small id='WKNyl'></small><noframes id='WKNyl'>

          <i id='WKNyl'><tr id='WKNyl'><dt id='WKNyl'><q id='WKNyl'><span id='WKNyl'><b id='WKNyl'><form id='WKNyl'><ins id='WKNyl'></ins><ul id='WKNyl'></ul><sub id='WKNyl'></sub></form><legend id='WKNyl'></legend><bdo id='WKNyl'><pre id='WKNyl'><center id='WKNyl'></center></pre></bdo></b><th id='WKNyl'></th></span></q></dt></tr></i><div id='WKNyl'><tfoot id='WKNyl'></tfoot><dl id='WKNyl'><fieldset id='WKNyl'></fieldset></dl></div>

            • <bdo id='WKNyl'></bdo><ul id='WKNyl'></ul>
                  <tbody id='WKNyl'></tbody>

                  <legend id='WKNyl'><style id='WKNyl'><dir id='WKNyl'><q id='WKNyl'></q></dir></style></legend>
                • 本文介绍了我可以使用 HTTP 范围标头“故意"加载部分文件吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我正在使用 HTTP 范围标头(规范).

                  I'm playing around with the HTTP range header (specs).

                  据我了解,我可以设置文件的字节范围 ala

                  From what I understand I can set byte ranges of files ala

                  0-199/2000
                  200-499/2000
                  500-799/2000
                  etc
                  

                  问题:
                  假设我只想访问文件的某些范围,是否可以指定这些范围,然后使用我收到的不完整"数据?我正在过滤一个大的日志文件,所以我很好奇这样的事情是否可行.

                  Question:
                  Say I only want to access certain ranges of a file, would it be possible to specify these ranges and then work with the "incomplete" data I received? I'm playing around with filtering a large log file, so I'm curious if something like this would work.

                  感谢您的意见!

                  推荐答案

                  你是对的,你在评论中发布的链接可能是最好的方法.因为你的问题听起来很有趣,所以我试了一下.你可能做到了,但这里有一个片段(可能会看到其他片段)

                  You are right the link which you posted in the comment would be probably the best approche. As your question sounded interesting i tried it out. You probably did it, but here is an snippet(for other that may come looking)

                  var xmlhttp=new XMLHttpRequest();
                  xmlhttp.open("GET","data.dat",false);
                  xmlhttp.setRequestHeader("Range", "bytes=100-200");
                  xmlhttp.send();
                  console.info(xmlhttp); //--> returns only the partial content
                  // Tested on Win7 with chrome 46+
                  

                  这篇关于我可以使用 HTTP 范围标头“故意"加载部分文件吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:application/x-javascript 和 text/javascript 内容类型之间的区别 下一篇:Ajax - 下载前获取文件大小

                  相关文章

                • <small id='iRjc3'></small><noframes id='iRjc3'>

                    <bdo id='iRjc3'></bdo><ul id='iRjc3'></ul>

                    <i id='iRjc3'><tr id='iRjc3'><dt id='iRjc3'><q id='iRjc3'><span id='iRjc3'><b id='iRjc3'><form id='iRjc3'><ins id='iRjc3'></ins><ul id='iRjc3'></ul><sub id='iRjc3'></sub></form><legend id='iRjc3'></legend><bdo id='iRjc3'><pre id='iRjc3'><center id='iRjc3'></center></pre></bdo></b><th id='iRjc3'></th></span></q></dt></tr></i><div id='iRjc3'><tfoot id='iRjc3'></tfoot><dl id='iRjc3'><fieldset id='iRjc3'></fieldset></dl></div>

                  1. <tfoot id='iRjc3'></tfoot>
                    <legend id='iRjc3'><style id='iRjc3'><dir id='iRjc3'><q id='iRjc3'></q></dir></style></legend>