> but perhaps the webserver sanitizes the output of CGI script and converts > plain "\n" into "\r\n"
Yes apache does this, since it adds its own headers anyway it will replace all '\n' in the headers with '\r\n' and '\n\n' with '\r\n\r\n'. -- damjan -- http://mail.python.org/mailman/listinfo/python-list