CGI :: ÀÀ¿ë ÇÁ·Î±×·¥ :: Ç÷¯±×ÀÎ :: Apache.

CGI :: ÀÀ¿ë ÇÁ·Î±×·¥ÀÌ ¾ÆÆÄÄ¡¸¦ »ç¿ëÇϵµ·Ï Çã¿ë :: * °£¼·¾øÀÌ ¸ðµâÀ» »ç¿ëÇÕ´Ï´Ù.
Áö±Ý ´Ù¿î·Îµå

CGI :: ÀÀ¿ë ÇÁ·Î±×·¥ :: Ç÷¯±×ÀÎ :: Apache. ¼øÀ§ ¹× ¿ä¾à

±¤°í

  • Rating:
  • ƯÇã:
  • Perl Artistic License
  • °¡°Ý:
  • FREE
  • °Ô½ÃÀÚ À̸§:
  • Michael Peters
  • °Ô½ÃÀÚ À¥»çÀÌÆ®:
  • http://search.cpan.org/~wonko/CGI-Application-Dispatch-2.12/lib/CGI/Application/Dispatch.pm

CGI :: ÀÀ¿ë ÇÁ·Î±×·¥ :: Ç÷¯±×ÀÎ :: Apache. ű×


CGI :: ÀÀ¿ë ÇÁ·Î±×·¥ :: Ç÷¯±×ÀÎ :: Apache. ¼³¸í

°£¼·¾øÀÌ Apache :: * ¸ðµâÀ» »ç¿ëÇϵµ·Ï CGI :: ÀÀ¿ë ÇÁ·Î±×·¥ Çã¿ë CGI :: Application :: Plugin :: Apache´Â CGI :: ÀÀ¿ë ÇÁ·Î±×·¥ÀÌ Interference.synopsis°¡¾ø´Â Apache :: * ¸ðµâÀ» »ç¿ëÇϵµ·Ï CGI :: * ¸ðµâÀ» »ç¿ëÇÒ ¼öÀÖ´Â Perl ¸ðµâÀÔ´Ï´Ù. CGI :: Application :: Plugin :: Apache QW (: ALL); # ±×·± ´ÙÀ½ ³ªÁß¿¡ ¿ì¸®´Â ·± ¸ðµå¿¡¼­ ¿µ¿õ¿¡ °¡ÀÔÇÕ´Ï´Ù ... Sub Mode1 {My $ self = shift; ³» $ Q = $ self-> query (); # $ Q´Â Apache :: Request obj°¡ ¾Æ´Õ´Ï´Ù. CGI.PM obj # ÀÌÁ¦´Â Apache¸¦ »ç¿ëÇÏ¿© ÄíÅ°¸¦ ±ÁÈú ¼ö ÀÖ½À´Ï´Ù. $ cookie = apache :: cookie-> new ($ q, -name) => 'foo', -value => bar ', -expires =>'+ 2h ',); $ ÄíÅ° -> »§; # ÀÌÁ¦ Content_Type ¹× ´Ù¸¥ Çì´õ¿Í ÇÔ²² Àç»ýÇÏ°Ú½À´Ï´Ù $ q-> content_type ( 'text / plain'); $ q-> header_out ( 'myheader'=> 'myValue'); # ´Ù¸¥ ¹°°ÇÀº $ ÇÔ¼ö¸¦ ¹ÝȯÇÕ´Ï´Ù. } 1;ÀÌ Ç÷¯±×ÀÎÀº ¼ø¼öÇÑ mod_perl (1.0 ¶Ç´Â 2.0) ȯ°æ¿¡¼­ CGI :: ÀÀ¿ë ÇÁ·Î±×·¥À» »ç¿ëÇÏ´Â ¼º°¡½ÉÀ» ½ÃµµÇÏ°í ¼öÁ¤ÇÏ´Â µ¥ µµ¿òÀ̵˴ϴ٠(mod_perl 2.x¿¡¼­ ¼³Ä¡Çϴ ƯÁ¤ ¹®Á¦¿¡ ´ëÇÑ ¼³Ä¡¸¦ ÂüÁ¶ÇϽʽÿÀ). CGI :: ½Åû¼­´Â CGI.PMÀ» »ç¿ëÇÑ´Ù°í °¡Á¤ÇÏÁö¸¸ ºÎÇ®¾î ¿À¸£Áö ¾Ê°í ¾ÆÆÄÄ¡ :: * ¸ðµâÀÇ ¼º´É¿¡ ¾×¼¼½º ÇÏ¿©ÀÌ Ç÷¯±×ÀÎÀÌ ¿Ô½À´Ï´Ù. ÇöÀç ¼ø°£¿¡¼­´Â Apache :: Request¸¦ $ self-> query °´Ã¼·Î »ç¿ëÇÏ¿© cgi.pm object¸¦ »ý¼ºÇÏÁö ¾ÊÀ¸¹Ç·Î CGI :: ÀÀ¿ë ÇÁ·Î±×·¥ÀÌ HTTP Çì´õ¸¦ ¸¸µé°í ÀμâÇÏ´Â ¹æ½ÄÀ» »ç¿ëÇÕ´Ï´Ù. CGI.PMÀÇ Çì´õ () ¹× Redirect () ¸Þ¼­µå¸¦ »ç¿ëÇÏ°í Àֱ⠶§¹®¿¡ ´ë¾ÈÀÌ ÇÊ¿äÇß½À´Ï´Ù. ÀÌÁ¦ Apache-> send_http_header () ¸Þ¼­µå¸¦ »ç¿ëÇÕ´Ï´Ù. ÀÌ°ÍÀº CGI.PMÀ» »ç¿ëÇÏÁö ¾Ê´Â °Í ÀÌ¿ÜÀÇ ´Ù¸¥ ÇýÅÃÀ» °¡Áö°í ÀÖ½À´Ï´Ù. CGI :: ÀÀ¿ë ÇÁ·Î±×·¥ Clobbering¾øÀÌ ³ª°¡´Â Çì´õ (¿¹ : Apache :: ÄíÅ°)¸¦ »ý¼º ÇÒ ¼öÀÖ´Â ´Ù¸¥ Apache :: * ¸ðµâÀ» »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù. ¿ä±¸ »çÇ× : ¡¤ Perl.


CGI :: ÀÀ¿ë ÇÁ·Î±×·¥ :: Ç÷¯±×ÀÎ :: Apache. °ü·Ã ¼ÒÇÁÆ®¿þ¾î