Sending MIME
Most CGI scripts return HTML data
You can return any kind of data with the right MIME type in the "Content-type:" header
Be sure to include the required blank line, followed by the raw data of the resource you're sending back
For example, to send a GIF file you would use:
Content-type: image/gif
<blank line>
GIF89a&%*$@#--- binary contents of GIF file here ---$(*&%(*@#......