<div class="gmail_quote">On Wed, Mar 9, 2011 at 5:33 PM, Ian <span dir="ltr"><<a href="mailto:hobson42@gmail.com">hobson42@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im">On 09/03/2011 21:01, Victor Subervi wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
The problem is that it prints "Content-Type: text/html" to the screen <br>
</blockquote></div>
If you can see what is intended to be a header, then it follows that you are not sending the header correctly.<br>
<br>
Sorry - can't tell you how to send a header. You don't say what framework you are using.<br></blockquote><div><br>Framework? Python on CentOS, if that's what you're asking. From what I know of python, one always begins a web page with something like this:<br>
<br>  print "Content-Type: text/html"<br>
  print<br>
  print '''<br>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"<br>
"<a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" target="_blank">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</a>"><br>
<html><br>
<head><br>
<br>and this has worked in the past, so I'm surprised it doesn't work here. Don't understand what I've done wrong, nor why it prints the first line to screen.<br>TIA,<br>Beno<br></div></div>