perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Foo JH <>
Subject Re: which module for this purpose?
Date Thu, 14 Jun 2007 10:04:26 GMT
Clinton's approach may be better (with PerlAccessHandler). Try that 
approach first...

Basically to return a file content over there's not much work to be done:
1. Set the content mime type to octet/ application
2. open a file for reading as you normally would - via the open() and 
close() functions
3. convert to base64 and send it over

Jen mlists wrote:
> 2007/6/14, Foo JH <>:
>> Otherwise it will load the file specified in the uri and
>> send it back.
> Then how can I "load the file and send it back" under modperl?Do I
> need to call some routines like socket read/write?
> Please show me more details.Thanks a lot.

View raw message