ハッシュ変数「ENV環境変数」の生データ
QUERY_STRINGREQUEST_METHODGETSERVER_PORT80CONTEXT_DOCUMENT_ROOT/virtual/e271/public_htmlREMOTE_PORT9024SERVER_SOFTWAREApacheREQUEST_URI/cgitest/env.cgiSCRIPT_NAME/cgitest/env.cgiHTTP_USER_AGENTMozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)GATEWAY_INTERFACECGI/1.1SERVER_PROTOCOLHTTP/1.1PATH/usr/local/bin:/usr/bin:/binHTTP_ACCEPT_ENCODINGgzip, br, zstd, deflateSERVER_NAMEe271.s20.xrea.comSERVER_SIGNATUREHTTP_ACCEPT*/*SCRIPT_FILENAME/virtual/e271/public_html/cgitest/env.cgiDOCUMENT_ROOT/virtual/e271/public_htmlREQUEST_SCHEMEhttpCONTEXT_PREFIXREMOTE_ADDR18.117.142.3SERVER_ADDR160.251.150.120HTTP_HOSTe271.s20.xrea.comUNIQUE_IDZ1siqJ0rvGYTzq_Fa9C8bQAAADkSERVER_ADMIN[no address given]
ENVハッシュ変数の「キー」を取り出す。
QUERY_STRING REQUEST_METHOD SERVER_PORT CONTEXT_DOCUMENT_ROOT REMOTE_PORT SERVER_SOFTWARE REQUEST_URI SCRIPT_NAME HTTP_USER_AGENT GATEWAY_INTERFACE SERVER_PROTOCOL PATH HTTP_ACCEPT_ENCODING SERVER_NAME SERVER_SIGNATURE HTTP_ACCEPT SCRIPT_FILENAME DOCUMENT_ROOT REQUEST_SCHEME CONTEXT_PREFIX REMOTE_ADDR SERVER_ADDR HTTP_HOST UNIQUE_ID SERVER_ADMIN
→リストのサイズは25。
ENVハッシュ変数の「要素」を取り出す。
GET 80 /virtual/e271/public_html 9024 Apache /cgitest/env.cgi /cgitest/env.cgi Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com) CGI/1.1 HTTP/1.1 /usr/local/bin:/usr/bin:/bin gzip, br, zstd, deflate e271.s20.xrea.com */* /virtual/e271/public_html/cgitest/env.cgi /virtual/e271/public_html http 18.117.142.3 160.251.150.120 e271.s20.xrea.com Z1siqJ0rvGYTzq_Fa9C8bQAAADk [no address given]
→リストのサイズは25。
ENVハッシュ変数から得られるデータを見やすくする。
QUERY_STRING | (Undef) |
REQUEST_METHOD | GET |
SERVER_PORT | 80 |
CONTEXT_DOCUMENT_ROOT | /virtual/e271/public_html |
REMOTE_PORT | 9024 |
SERVER_SOFTWARE | Apache |
REQUEST_URI | /cgitest/env.cgi |
SCRIPT_NAME | /cgitest/env.cgi |
HTTP_USER_AGENT | Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com) |
GATEWAY_INTERFACE | CGI/1.1 |
SERVER_PROTOCOL | HTTP/1.1 |
PATH | /usr/local/bin:/usr/bin:/bin |
HTTP_ACCEPT_ENCODING | gzip, br, zstd, deflate |
SERVER_NAME | e271.s20.xrea.com |
SERVER_SIGNATURE | (Undef) |
HTTP_ACCEPT | */* |
SCRIPT_FILENAME | /virtual/e271/public_html/cgitest/env.cgi |
DOCUMENT_ROOT | /virtual/e271/public_html |
REQUEST_SCHEME | http |
CONTEXT_PREFIX | (Undef) |
REMOTE_ADDR | 18.117.142.3 |
SERVER_ADDR | 160.251.150.120 |
HTTP_HOST | e271.s20.xrea.com |
UNIQUE_ID | Z1siqJ0rvGYTzq_Fa9C8bQAAADk |
SERVER_ADMIN | [no address given] |
REMOTE_HOST | (Undef) |
REMOTE_IDENT | (Undef) |
REMOTE_USER | (Undef) |
TZ? | (Undef) |
HTTP_CLIENT_IP | (Undef) |
HTTP_COOKIE | (Undef) |
QUERY_STRING | (Undef) |
CONTENT_LENGTH | (Undef) |
REMOTE_ADDR | 18.117.142.3 |
REMOTE_HOST | ec2-18-117-142-3.us-east-2.compute.amazonaws.com |