javascript - Can I use the HTTP range header to load partial files "on purpose"? -


i'm playing around http range header (specs).

from understand can set byte ranges of files ala

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

question:
want access ranges of file, possible specify these ranges , work "incomplete" data received? i'm playing around filtering large log file, i'm curious if work.

thanks inputs!

you right link posted in comment best approche. question sounded interesting tried out. did it, here snippet(for other 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 partial content // tested on win7 chrome 46+ 

Comments

Popular posts from this blog

ruby - Trying to change last to "x"s to 23 -

jquery - Clone last and append item to closest class -

c - Unrecognised emulation mode: elf_i386 on MinGW32 -