Questions tagged [http-range]
45 questions
2
votes
1 answer
Range request gets CORS error in Google Chrome with Google Cloud Storage
I am getting an error that I cannot find a fix for. I am sending a fetch of a CORS resource from Google Cloud Storage, but when I send WITHOUT the range request, it works. But if I add the range request, it fails. What can go…

dickyj
- 1,830
- 1
- 24
- 41
2
votes
1 answer
How best to respond to an open HTTP range request
I am currently going through the process of attempting to respond to HTTP Range Requests so that video can be streamed from our server and also satisfy Safari actually playing the video.
I do have the added complication that the video file is…

Bijington
- 3,661
- 5
- 35
- 52
2
votes
1 answer
FileStreamResult doesn't recognize multiple http ranges in Asp.Net Core 2.2
I have such simple endpoint:
[HttpGet]
public IActionResult GetFileDirect()
{
var path = ...; // path to the file
return File(System.IO.File.OpenRead(path), "text/plain", true);
}
Currently the content of the file:…

Farhad Jabiyev
- 26,014
- 8
- 72
- 98
2
votes
1 answer
How to stream range http requests from buffers in NodeJS
Testing http range requests in node, when we stream from
fs.createReadStream('index.html').pipe(res)
to a http res of a http server, the http client from node accepts it.
But, when I pipe a Stream of a Buffer, with:
const content =…

Paulo Coghi
- 13,724
- 14
- 68
- 90
2
votes
1 answer
HTTP range request for last byte
I'm a newbie and I've been studying the Range request for byte serving. I found that a server has to send a byte-range as this
Content-Range: bytes 734-1233/1234
for the last byte range. But how would a browser get the last byte of the file when…

Prajwal
- 3,930
- 5
- 24
- 50
2
votes
2 answers
Denial-of-Service Attacks Using Range
https://www.rfc-editor.org/rfc/rfc7233#section-6.1
:
6.1. Denial-of-Service Attacks Using Range
... Servers ought to ignore, coalesce, or reject
egregious range requests, such as requests for more than two
overlapping ranges or for many small…

algor
- 129
- 7
1
vote
0 answers
How to implement breakpoint continuation when multiple fetch API work at the same time
I need to request a large file in pieces and construct a new readablestream from the response.
At first, I only requested one piece of data at a time, and on this basis, I realized the breakpoint continuation to deal with the instability of the…

Yue Zhao
- 61
- 3
1
vote
0 answers
HLS. Decrypt segments with EXT-X-BYTERANGE
Let's say we have HLS segments encrypted with AES-128 method. But segments data restricted with EXT-X-BYTERANGE. Could you please advice me how I can decrypt this?
Can I download this part of data with HTTP range request, and then decrypt this data…

Валентин Никин
- 357
- 2
- 11
1
vote
1 answer
HTML5 video skips ranges after 32,768
I am exploring Http Range requests and video streaming with Java. I wanted to create a controller which streams a video to a tag.
For some reason, after end range of 32768, the browser sends request for start of 100237312.
Here are a slice of the…

Vallerious
- 570
- 6
- 13
1
vote
0 answers
Get video timestamp from a given byte range - PHP
I'm serving some videos. Basically the user uses VLC to play a https stream, the request hits my server then I look at the HTTP-RANGE request and provide the asked bytes. I would like to save the user progression timestamp in the videos. I tried to…

Nathoufresh
- 11
- 2
1
vote
1 answer
What error do we return when parsing an invalid HTTP `Range: ...` header?
I'm working on a project which manually parses the Range: ... field. On an error, it always returns a 416 HTTP error (Range Not Satisfiable).
It seems to me that in most cases, like where the range is not bytes=... or a number is invalid, the HTTP…

Alexis Wilke
- 19,179
- 10
- 84
- 156
1
vote
1 answer
express.js Check if partial range download finished
I am using res.download in express.js on my server to give a file for download. If I support partial range in my server callback function of res.download will be called several times. How can I know when download is completely…

Shahin Shemshian
- 356
- 1
- 11
1
vote
0 answers
HTTP range, streaming, music and audio
I have a website which I use to stream audio files.
Mainly, MP3 & OGG.
Since few months, I handle myself (PHP) the steaming part (before it was apache2). First I do a normal 200 OK response with sliced binary response of my multimedia audio files…

vekah
- 980
- 3
- 13
- 31
1
vote
1 answer
Not getting Range header
I am trying to resume an upload from google drive, I have the id of the file when I close the connection I make this session after the Internet is connected again:
var request = (HttpWebRequest)WebRequest.Create(fileUri);
request.Method…

Borislav Nikolaev
- 69
- 5
1
vote
1 answer
Find bytes range of webm video for specified segment
I have a Video in webm format (like video.webm the duration is 60 seconds)
I want to get specified segment of video (i.e split video) with http header range (Range: 100-200).
In an other word :
I want to get a section of video (e.g. from second 4 to…

M2sh
- 741
- 1
- 11
- 23