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

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!
  • Comment on Re^2: mod2 equivalence for ($r->set_byterange and each_byterange)

Replies are listed 'Best First'.
Re^3: mod2 equivalence for ($r->set_byterange and each_byterange)
by Anonymous Monk on Mar 17, 2011 at 22:39 UTC
    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!