tests/testserver/apache2/testdata/www/cgi-bin/http-unknown-authentication-method.cgi
raw| 1 | #!/usr/bin/perl |
| 2 | |
| 3 | use CGI; |
| 4 | |
| 5 | $queryString = $ENV{'QUERY_STRING'}; |
| 6 | my $message; |
| 7 | if ($queryString eq "407-proxy-authorization-required") { |
| 8 | $status = 407; |
| 9 | } else { |
| 10 | $status = 401; |
| 11 | } |
| 12 | |
| 13 | $q = new CGI; |
| 14 | print $q->header(-status=>$status, |
| 15 | -type=>"text/plain", |
| 16 | -WWW_Authenticate=>'WSSE realm="Test", profile="TestProfile"'), |
| 17 | "authorization required"; |