Hello all,
I'm perplexed.
I've been writing programs to generate images using MacPerl.  Now, I
want to install them and call them using a browser.  But I'm having
problems, and I can't seem to find their solution.

To isolate problems, I installed Lincoln Stein's circle example on my
server.  I checked, and the script runs from the command line. It
creates a .png file.  I piped the output and saved it as .../junk.png
I can open that from my browser.

I then tried to invoke the script by pointing my browser to the URL
..../cgi-bin/stein_png.pl.

The server error logs say "blah,blah...premature end of script error."

So, I added this just before printing the png to STDOUT

print "Content-type: image/png\n\n";
pointed my browser to /cgi-bin/stein_png.pl

The server error logs say "blah,blah...premature end of script error."


Answers to any and all of these would help me isolate my problem.  (I
think I know the answers to the first, but obviously, I'm doing
something wrong.)

1) Is it correct to point my browser to /cgi-bin/stein_png.pl?  (Just
as for running a script that generates text?

2) Can this possibly be a browser problem?

3) What else can I possibly do.

Thanks in advance,
Lucia 

Reply via email to