remove dependency on apache_request_headers()