I have a problem with an app in Zend Framework (1).
In a specific action I try to remove some headers but in response I still recieve those headers:
$this->getResponse->clearAllHeaders()
->clearRawHeaders();
$this->getResponse->setHeader('A-Header', 'headervalue');
I expect the response to be:
HTTP/1.1 XXX Some HTTP status code
A-Header: headervalue
but it is:
HTTP/1.1 XXX Some HTTP status code
Date: Sun, 14 Apr 2013 16:26:59 GMT
Server: Apache/2.2.16 (Debian)
X-Powered-By: PHP/5.3.3-7+squeeze15
Vary: Accept-Encoding
Content-Length: 0
Content-Type: text/html
How can I delete Date, Server, X-Powered-By, Vary, Content-Lenght, Content-Type? At least the Content* headers.
Thank you