偏差値40からのはてなブログ生活

頑張って書いてみる

とりあえず「printenv」を呼び出してみました。

$ telnet localhost 80

Trying 127.0.0.1...

Connected to localhost.

Escape character is '^]'.
GET /cgi-bin/printenv HTTP/1.0
(二回押す)
HTTP/1.1 200 OK

Date: Thu, 02 Nov 2006 14:11:54 GMT

Server: Apache/1.3.36 (Unix) mod_perl/1.29

Connection: close

Content-Type: text/plain



DOCUMENT_ROOT="/var/apache/htdocs"

GATEWAY_INTERFACE="CGI/1.1"

PATH="/usr/sbin:/usr/bin"

QUERY_STRING=""

REMOTE_ADDR="127.0.0.1"

REMOTE_PORT="33716"

REQUEST_METHOD="GET"

REQUEST_URI="/cgi-bin/printenv"

SCRIPT_FILENAME="/var/apache/cgi-bin/printenv"

SCRIPT_NAME="/cgi-bin/printenv"

SERVER_ADDR="127.0.0.1"

SERVER_ADMIN="you@yourhost.com"

SERVER_NAME="127.0.0.1"

SERVER_PORT="80"

SERVER_PROTOCOL="HTTP/1.0"

SERVER_SIGNATURE="<ADDRESS>Apache/1.3.36 Server at 127.0.0.1 Port 80</ADDRESS>\n"

SERVER_SOFTWARE="Apache/1.3.36 (Unix) mod_perl/1.29"

TZ="Japan"

UNIQUE_ID="RUn8qn8AAAEAAAZyaJQ"

Connection to localhost closed by foreign host.

おお、、表示されました。

広告を非表示にする