Errin when executing a cgi script that sets a cookie in the browser

Lele Gaifax lele at metapensiero.it
Thu Jun 6 15:26:08 EDT 2013


Νικόλαος Κούρας <nikos.gr33k at gmail.com> writes:

> I have re-enabled 'suexec' and set cgi as default phphandler and then trying:
>
> print( cookie )
> print( '''Content-type: text/html; charset=utf-8\n''' )
> print( message )

Did you tried running that by a standalone Python interpreter? Did you
notice something strange, something like that an empty line is missing
between headers and body?

ciao, lele.
-- 
nickname: Lele Gaifax | Quando vivrò di quello che ho pensato ieri
real: Emanuele Gaifas | comincerò ad aver paura di chi mi copia.
lele at metapensiero.it  |                 -- Fortunato Depero, 1929.




More information about the Python-list mailing list