CI_Input::get_request_header()

get_request_header($index[, $xss_clean = FALSE])

Parameters:
  • $index (string) – HTTP request header name
  • $xss_clean (bool) – Whether to apply XSS filtering
Returns:

An HTTP request header or NULL if not found

Return type:

string

Returns a single member of the request headers array or NULL if the searched header is not found.

$this->input->get_request_header('some-header', TRUE);
doc_CodeIgniter
2016-10-15 16:31:39
Comments
Leave a Comment

Please login to continue.