$value) { if(substr_utf($name, 0, 5) == 'HTTP_') { $this->_headers[str_replace(' ', '-', ucwords(strtolower(str_replace('_', ' ', substr($name, 5)))))] = $value; } } } else { $this->_headers = getallheaders(); } } function get($key) { $ret = FALSE; if(isset($this->_headers[$key])) { $ret = $this->_headers[$key]; } return $ret; } function set($key, $name) { trigger_error("[ERROR] Cannot set header to finished request.", E_USER_ERROR); } } ?>