summaryrefslogtreecommitdiffstats
path: root/tests/testserver/apache2/testdata/www/cgi-bin/http-unknown-authentication-method.cgi
blob: ce47e8384c4453086d4b6cf8f884d69625709c19 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/perl

use CGI;

$queryString = $ENV{'QUERY_STRING'};
my $message;
if ($queryString eq "407-proxy-authorization-required") {
    $status = 407;
} else {
    $status = 401;
}

$q = new CGI;
print $q->header(-status=>$status,
                 -type=>"text/plain",
                 -WWW_Authenticate=>'WSSE realm="Test", profile="TestProfile"'),
          "authorization required";