[eluser]BrianDHall[/eluser]
Hm, have you tried using a Firefox plugin to see all the headers being sent and received? I use Live HTTP Headers.
Check and see just exactly what headers are being sent even after you are modifying the headers. One thing I see right away though is you might try this:
Code:
$data = "Successfully signed up";
$this->output->set_status_header('200');
$this->output->set_header("Date: ".gmdate(DATE_RFC822));
$this->output->set_header("Content-Type: text/plain charset=UTF-8");
$this->output->set_header("Content-Length: " . strval(strlen($data)));
echo $data;
var_dump($this->output->headers);
Note the last line - the headers class member is defined in Output.php to keep track of what headers are stored for sending.
This and checking what headers are Really being sent and received should give you a much better idea of what is going on.
Note also I removed all the \r\n usage. I don't know for sure if this is right or wrong, but in the manual when calling set_header() they did nothing special as far as that sort of things go.