On Tue, 17 Oct 2000, Nicolas MONNET wrote:

|On Tue, 17 Oct 2000, Shimon Rura wrote:
|
||There's no way to use basic authentication (the stuff inside HTTP) from web
||pages... you can't tell a browser "use this form to ask your user for
||passwords". 
|
|#untested code
|use URI::Escape;
|use CGI;
|$q=new CGI;
|$l=uri_escape($q->param('login'),'^A-Za-z0-9');
|$p=uri_escape($q->param('password'),'^A-Za-z0-9');
|print $q->redirect("http://$login:$password@$ENV{HTTP_HOST}/path");


ouch:
print $q->redirect("http://$l:$p\@$ENV{HTTP_HOST}/path");


Reply via email to