Content-Type:text/html Perlの環境変数取得

※このサンプルの解説は、「CGIの扉」をすべて読み終えてる方を前提としています。

【Perlの環境変数取得】
※クッキーは自分自身の情報が見えてるだけで他人に見えるわけではありません。

DOCUMENT_ROOT: /home/atompro.net/beginners/html
GATEWAY_INTERFACE: CGI/1.1
HTTPS: on
HTTP_ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_ACCEPT_ENCODING: gzip
HTTP_ACCEPT_LANGUAGE: en-US,en;q=0.5
HTTP_CONNECTION: Keep-Alive
HTTP_HOST: beginners.atompro.net
HTTP_IF_MODIFIED_SINCE: Thu, 21 Feb 2019 17:53:10 GMT
HTTP_USER_AGENT: CCBot/2.0 (https://commoncrawl.org/faq/)
PATH: /sbin:/usr/sbin:/bin:/usr/bin
QUERY_STRING:
REDIRECT_HTTPS: on
REDIRECT_SSL_TLS_SNI: beginners.atompro.net
REDIRECT_STATUS: 200
REDIRECT_URL: /cgitest_getenv.cgi
REMOTE_ADDR: 54.91.121.255
REMOTE_HOST: ec2-54-91-121-255.compute-1.amazonaws.com
REMOTE_PORT: 36652
REQUEST_METHOD: GET
REQUEST_URI: /cgitest_getenv.cgi
SCRIPT_FILENAME: /home/atompro.net/beginners/cgi-bin/cgitest/getenv.cgi
SCRIPT_NAME: /cgi-bin/cgitest/getenv.cgi
SERVER_ADDR: 192.168.1.100
SERVER_ADMIN: root@localhost
SERVER_NAME: beginners.atompro.net
SERVER_PORT: 443
SERVER_PROTOCOL: HTTP/1.1
SERVER_SIGNATURE:
Apache/2.2.15 (CentOS) Server at beginners.atompro.net Port 443

SERVER_SOFTWARE: Apache/2.2.15 (CentOS)
SSL_TLS_SNI: beginners.atompro.net

page update:

Copyright (c) 2000-2009, all Rights Reserved & Produced by atom