resume downloads: How can I get HTTP_RANGE???

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Guest's Avatar

    resume downloads: How can I get HTTP_RANGE???

    Well, I read RFC, but I have a problem now:
    How can I get the HTTP_RANGE enviroment variable from client to resume a
    download? (GetRight)

    I try
    $http_range = $_ENV['HTTP_RANGE'];
    $http_range = $_COOKIE['HTTP_RANGE'];
    but no result ;-(

    Please Help!

    Regards
    Gessos Paul


  • Eric Veltman

    #2
    Re: resume downloads: How can I get HTTP_RANGE???

    Hello,

    - Chameleon - wrote:
    [color=blue]
    > Well, I read RFC, but I have a problem now:
    > How can I get the HTTP_RANGE enviroment variable from client to resume a
    > download? (GetRight)
    >
    > I try
    > $http_range = $_ENV['HTTP_RANGE'];
    > $http_range = $_COOKIE['HTTP_RANGE'];
    > but no result ;-([/color]

    I think that the request headers are in $_SERVER.
    Didn't try it though.

    Best regards,

    Eric

    Comment

    • Justin Koivisto

      #3
      Re: resume downloads: How can I get HTTP_RANGE???

      <- Chameleon -> wrote:
      [color=blue]
      > Well, I read RFC, but I have a problem now:
      > How can I get the HTTP_RANGE enviroment variable from client to resume a
      > download? (GetRight)
      >
      > I try
      > $http_range = $_ENV['HTTP_RANGE'];
      > $http_range = $_COOKIE['HTTP_RANGE'];
      > but no result ;-([/color]

      How about:

      $_SERVER['HTTP_RANGE']

      This was covered here on Mar 11, 2003 inthe thread "HTTP_RANGE "
      (http://groups.google.com is your friend.)

      --
      Justin Koivisto - spam@koivi.com
      PHP POSTERS: Please use comp.lang.php for PHP related questions,
      alt.php* groups are not recommended.

      Comment

      • Guest's Avatar

        #4
        Re: resume downloads: How can I get HTTP_RANGE???

        > > I try[color=blue][color=green]
        > > $http_range = $_ENV['HTTP_RANGE'];
        > > $http_range = $_COOKIE['HTTP_RANGE'];
        > > but no result ;-([/color]
        >
        > How about:
        >
        > $_SERVER['HTTP_RANGE'][/color]

        I apologize for my stupidity ;-)


        Comment

        Working...