![]() |
How do I get HTTP headers in 4.0.4? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30) +--- Thread: How do I get HTTP headers in 4.0.4? (/showthread.php?tid=86734) |
How do I get HTTP headers in 4.0.4? - ailerux - 02-14-2023 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? RE: How do I get HTTP headers in 4.0.4? - kenjis - 02-14-2023 Do not use 4.0.4. It is no longer supported and has vulnerabilities. See https://github.com/codeigniter4/CodeIgniter4/security/advisories Please upgrade to the latest 4.3.1 as soon as possible. Or at least to 4.2.11 that does not have known vulnerabilities. > If you want to see previous versions, you can download from the codeigniter4/userguide repository. https://codeigniter4.github.io/CodeIgniter4/installation/index.html#installation RE: How do I get HTTP headers in 4.0.4? - ailerux - 02-15-2023 It's an existing project I took over and need to fix a few things before i can upgrade to 4.3. |