$headers = apache_request_headers(); if(isset($headers['X-Nokia-WLAN-Connectivity-Test'])) { date_default_timezone_set('UTC'); header("HTTP/1.1 204 No Content\r\n"); header("Date: " . gmdate('D, d M Y H:i:s T') . "\r\n"); exit(); }