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 = x-gzip, gzip, deflate
HTTP_HOST = ash.jp:80
HTTP_IF_MODIFIED_SINCE = Tue, 19 Sep 2017 13:29:26 GMT
HTTP_USER_AGENT = CCBot/2.0 (http://commoncrawl.org/faq/)
HTTP_X_FORWARDED_FOR = 54.156.82.247
PATH = /sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin
QUERY_STRING =
REMOTE_ADDR = 10.0.1.243
REMOTE_PORT = 55693
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.0
SERVER_SIGNATURE =
SERVER_SOFTWARE = Apache
TZ = Asia/Tokyo


このCGIのソース:env01.cgi