in reply to Re^7: mod_perl handler for file downloads: good call or bad
in thread mod_perl handler for file downloads: good call or bad
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
|
|---|