> 
> mhh,I understood for your meanings.but my real question is how I can
> send the file to clients after returning OK.here is my apache config
> and modperl script,please give more helps.thanks!
> 
> from httpd.conf:
> 
> PerlModule DLAuth
> 
> <Location /flv>
>     SetHandler perl-script
>     PerlHandler DLAuth
> </Location>
> 

You don't send the file.  Apache sends it.

Read this section:
http://perl.apache.org/docs/1.0/guide/config.html#Perl_Handlers

There are lots of different phases to the apache response. You only need
to handle the phases that are of interest to you.

You are serving a static file normally, as you would for any other file.
The only difference is that you want to do an access check before
letting the user have access.

So don't use PerlHandler, because that handles the response phase.
Leave that part to apache.

Instead, use PerlAccessHandler, and then you only have to deal with the
access checking.

Clint

Reply via email to