The browser only pops up the basic authentication dialog if it receives an HTTP_UNAUTHORISED(401) return status and a WWW-Authenticate header.
So instead, you can do what Apache::Cookie does:
return an HTTP_FORBIDDEN (403) status and use $r->custom_response() to send them the HTML of your login form
return OK, and apache will send them the file
Clint
In reply to Re^8: mod_perl handler for file downloads: good call or bad
by clinton
in thread mod_perl handler for file downloads: good call or bad
by Errto
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |