CodeIgniter - print custom values in request header
15,784
Solution 1
Simply use,
$this->input->request_headers();
Solution 2
If you are sending values from form submit,
$_REQUEST will help you
or
$this->input->post();
$this->input->get();
Author by
john
Updated on June 16, 2022Comments
-
john almost 2 years
How can I print the values set in the header of a received request using CodeIgniter?
I tried
print_r($_SERVER);
which doesn't help me. I'm hoping there's a different way using CI.