Hi,

Could somebody tell me why the following testcase doesn't work?

    use Apache (); 
    use Apache::File ();

    my $r = Apache->request();
    $r->content_type('text/plain');
    $r->send_http_header();

    my $f = Apache::File->tmpfile();
    print $f "test\ntest\n";
    $r->send_fd($f);
    $f->close;

All I get is an empty document.  My understanding is that the data
written to the tmpfile should be available immediately through the
filehandle even if it hasn't been flushed.

This is running under Registry, on Linux.

Thanks,
Steve

Reply via email to