The answer to my problem was: There needs to be a header containing at least one item:value pair, then there MUST be at least one blank line, then comes your HTML. The header can be as simple as: print "content-type: text/plain\n\n" SImple but important. Thanks everyone for your help. Stu