以åèªåã¨ãã®æ²ç¤ºæ¿ã«ãæ¸ããã®ã§ããã
http://kmaebashi.com/bbs/list.php?boardid=kmaebashibbs&from=880&range=1
ã¨ã¯ãããCGIã¯Webã¢ããªã±ã¼ã·ã§ã³ã®åºæ¬ã§ãããã(Perlã§ãããã®ã§)ä¸åº¦ã¯ ä½ã£ã¦ããã¹ããã®ãã¨ã¯æãã¾ããæè¿ã¯ãPHPããJSPããStrutsãããæã¦ã¯ ASP.NETçãããã便å©ãªéå ·ããã£ã¦ããã¡ããããã¯ããã§ããã®ã§ããã çµå±ä¸åããç¥ããªãã¨å°ããã¨ãããã¾ãããã ãæ¬å½ã®åºç¤ããã®Webã¢ããªã±ã¼ã·ã§ã³å ¥é âWebãµã¼ããä½ã£ã¦ã¿ããâã ãªãã¦ã®ã誰ãæ¸ãã¦ããã¾ããããâ¦
http://kmaebashi.com/bbs/list.php?boardid=kmaebashibbs&from=883&range=1
æããã¤ã³ã¿ã¼ãããã256å使ãããã®æ¬ãã¨ããã®ããã£ã¦ããã®ä¸ã«ã ãã·ã§ã«ã«ããhttpdã®å®è£ ãã¨ããã®ãããã¾ããã â¦ä»æ¢ãããã½ã¼ã¹ãå ¬éããã¦ãã¾ããããã¡ãã§ãã http://www.ascii.co.jp/books/support/4-7561-1663-9/supplement/0001/shttpd ãã¡ãã«ããã°ã http://www.ascii.co.jp/books/support/4-7561-1663-9/supplement/ ãçè ãåããã§ã¯ãªããshãåããã§ããªãããºããªinetdãåããããã§ããã ãã®é¨åãJavaããªããã§ã¡ããã£ã¨æ¸ãã¦ãã¾ãã°ãWebãµã¼ãã¨ãã¦ã®æ©è½ã¯ ããã«å®è£ ã§ãããã§ãããããããã¼ã¹ã«ããããæ¡å¼µããã°åå¼·ã«ãªãããã ãªãããªããã¨æãããã§ãããã©ã¦ã¶ãä½ãéã£ã¦ãã¦ãã®ãç®ã§è¦ãã¾ããã ã©ã対å¿ããã°ãããããããã®ã§ã
ç§ã«æéãç¡éã«ãããªãWebã«æ¸ãã¦ã¿ããã¨ããã§ãããä»ã¯ç¡çãªã®ã§â¦
Joel Spolskyãè¨ãããã«ããã¦ãã®æ½è±¡åã«ã¯æ¼ãããããã®ã§ãããã¨ãããWebã¢ããªã±ã¼ã·ã§ã³ã®ä¸çã®æ½è±¡åã¯ãã ã æ¼ããã«è¦ãã¾ããPHPã ã®JSPã ã®Strutsã ã®ASP.NETã ã®ã確ãã«ä¾¿å©ãªã®ã§ãããçµå±Webã¢ããªããã®å¶ç´ã«ç¸ããã¦ãããæ½è±¡åã®å±¤ãéããã°éããã»ã©ã宣ä¼ã®ãµã³ãã«ã®ãããªç°¡åãªã±ã¼ã¹ã¨ãããã¯ã¾ã£ãæã®ä¹é¢ã¯å¤§ãããªããçµå±ä¸ã®æ¹ãç¥ããªãã¨å¯¾å¦ã§ããªãã¨ãããã¨ãå¤ã ããã¾ãããããªããã¯ããä¸ã®æ¹ããé ã ã«ç©ã¿ä¸ãã¦ãããããªãã®ã§ã¯ãªããã¨ã
ã©ã®ãããä¸ãããããã§ãããTCPããã§ããã¨æãã¾ã(Joel on softwareã«ããã¦æ¼ãã®ããæ½è±¡åã®ä¾ã«åºããã¦ããã®ãã¾ãã«TCPã ã¨ããã®ãç®èã§ã¯ããã¾ãã)ã
ãã§ãJavaãä½ãã§é©å½ã«ãµã¼ããæ¸ãã¦ããã¼ã8080çªã¨ããå¾
ã¡æ§ããããã«ãã¦ãIEçã®ãã©ã¦ã¶ã§
http://localhost:8080/hello.html
ã¨å©ãã¦ã¿ãã
次ã¯éã«ã¯ã©ã¤ã¢ã³ããä½ã£ã¦ãApacheãä½ãã«ããã£ãIEããæ¥ããªã¯ã¨ã¹ãã¨åããã®ãéã£ã¦ãã*1ãå½ç¶Apacheã«ã¯hello.htmlãç½®ãã¦ããã¾ããããã¨ãhello.htmlã«ç¸å½ããã¬ã¹ãã³ã¹ãæ¥ã¾ããããããããã£ããã³ãããããã®ãèªä½ãµã¼ãããè¿ãããã§ãã
ããã¾ã§ã§ããã°ãããã°ã©ããªããhtmlãã¡ã¤ã«ã対象ã¨ããWebãµã¼ãã®ä½ãæ¹ã¯è¦å½ãã¤ããã¨ã§ãããã
RFCã¨ãç´°ãããã¨ã¯ã²ã¨ã¾ãç½®ãã¨ãã¦ãIEã¨Apacheã®å®éã®åºåãè¦ãªããããæ¹ã飽ããã«é²ããããããªãã§ããããã
ãã¨ã¯ã
- ç»åãè¿ããããã«ããã
- POSTãåãã¦ã¿ãã
- åçã¢ããªã±ã¼ã·ã§ã³(æ²ç¤ºæ¿ã¨ã)ãä½ãã
- cookieã使ãã
- ã»ãã·ã§ã³ãä½ãã
ãããã®é çªããªãâ¦
以ä¸ãå¦æ³ã§ããã
*1:ãã®ç¨éã«ã¯ããtelnetã使ããã¾ããããããããecho onãã¨ããªãã¨èªåãæã£ããã®ãè¦ããªãã£ãããã¾ãããtelnetã¯ããã¾ã§telnetãããã³ã«ã§ããã¨ãããã®ã§ãããã©ããããããããã®ã§ãããããã®ã説æããããã¨ã«ãªã£ã¦ããæ°ããã¾ãã