1 ###############################################################################
3 # Test partial content request. Range type: x-y (between offsets x and y inc.)
6 # Carlos Ghan <charlie.brown.uy@gmail.com>
12 # RFC 2616 Section 14.35
13 ###############################################################################
30 __GET /$TEST_DOC $HTTPVER
32 __Range: bytes=${OFF_START}-${OFF_END}
36 # Content length = end_offset - start_offset + 1
37 _OP $OFF_END SUB $OFF_START CLEN
40 _EXPECT . "HTTP/1.1 206 Partial Content"
42 _EXPECT . "Content-Range: bytes ${OFF_START}-${OFF_END}/${TEST_DOC_LEN}"
43 _EXPECT . "Content-Length: $CLEN"