Thread WWW-Authenticate: Authentifizierung per Perl Script (16 answers)
Opened by vinnie_paul at 2005-08-18 15:22

GwenDragon
 2005-08-18 17:47
#5452 #5452
User since
2005-01-17
14541 Artikel
Admin1
[Homepage]
user image
Das geht schon als CGI.

Wie wärs damit:
Code: (dl )
1
2
3
4
5
6
7
8
9
#!/usr/bin/perl -w
use strict;
use CGI qw(header);
my $cgi = new CGI;
use CGI::Carp qw(fatalsToBrowser);
print header(-status => "401 unauthorized",
    -www_authenticate => 'Basic realm="Test Login"',
   -type=>"text/html; charset=utf-8");
exit;


Da waren wohl ein paar Vertipper bei dir drin ;)\n\n

<!--EDIT|GwenDragon|1124373555-->
die Drachin, Gwendolyn


Unterschiedliche Perl-Versionen auf Windows (fast wie perlbrew) • Meine Perl-Artikel

View full thread WWW-Authenticate: Authentifizierung per Perl Script