On 09/03/2011 21:01, Victor Subervi wrote: > The problem is that it prints "Content-Type: text/html" to the screen If you can see what is intended to be a header, then it follows that you are not sending the header correctly. Sorry - can't tell you how to send a header. You don't say what framework you are using. Ian