4
my $request_uri = $ENV{'REQUEST_URI'};
5
print (STDERR "REQUEST_URI: $request_uri\n");
7
if ($request_uri =~ m/^\/dynamic\/200\// ) {
8
print header ( -status => 200,
9
-type => 'text/plain' );
10
print ("found here\n");
12
elsif ($request_uri =~ m|^/dynamic/302/| ) {
13
print header( -status=>302,
14
-location => 'http://www.example.org/');
16
elsif ($request_uri =~ m/^\/dynamic\/404\// ) {
17
print header ( -status => 404
18
-type => 'text/plain' );
19
print ("Not found here\n");
21
elsif ($request_uri =~ m/^\/send404\.pl/ ) {
22
print header ( -status => 404
23
-type => 'text/plain' );
24
print ("Not found here (send404)\n");
26
elsif ($request_uri =~ m/^\/dynamic\/nostatus\// ) {
27
print ("found here\n");
30
print header ( -status => 500,
31
-type => 'text/plain');