+
95
-

php中如何打印出请求的所有header信息?

php
php中如何打印出请求的所有header信息?

网友回复

+
15
-
<?php
// 服务器端跨域设置
header('Access-Control-Allow-Origin:*');
//
if (!function_exists('getallheaders')) {
    function getallheaders() {
        $headers = [];
        foreach ($_SE...

点击查看剩余70%

我知道答案,我要回答