qt6windows7/tests/testserver/apache2/testdata/www/cgi-bin/http-unknown-authentication-method.cgi

18 lines
389 B
Plaintext
Raw Normal View History

2023-10-30 06:33:08 +08:00
#!/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";