Kilho.net

Thẻ: Log Saving

IT

HTTP Access Information Log

For testing OpenAPI and checking whether the connection information is correct Method, host, and POST values on connection [PHP] <? $log = $_SERVER[‘REQUEST_METHOD’].’ ‘.$_SERVER[‘HTTP_HOST’].$_SERVER[‘REQUEST_URI’].”nn”; foreach($_SERVER as $k => $v) { if($k==’HTTP_HOST’) continue; if(substr($k, 0,5)!=’HTTP_’) continue; $log .= ‘$k: $v’.”n”; }…

Xem thêm — HTTP Access Information Log