File: byterange2.t

package info (click to toggle)
apache2 2.4.66-5
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 59,500 kB
  • sloc: ansic: 212,331; python: 13,830; perl: 11,307; sh: 7,258; php: 1,320; javascript: 1,314; awk: 749; makefile: 715; lex: 374; yacc: 161; xml: 2
file content (15 lines) | stat: -rw-r--r-- 315 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use strict;
use warnings FATAL => 'all';

use Apache::Test;
use Apache::TestUtil;
use Apache::TestRequest;

plan tests => 1, need need_min_apache_version('2.0.51'), need_cgi;

my $resp;

$resp = GET_BODY "/modules/cgi/ranged.pl",
    Range => 'bytes=5-10/10';

ok t_cmp($resp, "hello\n", "return correct content");