Posted by Guillaume on 12/08/05 14:45
> David Dorward:
>><img src="/cgi-bin/myscript.cgi" alt="">
>>... and then ensure that myscript.cgi returns an image.
Mark Hobley:
> I think that I might be able to get a 1 x 1 transparent gif from somewhere.
> How would I send it from the script, which is a conventional unix script that
> will run on a Bourne compatible shell?
#!/bin/sh
echo 'Content-Type: image/gif'
echo
# counting code here
cat image1x1.gif
You can add more options like Pragma: no-cache, Content-Length, ...
--
My desktop is worth a million of dollars. Put an icon on it.
http://www.milliondollarscreenshot.com/
Navigation:
[Reply to this message]
|