#!/usr/bin/sh echo 'Content-type: text/html' echo '' echo '<HTML>' echo '<HEAD><TITLE>Envitonment</TITLE></HEAD>' echo '<BODY>' echo '<HR>' echo '<H1>環境変数の一覧</H1>' echo SERVER_SOFTWARE: $SERVER_SOFTWARE '<BR>' echo SERVER_NAME: $SERVER_NAME '<BR>' echo SERVER_PROTOCOL: $SERVER_PROTOCOL '<BR>' echo SERVER_URL: $SERVER_URL '<BR>' echo REMOTE_HOST: $REMOTE_HOST '<BR>' echo REMOTE_ADDR: $REMOTE_ADDR '<BR>' echo HTTP_REFERER: $HTTP_REFERER '<BR>' echo HTTP_USER_AGENT: $HTTP_USER_AGENT '<BR>' echo HTTP_UA_OS: $HTTP_UA_OS '<BR>' echo HTTP_UA_PIXELS: $HTTP_UA_PIXELS '<BR>' echo '<HR>' echo '<CENTER>' echo '<A HREF="'$HTTP_REFERER'">戻る</A>' # HTTP_REFERER を使うと呼ばれたページへ戻れます。' echo '</CENTER>' echo '<HR>' echo '</BODY>' echo '</HTML>'