> is it possible to send a 'unauthorized' - 401 header from an embperl page?
>
I didn't have tried it, but I don't see any reason why it shouldn't work.
> i tried $http_headers_out{'unauthorized'} = '401', without success.
>
> i'd like to have a user-authentification without using a '.htaccess' file
>
401 is a status code not a http header, so you need to say (assuming you
running under mod_perl):
$req_rec -> status (401) ;
and additionaly tell the browser which auth method and realm you want to
use:
$req_rec -> err_header_out('WWW-Authenticate', 'Basic realm=<realmtext>') ;
Gerald
-------------------------------------------------------------
Gerald Richter ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting
Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz
E-Mail: [EMAIL PROTECTED] Voice: +49 6133 925131
WWW: http://www.ecos.de Fax: +49 6133 925152
-------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]