PHP:获取请求头和请求体

129 阅读1分钟

获取请求头

$_SERVER

获取请求体

$body = file_get_contents("php://input");