HTTP相关函数

1.headers_list()      //返回头部信息

2.header("Content-type: text/html; charset=utf-8")  //修改编码

3.header("Content-type: imge/png");

4.hearders_sent()      //判断是否发送HTTP头部信息

5.header("Location: http://www.baidu.com");  //重定向

6.header("refresh:3;url=https://www.baidu.com");  //三秒后跳转

7.header('www-Authenticate: Negotiate');        //HTTP 登录验证

参考

原文地址:https://www.cnblogs.com/docter/p/5981503.html