Questions tagged [http-range]

45 questions
1
vote
2 answers

AES 128 bit CTR partial file decryption with PHP

This is not a duplicate post because I have looked everywhere and I can't find an answer to this. Its about partial decryption. Not full. I have a good knowledge of PHP but little knowledge about cryptography. I know the key and the iv of the…
user3847106
  • 101
  • 3
  • 11
1
vote
0 answers

How to write file chunk to disk as soon as the range of bytes are completed by a thread

continuing from this: https://codereview.stackexchange.com/questions/ I discovered that holding bytes of data in a list may be expensive and may slow down system performance, so I think it is better to write the data to disk as soon as the range of…
Ciasto piekarz
  • 7,853
  • 18
  • 101
  • 197
1
vote
3 answers

trying to split the file download buffer to into separate threads

I am trying to download the buffer of file into 5 threads but it seems like it's getting garbled. from numpy import arange import requests from threading import Thread import urllib2 url = 'http://pymotw.com/2/urllib/index.html' sizeInBytes = r =…
Ciasto piekarz
  • 7,853
  • 18
  • 101
  • 197
0
votes
1 answer

How to get list of files in an archive file without download

I try to get list of file names in large archive files (zip, 7z, tar, rar etc.) located in remote server. I avoid to download files due to network cost. An alternative is to use an HTTP range request (1, 2, 3); however, each archive file type has a…
Alper M.
  • 143
  • 3
  • 8
0
votes
1 answer

Stream audio from S3 to client through REST API

Description I am building a music streaming SPA using NEXT.js. Audio files are stored on AWS S3. The goal is to stream audio file from S3 to client through REST so that authentication is possible, and to "hide" the AWS endpoints. Issue When…
akuli4
  • 11
  • 3
0
votes
1 answer

How to download via TIdHTTP parts from multiple servers?

Currently I use TIdHTTP in Delphi 11 to automatically download updates of my software. My installer is relatively big (about 100 MB) and the download takes a couple of minutes or even more. Supposing I have the same installation file on different…
delphirules
  • 6,443
  • 17
  • 59
  • 108
0
votes
0 answers

Partial Request made for a Google Drive file does not return the expected content

I am working on a download manager. I tried to download a content from Google Drive. I used AddRange to get the file partially but despite Range:60000000-61000000 returns the correct size, the Range:600000000-610000000 returns -1. It doesnt overflow…
Ali Tor
  • 2,772
  • 2
  • 27
  • 58
0
votes
0 answers

HTTP_RANGE is not working on video seek bar

I am trying to stream a mp4 file using ASP/VBscript. I use ADODB.Stream to lunch the file and some codes to detect that which range is requested by user. The video is being loaded successfully but by clicking on seek bar nothing happens. I have set…
Ali Sheikhpour
  • 10,475
  • 5
  • 41
  • 82
0
votes
0 answers

HTTP-Range request pending issue

My problem is very strange. I've written a simple audio player application with javascript and php. I have an Audio element on JS and when i have to load a song i use the link /player.php?token... to take the song. Server side i have a simple script…
liuk997
  • 29
  • 3
  • 7
0
votes
0 answers

HTTP RANGE when a target file is being written

I want to organize a live video streaming via HTTP RANGE (HLS isn't suitable for my purposes) from files on my streaming server are recorded at the time of the request. On the server side I use the following header: header('HTTP/1.1 206 Partial…
Ivan Kolesnikov
  • 1,787
  • 1
  • 29
  • 45
0
votes
1 answer

Http multirange requests slow

I have 8gb file on server and I want to download 1.5 gb from this file using http multirange requests. I use curl. All requests are distributed uniformly on file except first one, that contain big 500mb range (there are 161 requests in total). I…
brachistochron
  • 321
  • 1
  • 11
0
votes
1 answer

HTTP Content Negotiation and the Range header

How does the Range header work with Content Negotiation? Let me explain, but first let's all agree to the following: HTTP is a stateless protocol. When an HTTP Server is able to send multiple representation of a single resource, content negotiation…
user1040049
0
votes
1 answer

Can't add Range header in RestSharp request

I execute following request using RestSharp var request = new RestRequest("downloadDocument", Method.GET); var id = 288148748; request.AddParameter("id", id); request.AddHeader("Custom-Header", "blablabla"); request.AddHeader("Accept",…
myshon
  • 146
  • 7
0
votes
0 answers

how can I reuse requests module to split the range header as done using urllib2

I have a bit of unrefactored code, in which if the download of a file is requested in a single chunk the I use requests module to download but since I couldn't figure out how to split the chunks if requested split into ranges(irange in this case)…
Ciasto piekarz
  • 7,853
  • 18
  • 101
  • 197
0
votes
2 answers

Can't get Java's GZIPInputStream to read "gzip" response from server when using "Range" header

I've got a bit of code I've been using for a while to fetch data from a web server and a few months ago, I added compression support which seems to be working well for "regular" HTTP responses where the whole document is contained in the response.…
Christopher Schultz
  • 20,221
  • 9
  • 60
  • 77
1 2
3