Fedora Core 4
httpd-2.0.54-10
mod_perl-2.0.0-0.rc5.3
I have an nph mod_perl script which will send a JPEG to a client either
inline or as an attachment (if a param is passed). If it is an
attachment, I set the Content-Disposition to:
Content-Disposition: attachment;
Hi Christopher -
I don't know if it's a typo but this:
$write_buffer .= \r\n . $jpeg . \r\n\r\n;
$r-print($write_buffer);
is not the same as this:
$r-print($write_buffer);
$r-print($jpeg);
$r-print(\r\n\r\n);
since the latter does not insert \r\n between $write_buffer and $jpeg...
In the second example I have already appended \r\n to the write buffer.
So it really is:
$write_buffer .= \r\n;
$r-print($write_buffer);
$r-print($jpeg);
$r-print(\r\n\r\n);
I try to write the same data to the client. In one case I write it as
one big buffer, in the other case I write the