Welcome Guest, Not a member yet? Register   Sign In
How do I get HTTP headers in 4.0.4?
#1

(This post was last modified: 02-14-2023, 03:03 PM by ailerux.)

I need to grab the authentication headers from the raw HTTP request. 
I tried $this->request->header() but I get a 500 error:
Call to undefined method CodeIgniter\\HTTP\\IncomingRequest::header()

$this->request->getHeader('Content-Type') returns empty (via Postman)

Also, where is the 4.0.4 User Guide?
Reply


Messages In This Thread
How do I get HTTP headers in 4.0.4? - by ailerux - 02-14-2023, 02:58 PM



Theme © iAndrew 2016 - Forum software by © MyBB