Is there a way to REMOVE a http header with php? I know that we can overide them (or replace them), but can we remove them?
Here is why i want to play with the headers...
A normal image header with IIS is something like that :
HTTP/1.1 200 OK
Server: Microsoft-IIS/5.0
Date: Wed, 06 Nov 2002 20:27:14 GMT
Content-Type: image/gif
Accept-Ranges: bytes
Last-Modified: Wed, 18 Sep 2002 19:47:24 GMT
ETag: "02e87354c5fc21:e3a"
Content-Length: 1392
<garbage (image code)>
Here is what i got from my system when calling an image :
HTTP/1.1 200 OK
Server: Microsoft-IIS/5.0
Date: Wed, 06 Nov 2002 20:29:36 GMT
HTTP/1.0 200 OK
X-Powered-By: PHP/4.2.3
Set-Cookie: PHPSESSID=7d3b6c1812b5f3683e5352b04dd8d1f2; path=/
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Content-type: text/html
Here is how my system is working : When i call an image with something like http://www.site.com/image.gif, my 404error.php page is taking that, find the image.gif entry in the database, read the real image file and send that file to the browser. It's performed with a "readfile()" function. So, i can see the images, but they are always downloaded.. Even on a roll over, the images are always downloaded (so if you go in, the onMouseOver is downloaded, if you go out the image, onMouseOut is loaded, etc).
So, my question is : Is there a way to tell php that : Do not send the Set-Cookie header, do not send the Cache-Contorl header.. etc.. ??