On 22 Jun 2001, at 3:43, Grierson, Garry (UK07) wrote:
> but it just appears as
> 'hieroglyphics' on the browser page, obviously this is being interpreted as
> text instead of graphical information.
That's because you're telling the browser to expect text/html in the
Content-type header.
> print <<HTML_SCRIPT1;
> Content-type: text/html\n\n
Change the MIME-type from text/html to image/jpeg or image/png. For a
complete list of MIME-types, check out
<http://hostutopia.com/support/s058.html>. Of course the typical
browser is not going to support all of these types but you can find the
common ones.
Best,
William