Regarding Content-type headers

Ola Natvig ola.natvig at infosense.no
Tue Jun 14 04:00:01 EDT 2005


praba kar wrote:
> Dear All,
> 
>         I have doubt regarding headers in cgi
> programming. If I gives "Content-Type:text/plain" then
> I try to print html contents.  Is right or wrong after
> giving content-type: text/plain?
> 
> regards
> Prabahar

It's not wrong, but you won't get the results you want. If you want to 
display HTML your should send the content-type: text/html.

regards Ola Natvig



More information about the Python-list mailing list