Howdy,

I'm trying to get an HTTP::Daemon to make the browser prompt with a basic authentication login box.

With the example at:

 http://search.cpan.org/perldoc?HTTP::Daemon

I just change $c->send_error(RC_FORBIDDEN) to $c->send_error(RC_UNAUTHORIZED) and I get a nice 401 Unauthorized HTML page in my browser.

What I can't seem to find is how to have it issue the challenge and get a login box on a 401...

I tried send_response(), send_status_line() [+ send_clrf()], send_basic_header() and they all either hang (not finishing it properly I suppose?) or give me a blank page...)

Any ideas of how I get the login prompt on 401 with HTTP::Daemon ?

Thanks!

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to