[ale] A web page

Mike Harrison meuon at geeklabs.com
Mon Nov 19 13:57:32 EST 2007


>
> print "Content-type: text/html\n\n";

> Print "Content-type: application/octet-stream"

If you are running through Apache, and don't have Mod_Perl
or other ways of allowing PERL to modify the headers,
Apache's has probably already sent text/html..
What you are probably looking for is a 'multipart'
header anyway.

This is the kind of thing I find much easier to do
in PHP, with it usually running as an Apache Mod,
you can modify headers easily, and for including
files in stream, the "readfile" command does magic.






More information about the Ale mailing list