Hi,
I'm having an issue with retrieving the if-modified-since value from a clients' request.
Using a logging tool, I can see the if-modified-since header is sent from the browser. My problem is that PHP is not receiving the if-modified-since header.
Doing a simple test in code:
$LocalHeaders = getallheaders();
$LogString = "";
reset($LocalHeaders);
while (list($key, $val) = each($LocalHeaders))
{
$LogString .= $key . " = " . $val . "\n";
}
The request from the browser:
GET /page.php HTTP/1.1
Host: xxx.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5a) Gecko/20030728 Mozilla Firebird/0.6.1
Accept: image/png,image/jpeg,image/gif;q=0.2,/;q=0.1
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Proxy-Connection: keep-alive
Referer: http://xxx.com/
If-Modified-Since: Tue, 29 Oct 2002 21:19:37 GMT
If-None-Match: "eeacf0-26d-3dbefb69"
Cache-Control: max-age=0
What is output by the above code is:
Host = xxx.com
User-Agent = Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5a) Gecko/20030728 Mozilla Firebird/0.6.1
Accept = text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,video/x-mng,image/png,image/jpeg,image/gif;q=0.2,/;q=0.1
Accept-Language = en-us,en;q=0.5
Accept-Encoding = gzip, deflate
Accept-Charset = ISO-8859-1,utf-8;q=0.7,*;q=0.7
Set up is:
Apache/2.0.48
PHP 4.3.4
Is somebody able to give me a nudge in the right direction as to what I'm missing here?
Thanks,