CGIでの環境変数一覧


環境変数の表示

DOCUMENT_ROOT = /var/www/html
GATEWAY_INTERFACE = CGI/1.1
HTTP_ACCEPT = */*
HTTP_ACCEPT_ENCODING = gzip, br, zstd, deflate
HTTP_HOST = ash.jp:80
HTTP_USER_AGENT = Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
HTTP_X_FORWARDED_FOR = 18.226.82.90
PATH = /sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin
QUERY_STRING =
REMOTE_ADDR = 10.0.1.243
REMOTE_PORT = 34141
REQUEST_METHOD = GET
REQUEST_URI = /cgiprog/cgi/env01.cgi
SCRIPT_FILENAME = /var/www/html/cgiprog/cgi/env01.cgi
SCRIPT_NAME = /cgiprog/cgi/env01.cgi
SERVER_ADDR = 10.0.1.1
SERVER_ADMIN = sys@ash.jp
SERVER_NAME = ash.jp
SERVER_PORT = 80
SERVER_PROTOCOL = HTTP/1.1
SERVER_SIGNATURE =
SERVER_SOFTWARE = Apache
TZ = Asia/Tokyo


このCGIのソース:env01.cgi