strange python scripting error

Diez B. Roggisch deets at
Thu Jul 23 17:57:44 CEST 2009

Mark Tarver wrote:

> I have a very strange error.  I have two test python files and
> which contain the following code
> #!/usr/bin/python
> print "Content-type: text/html"
> print
> print "<html>"
> print "<center>Hello,!</center>"
> print "</html>"
> One file ( works; you call it up and it shows a web page with
> Hello,
> The other fails with a server configuration error.  Both are running
> under Linux, same server, same permissions.  Running a character scan
> shows that both files contain the same printable characters and are
> therefore typographically identical.   They are absolutely the same.
> The only hint at a difference I can see is that my ftp program says
> the files are of unequal lengths. is 129 bytes long.
> 134 bytes long.
> A zipped folder containing both files is at
> Any ideas welcome.

They have different line-ending-conventions. Not sure if and why that makes
a difference.


More information about the Python-list mailing list