Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Amazon S3 multiple byte range request

Amazon supports a single byte range request

curl -I --range 100-599 http://s3.amazonaws.com/1000genomes/data/NA06984/alignment/NA06984.chrom11.ILLUMINA.bwa.CEU.low_coverage.20111114.bam

Response header from the above request correctly shows Content-Length: 500

However if you add another range

curl -I --range 100-599,700-800 http://s3.amazonaws.com/1000genomes/data/NA06984/alignment/NA06984.chrom11.ILLUMINA.bwa.CEU.low_coverage.20111114.bam

It ignores the range request and gives the content length of the whole file Content-Length: 1274819234

Does anyone know if amazon s3 supports multiple byte range requests? Or a workaround?

like image 288
Chmille4 Avatar asked Nov 02 '22 13:11

Chmille4


1 Answers

According to the doc as well as api still Amazon S3 does not supports multiple byte range requests. Can you tell us the use-case ?

like image 148
Tej Kiran Avatar answered Nov 11 '22 09:11

Tej Kiran