in reply to mod2 equivalence for ($r->set_byterange and each_byterange)

Is there a sequence of headers I am suppose to send out for it to interpret it as 206 partial download request? Thanks a bunch for any replies!

Um, clients make request, so, it? Who? What?

  • Comment on Re: mod2 equivalence for ($r->set_byterange and each_byterange)

Replies are listed 'Best First'.
Re^2: mod2 equivalence for ($r->set_byterange and each_byterange)
by gcw (Novice) on Mar 17, 2011 at 20:23 UTC
    I am trying to make a partial content request(206) instead of a 200 request. I set the accepted ranges header but when I do a sendfile($fh) it does a 200 request instead of 206 request. So i was wondering if I am sending the correct headers for it to do a 206 request. thanks!
      I am trying to make a partial content request(206) instead of a 200 request.

      Um, clients make requests, servers make responses, part of which are response status codes, clients receive responses

      You say ap_byterange_filter is taking care of serving the requested ranges, without your program having to do anything special; if that is the case, then ap_byterange_filter is also responsible for turning the default 200 code your program sends into a 206 ; if ap_byterange_filter is taking care of things for you, your program doesn't have to do anything special

        long day.i meant response and not request. i guess i'll look into into the ap_byterange_filter call then. Thanks!