天然纯小白:如何获取header的所有信息?
本帖最后由 andyzu 于 2017-12-26 09:12 编辑get_header() 貌似不能获取所有头信息;
[*]$this->output->set_header('HTTP/1.1 200 OK');
[*]$this->output->set_header('Last-Modified: '.gmdate('D, d M Y H:i:s', $last_update).' GMT');
[*]$this->output->set_header('Cache-Control: no-store, no-cache, must-revalidate');
[*]$this->output->set_header('Cache-Control: post-check=0, pre-check=0');
[*]$this->output->set_header('Pragma: no-cache');
我用这样的方式设置好头信息,我如何用get_header()获取所有的头信息?难道我只能带参数一个一个获取??
貌似 PHP 有个 headers_list 函数 CI 没有这样的函数?
页:
[1]