title: Getting Apache cgi to send json in Python
body: <p>I have an apache server that I am using for cgi.  I am writing my cgis in Python.</p>
  
  <p>As long as my responses are of the form "Content-Type: text/html\n #" it works.</p>
  
  <p>But if I send anything else, I get a 500 error and my logs say "malformed header from script. Bad header"  Can I change my configurations to make it work?  Is there anything else I can do?</p>