課題1:telnetコマンドによるWWWサーバへのアクセス


telnetコマンドを使って任意のWWWサーバにアクセスし、任意のURLのページデータ(htmlソースプログラム)を画面に表示せよ。
うつらうららか(http://u-u.2-d.jp/)にtelnetコマンドを用いた
st-NEET:~ j05043$ telnet u-u.2-d.jp 80
Trying 59.106.19.132...
Connected to u-u.2-d.jp.
Escape character is '^]'.
GET /index.html HTTP/1.0

HTTP/1.1 200 OK
Date: Sun, 17 Dec 2006 10:47:12 GMT
Server: Apache/1.3.37 (Unix)
Last-Modified: Thu, 20 Oct 2005 04:26:44 GMT
ETag: "ae62-6c9-43571c84"
Accept-Ranges: bytes
Content-Length: 1737
Connection: close
Content-Type: text/html


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
 <html lang="ja">
  <head>
   <meta http-equiv="content-type" content="text/html; charset=Shift_JIS">
   <meta http-equiv="Pragma" content="no-cache">
   <meta http-equiv="Expires" content="">
o</title>
      <style type=text/css>
        h4{
                color: #FF0000;
        }
        h5{
                color: #333333;
        }
        .sakurabody{
                width:450;
                height:50;
        }
        .bod{
                text-align:left;
                width:400;
                font-size: 12px;
                line-height: 140%;
                color: #555555;
        }
        .sig{
                font-size: 10px;
                line-height: 140%;
                color: #999999;
        }
      </style>
  </head>
  <body bgcolor="#ffffff" text="#000000">
    <div align="center">
    <div class="sakurabody">
    <p>
    <img src="logo.jpg" alt="" />
B</h5>
    <hr width="70%" size="5" />
I</h4>
I</h5>

B
B
I
B</div>
    </p>

    <hr width="70%" size="5" />
    <p><a href="http://sakura.ne.jp/">[ sakura.ne.jp ]</a></p>

A
B</p> 
<p>Copyright (c) 2004 SAKURA Internet Inc. All Rights Reserved.</p></div>
    </div>
  </body>
</html>

Connection closed by foreign host.