FXåå¼æã®ç §ä¼ã¨ãã¯ãã«ã«ãçµæ¸ææ¨ã®è¦æ¹çã解説ãã¦ããã¾ãã
FXåå¼æã®ç §ä¼ã¨ãã¯ãã«ã«ãçµæ¸ææ¨ã®è¦æ¹çã解説ãã¦ããã¾ãã
Translation of: Adding meaning to your HTTP error pages! by Stuart Colville This article is licensed under a Creative Commons Attribution, Non Commercial - Share Alike 2.5 license ã¯ããã« ã¦ã§ãä¸ã§ä½ããæ¤ç´¢ãããã¨ããã¨ãæ¢ã«åå¨ããªããã¼ã¸ããæ¤ç´¢çµæã«ãªãããããã¸ã®ãªã³ã¯ãã¯ãªãã¯ãããã¨ã¯ããããã ããããã®éãããã¼ã¸ã«ããã©ã«ãã®ã¨ã©ã¼ã»ã¡ãã»ã¼ã¸ã®ä»ã«ä½ãæ å ±ãè¼ã£ã¦ããªãã£ãå ´åãå¤ãã®äººã ã¯æ»ããã¿ã³ãæ¼ã次ã®æ¤ç´¢çµæãéããã¨ããã ããã ãµã¤ã製ä½è ã§ããæã ã¯ãã£ã¨è¨ªåè ã«æå³ã®ããã¨ã©ã¼ãã¼ã¸ãä½æãããã¨ãã§ãããããããã°ãã¨ãã¨ã©ã¼ãã¼ã¸ã§ãã£ã¦ã訪åè ããµã¤ãã«çã¾ãããå½¼ã
ãã¡ãã¯ç¬èªãã¡ã¤ã³ããã¬ã³ã¿ã«ãµã¼ãã¼ããã¬ããæ¥ç¶å°ç¨ä¼å¡ã¾ã§ãã¼ã¿ã«ãµãã¼ãã®ãããã¤ãã¼ãBiG-NETã§ãã ãã¤ãå¼ç¤¾ã¦ã¼ã¶ã¼ã®ãã¼ã¸ã«ã¢ã¯ã»ã¹ããã¦é ãã¾ãã¦ãããã¨ããããã¾ãã http://www.big.or.jp/~crane/cocoa/1000_webKit/NSURLConnection/index.html 404 Not Found (ãã¡ã¤ã«ãè¦ã¤ããã¾ãã) ç³ã訳ãããã¾ããããã客æ§ãã¢ã¯ã»ã¹è¦æ±ããã¾ããä¸è¨ãã¼ã¸ã¯ãç¾å¨ã¢ã¯ã»ã¹ãåºæ¥ã¾ããã å¼ç¤¾ã§ã¯ããªãã¢ã¯ã»ã¹ã§ããªãã®ãã¨è¨ã第ä¸è ããã®ãåãåããã«ã¯ãçããããã¨ãåºæ¥ã¾ããã ãããã®ãã¼ã¸ã®é¢ä¿è ããåç¥ã§ããããé£çµ¡ãåã£ã¦ã¿ããã¨ããè¦ãè´ãã¾ãã ä½åã容赦ä¸ããã
WebKitã使ãæ¹æ³ãããããã§ãã NSMutableURLRequestã使ã£ã¦(ãããã)æãã·ã³ãã«ã«ãã㨠NSString* content = @"test=hoge&test2=moge"; NSURL* url = [NSURL URLWithString:@"http://www.hogemoge.com/index.php"]; NSMutableURLRequest* urlRequest = [[NSMutableURLRequest alloc]initWithURL:url]; [urlRequest setHTTPMethod:@"POST"]; [urlRequest setHTTPBody:[content dataUsingEncoding:NSUTF8StringEncoding]]; NSURLResponse* response; NSErr
naoya ã§ããæè¿ãã¨ãã¨ãè±ç²çã®å£ç¯ã«å ¥ã£ãã®ã§ãçã¾ãã¦åãã¦ç©ºæ°æ¸ æµæ©ãè³¼å ¥ãã¾ããã ãã¦ãä»æ¥ã¯ Apache HTTP ãµã¼ãã® MPM (Multi Processing Module) ã«ã¤ãã¦è§£èª¬ãããã¨æãã¾ããæ®æ®µãã¦ã§ããµã¼ããæ§ç¯ããã¨ããApache HTTP ãµã¼ãã使ããã¨ãå¤ãã¨æãã¾ãããApache HTTP ãµã¼ãã使ãä¸ã§ MPM ã«ã¤ãã¦ç解ãã¦ãããã¨ã¯å¤§äºã§ãã ãã® MPM ã§ãããApache HTTP ãµã¼ãã§ã¯ãªã¯ã¨ã¹ããå¦çããé¨åã®ãã¨ãããã¾ããMPM ã¯ãApache HTTP ãµã¼ã 2.0 ç³»ããæ¡ç¨ããã¦ãã¾ããApache HTTP ãµã¼ãã® MPM ã«ã¯ã次ã®ç¨®é¡ãããã¾ãã prefork worker perchild winnt ããããã® MPM ã«ã¤ãã¦è§£èª¬ãã¾ããã¾ãã¯ãä¸çªä»£è¡¨ç㪠prefork
HTTPãããã³ã«ã§ã¯ãã³ã³ãã¥ã¼ã¿å士ãéä¿¡ãã¦ããéã«ãã³ã¼ããç¨ãã¦ãäºãã®ç¶æ (ã¹ãã¼ã¿ã¹)ãããåããã¦ãã¾ãããã®ã³ã¼ãã®ãã¨ãHTTPã¹ãã¼ã¿ã¹ã»ã³ã¼ã(HTTP Status Code)ã¨å¼ã³ãã¨ã©ã¼ãçºçããå ´åã«ã404 Not Foundãã®ããã«ãã©ã¦ã¶ä¸ã«è¡¨ç¤ºãããããã¨ã©ã¼ãçºçããªãã£ãå ´åã«ãè¦ããªãã¨ããã§ããåãããã¦ãã¾ãã ã¾ããéä¿¡ãè¡ãããã«ã¯ã©ã¤ã¢ã³ãããµã¼ãã¼ã«æ§ã ãªãªã¯ã¨ã¹ããè¡ãã¾ããããã®ãªã¯ã¨ã¹ãã®æ¹æ³ãã¡ã½ããã¨å¼ã³ã¾ãã è¦æ ¼
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}