2020-12-01 01:30:02 +00:00
|
|
|
BEGIN {
|
2020-12-01 01:39:59 +00:00
|
|
|
debug( \
|
|
|
|
exec_to_string( "date -Iseconds" ) \
|
|
|
|
" " REMOTE_ADDR \
|
|
|
|
" " REQUEST_FULL_URL \
|
|
|
|
);
|
2020-12-01 01:30:02 +00:00
|
|
|
|
|
|
|
_REQUEST_NO_PROTOCOL = str_replace( "[^:]+:\\/\\/", "", REQUEST_FULL_URL );
|
|
|
|
REQUEST_URI = str_replace( "[^/]+\\/?", "/", _REQUEST_NO_PROTOCOL );
|
|
|
|
|
|
|
|
PATH_INFO = url_decode( str_replace( "\\?.+$", "", REQUEST_URI ));
|
|
|
|
QUERY_STRING = url_decode( str_replace( "[^?]+\\??", "", REQUEST_URI ));
|
|
|
|
SERVER_NAME = str_replace( "\\/.*$", "", _REQUEST_NO_PROTOCOL );
|
|
|
|
SERVER_PROTOCOL = str_replace( ":\\/\\/.+$", "", REQUEST_FULL_URL );
|
|
|
|
}
|