Missed $_SERVER['HTTP_CONTENT_RANGE'] variable

David

Active Member
#2
I tested the example page, it seems it is handled correctly.

Code:
root@david-ubuntu-14:/usr/local/lsws# curl -i -H "content-range: 0-" http://127.0.0.1:8088/phpinfo.php  | grep HTTP_CONTENT_RANGE
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 50740    0 50740    0     0  22.1M      0 --:--:-- --:--:-- --:--:-- 24.1M
<tr><td class="e">_SERVER["HTTP_CONTENT_RANGE"]</td><td class="v">0-</td></tr>
root@david-ubuntu-14:/usr/local/lsws#
 

David

Active Member
#5
Code:
root@david-ubuntu-14:/usr/local/lsws# curl -k -i -H "content-range: 0-" https://127.0.0.1:8089/phpinfo.php  | grep HTTP_CONTENT_RANGE
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 51283  100 51283    0     0  5124k      0 --:--:-- --:--:-- --:--:-- 5564k
<tr><td class="e">_SERVER["HTTP_CONTENT_RANGE"]</td><td class="v">0-</td></tr>
root@david-ubuntu-14:/usr/local/lsws#
root@david-ubuntu-14:/usr/local/lsws# curl -i -H "content-range: 0-" http://127.0.0.1:8088/phpinfo.php  | grep HTTP_CONTENT_RANGE
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 50740  100 50740    0     0  14.5M      0 --:--:-- --:--:-- --:--:-- 16.1M
<tr><td class="e">_SERVER["HTTP_CONTENT_RANGE"]</td><td class="v">0-</td></tr>
root@david-ubuntu-14:/usr/local/lsws#
Https is good. I am testing 1.7.4, the next releasing version.
 
#6
I dont see any variable via curl nor via http nor via https. I use 1.6.15. I'll try upgrade to new version.

Code:
vagrant@homestead:~$ curl -k -i -H "content-range: 0-" http://mydomain.com/phpinfo.php  | grep HTTP_CONTENT_RANGE
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 96476    0 96476    0     0   506k      0 --:--:-- --:--:-- --:--:--  506k
vagrant@homestead:~$ curl -k -i -H "content-range: 0-" https://mydomain.com/phpinfo.php  | grep HTTP_CONTENT_RANGE
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 95371  100 95371    0     0   394k      0 --:--:-- --:--:-- --:--:--  394k
 
#7
Still the same issue after running update command.
Code:
/usr/local/lsws/admin/misc/lsup.sh -b -e 1.7.4
But now I can see header via http:
Code:
vagrant@homestead:~$ curl -k -i -H "content-range: 0-" http://lsws.art-gifts.com.ua/phpinfo.php  | grep HTTP_CONTENT_RANGE
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 94972  100 94972    0     0  14526      <tr><td class="e">$_SERVER['HTTP_CONTENT_RANGE']</td><td class="v">0-</td></tr>
0  0:00:06  0:00:06 --:--:-- 19350
vagrant@homestead:~$ curl -k -i -H "content-range: 0-" https://lsws.art-gifts.com.ua/phpinfo.php  | grep HTTP_CONTENT_RANGE
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 95370  100 95370    0     0   264k      0 --:--:-- --:--:-- --:--:--  263k
 
Last edited:

David

Active Member
#8
Code:
root@david-ubuntu-14:~# curl --http1.1  -k -i -H "content-range: 50000-" https://SERVER/phpinfo.php?21fgfg | grep HTTP_CONTENT_RANGE
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 97012    0 97012    0     0   162k      0 --:--:-- --:--:-- --:--:--  162k
root@david-ubuntu-14:~# curl --http1.1  -k -i -H "content-range: 50000-" https://SERVER/phpinfo.php?21fgfgd | grep HTTP_CONTENT_RANGE
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 95695    0 95695    0     0   161k      0 --:--:-- --:--:-- --:--:--  161k
<tr><td class="e">$_SERVER['HTTP_CONTENT_RANGE']</td><td class="v">50000-</td></tr>
root@david-ubuntu-14:~#
root@david-ubuntu-14:~# curl --http1.1  -k -i -H "content-range: 50000-" https://SERVER/phpinfo.php?21fgfgd | grep HTTP_CONTENT_RANGE
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 95695  100 95695    0     0   166k      0 --:--:-- --:--:-- --:--:--  166k
<tr><td class="e">$_SERVER['HTTP_CONTENT_RANGE']</td><td class="v">50000-</td></tr>
 
Last edited:

David

Active Member
#9
I tested your site and at the beginning it does not have the HTTP_CONTENT_RANGE and I thought it is because of the cache.
So that I change the querry string and then it did have.
 
Top