Re: A question about wiring up filehandles for direct dump to HTTP pipe

2008-02-22 Thread Victor Danilchenko
This solution ended up being perfect, and SIMPLE. I just had to sprinkle a little Mime::FileInfo::Magic over the request, to get the content-type to work right, and POOF! it worked. Just like that. My entire wrapper code (without the accounting, ACL, and somesuch stuff) is under 10 lines, and

Re: A question about wiring up filehandles for direct dump to HTTP pipe

2008-02-22 Thread Victor Danilchenko
Torsten Foertsch wrote: On Fri 22 Feb 2008, Victor Danilchenko wrote: or to grab a given file from disk? Perhaps $r->sendfile($filename)? Defined in Apache2::RequestIO. There is precious little documentation on it, so I will have to experiment with it a little, but this sounds like it migh

Re: A question about wiring up filehandles for direct dump to HTTP pipe

2008-02-22 Thread Victor Danilchenko
Michael Peters wrote: Victor Danilchenko wrote: Is there any way, to, uhhh, tell Apache programatically to simply slurp up the file from an open filehandle I could be wrong, but I doubt you can pass a Perl file handle to a C program that is not Perl aware (like Apache). I am hoping you

Re: A question about wiring up filehandles for direct dump to HTTP pipe

2008-02-22 Thread Torsten Foertsch
On Fri 22 Feb 2008, Victor Danilchenko wrote: > or to grab a given file from disk? Perhaps $r->sendfile($filename)? Defined in Apache2::RequestIO. Torsten

Re: A question about wiring up filehandles for direct dump to HTTP pipe

2008-02-22 Thread Michael Peters
Victor Danilchenko wrote: > Is there any way, to, uhhh, tell Apache programatically to simply > slurp up the file from an open filehandle I could be wrong, but I doubt you can pass a Perl file handle to a C program that is not Perl aware (like Apache). > or to grab a given file from > disk?