It is tricky. Try this:
my $format = $graph->export_format;
$r->content_type("image/$format");
binmode STDOUT;
print STDOUT $graph->plot([EMAIL PROTECTED])->$format();
return Apache::OK;
It works for me.
Willy
Kirk Bowe
<[EMAIL PROTECTED] To: [EMAIL PROTECTED]
info> cc:
Subject: ProxyPass not getting type of
dynamic images?
07/07/2003 11:55
AM
Hi, I'm doing a naive one size fits all ProxyPass thing wherein I've got
one server simply sitting between the end users and the real machine. So
my only lines are:
ProxyPass / http://other.server.with.specified.port.com:8082/
ProxyPassReverse / http://other.server.with.specified.port.com:8082/
ProxyReceiveBufferSize 16384
Most of it works fine but I appear to be losing content types. The
backend server generates pretty much everything in mod_perl and Template
Toolkit. However I generate PNGs on the fly too, with and without a .png
extension in some cases. In particular, the PNGs aren't getting through
with a mime type. Guess I need to set it somewhere -- any ideas? It all
works fine without the proxy in the middle.
Cheers
Kirk.
