Welcome Guest, Not a member yet? Register   Sign In
Setting Content type in header
#1

[eluser]pmonty[/eluser]
I am using this in my code:
Code:
$this->output->set_header("Content-type: text/xml");
//do some stuff and then
echo $xmlstream;

But gettng this in my headers (using an http analyzer to capture the http stream):
Code:
HTTP/1.1 200 OK
Server: Microsoft-IIS/5.0
Date: Mon, 09 Jul 2007 19:56:53 GMT
Connection: close
X-Powered-By: PHP/5.2.3
Content-type: text/html

Am I using the wrong syntax or something in my set_header command that anyone can see?

Paul


Messages In This Thread
Setting Content type in header - by El Forum - 07-09-2007, 02:06 PM
Setting Content type in header - by El Forum - 07-09-2007, 03:46 PM
Setting Content type in header - by El Forum - 07-09-2007, 06:38 PM



Theme © iAndrew 2016 - Forum software by © MyBB