Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 8 of 8

Thread: Http_range

  1. #1
    Regular Coder
    Join Date
    Apr 2007
    Posts
    144
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Http_range

    How/When is $_SERVER['HTTP_RANGE'] or $_ENV['HTTP_RANGE'] set? I am working on a resume download script that requires the HTTP_RANGE to be set... but no matter what i do i cant find how/when its set. Thanks.

  • #2
    Senior Coder rafiki's Avatar
    Join Date
    Aug 2006
    Location
    Floating around somewhere...
    Posts
    2,046
    Thanks
    19
    Thanked 42 Times in 42 Posts
    http://www.php.net/reserved.variables
    can't even find range on there

  • #3
    Regular Coder
    Join Date
    Apr 2007
    Posts
    144
    Thanks
    5
    Thanked 0 Times in 0 Posts
    a google search will show plenty of references to it.... strange.

  • #4
    Regular Coder
    Join Date
    Apr 2007
    Posts
    144
    Thanks
    5
    Thanked 0 Times in 0 Posts
    http://tools.ietf.org/id/draft-ietf-...trieval-00.txt

    This link explains a lot about HTTP_RANGE. It still leaves out two important points...

    The server will send this header only for documents for which it will
    be able to satisfy the byte range request, e.g. for PDF documents, or
    images, which can be partially reloaded if the user interrupts the
    page load, and image gets only partially cached.
    What types of files satisfy the byte range request? also,

    The Request-Range header is simply ignored
    by a server that does not support it, and it will send the entire
    document as a response.
    How do i know if my server supports it?

  • #5
    Senior Coder rafiki's Avatar
    Join Date
    Aug 2006
    Location
    Floating around somewhere...
    Posts
    2,046
    Thanks
    19
    Thanked 42 Times in 42 Posts
    test.php
    PHP Code:
    if(isset($_SERVER['HTTP_RANGE'])){
    echo 
    'its set';
    }else{
    echo 
    'Doesnt look like it';

    ??

  • #6
    Regular Coder
    Join Date
    Apr 2007
    Posts
    144
    Thanks
    5
    Thanked 0 Times in 0 Posts
    Still looking for info on this subject. thanks.

  • #7
    Regular Coder
    Join Date
    Jun 2008
    Location
    SE Wisconsin, US
    Posts
    222
    Thanks
    1
    Thanked 20 Times in 20 Posts
    Milwaukee Web Designer and SEO Milwaukee Firm specializing in ASP.Net, C#, VB.Net, SQL Server and Access.

  • #8
    Regular Coder
    Join Date
    Apr 2007
    Posts
    144
    Thanks
    5
    Thanked 0 Times in 0 Posts
    @demtron - thanks for the link, but i have seen it and tried the code.. no worky.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •