CGIでの環境変数一覧


環境変数の表示

DOCUMENT_ROOT = /var/www/html
GATEWAY_INTERFACE = CGI/1.1
HTTP_ACCEPT = text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_ACCEPT_ENCODING = gzip
HTTP_CONNECTION = Keep-Alive
HTTP_HOST = ash.jp:80
HTTP_IF_MODIFIED_SINCE = Sun, 23 Sep 2018 23:37:07 UTC
HTTP_USER_AGENT = CCBot/2.0 (https://commoncrawl.org/faq/)
HTTP_X_FORWARDED_FOR = 54.159.44.54
PATH = /sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin
QUERY_STRING =
REMOTE_ADDR = 10.0.1.243
REMOTE_PORT = 57167
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