[EMAIL PROTECTED] (Thomas Bach) wrote:
>At 11:17 09/07/01 -0500, you wrote:
>>If you want to directly send a file, use:
>>
>>    open(DATEI, ...)
>>    $r->send_fd(DATEI)
>>    close(DATEI)
>>
>>You can do an internal redirect using subrequests, if you want.  See
>>$r->lookup_uri().
>
>what kind of object is $r ?
>CGI?

It's the Apache request object.  See 'perldoc Apache' or 'perldoc mod_perl'.

>>But I'm not sure why you need to redirect just to authenticate.  Can't
>>you just deny access if authentication fails, and allow it if it
>>succeeds?
>
>
>yes, this is what i want to do, but how do I make this over an apache 
>handler (or sth. similar)?
>sorry, I'm not that deep in this stuff, but I hope once I'll get it.

It sounds like perhaps you should take a look at the book "Writing
Apache Modules with Perl and C" from O'Reilly.  There are many ways you
could do this, and a book like that will give you a sense of the issues
involved.


  -------------------                            -------------------
  Ken Williams                             Last Bastion of Euclidity
  [EMAIL PROTECTED]                            The Math Forum

Reply via email to