Post Reply 
[Req]>>file size limit!!!
Sep. 13, 2013, 11:26 AM
Post: #10
RE: [Req]>>file size limit!!!
(Sep. 13, 2013 02:53 AM)JJoe Wrote:  
(Sep. 12, 2013 04:28 PM)caspereg Wrote:  i tried to create a Range header
the problem is how to match the lower and the upper ranges
Range: bytes=low range-high range

That is not trivial but could be possible. Content-Range header provides info that might be used to create the next Range header. A blocklist could be used to create pseudo global variables.

My understanding of typical Range use: browser request is incomplete then next request browser may use Range to get more.

If I add

Code:
[HTTP headers]
In = FALSE
Out = TRUE
Key = "Range: test"
Replace = "bytes=0-500"

, the server returns

Quote:HTTP/1.1 206 Partial Content
Content-Type: image/jpeg
Content-Length: 501
Connection: keep-alive
Server: nginx
Date: Fri, 05 Apr 2013 00:49:42 GMT
Cache-Control: no-store, no-cache, max-age=0
Accept-Ranges: bytes
ETag: "2305750091"
Last-Modified: Wed, 06 Feb 2013 12:32:12 GMT
Content-Range: bytes 0-500/5736
Pragma: no-cache

as expected but the browser does not request the rest. You would need the browser to ask for more.
Assuming that the browser can be made to ask for more, would it know what to do with the pieces?

when i used the addon i notice the log
downloader (downloadThemAll) request the first 5MB
Range: bytes= 0-5242880
then the second 5MB and so on till the file be downloaded
=====
it modify the range to the allowed range
by this function
PHP Code:
// if the range header is set by the downloadThemAll
var range httpChannel.getRequestHeader('Range');
lowRange range.substring(6,range.length-1);
var 
upRange parseInt(lowRange) + download_unlimited.step;
//change it to the allowed range
httpChannel.setRequestHeader('Range','bytes='+lowRange+'-'+upRange,false);
range httpChannel.getRequestHeader('Range'); 
it would be no problem if the Range header is made to do the same as this function do.
Add Thank You Quote this message in a reply
Post Reply 


Messages In This Thread
[Req]>>file size limit!!! - caspereg - Sep. 05, 2013, 01:11 AM
RE: [Req]>>file size limit!!! - ProxRocks - Sep. 05, 2013, 10:32 AM
RE: [Req]>>file size limit!!! - ProxRocks - Sep. 05, 2013, 01:28 PM
RE: [Req]>>file size limit!!! - caspereg - Sep. 06, 2013, 06:07 AM
RE: [Req]>>file size limit!!! - caspereg - Sep. 06, 2013, 07:45 AM
RE: [Req]>>file size limit!!! - JJoe - Sep. 11, 2013, 09:11 PM
RE: [Req]>>file size limit!!! - caspereg - Sep. 12, 2013, 04:28 PM
RE: [Req]>>file size limit!!! - JJoe - Sep. 13, 2013, 02:53 AM
RE: [Req]>>file size limit!!! - caspereg - Sep. 13, 2013 11:26 AM
RE: [Req]>>file size limit!!! - JJoe - Sep. 14, 2013, 12:30 AM
RE: [Req]>>file size limit!!! - caspereg - Sep. 14, 2013, 11:32 PM
RE: [Req]>>file size limit!!! - JJoe - Sep. 15, 2013, 04:37 AM
RE: [Req]>>file size limit!!! - caspereg - Sep. 15, 2013, 09:05 AM
RE: [Req]>>file size limit!!! - ProxRocks - Sep. 06, 2013, 01:31 PM
RE: [Req]>>file size limit!!! - ProxRocks - Sep. 13, 2013, 07:20 PM
RE: [Req]>>file size limit!!! - caspereg - Sep. 13, 2013, 09:01 PM

Forum Jump: