in reply to [untitled node, ID 212629]
If it is transmitted as a text document, then your cgi script is setting a plain text content-type header...
Show us the real code please, not psueodocode.