JSON/Perlã§GET,POST JSON ( JavaScript Object Notation ) ããã§ã¯ããµã¼ãã¼å´ã Perl ã«ãã¦ãXMLHttpRequestãªæ¹æ³ã§ã®GETã¨POSTã«ããJSONãã©ã¼ãããã§ã®ãã¼ã¿äº¤ä¿¡ã試ãã¾ãããµã¼ãã¼å´ã Perl ã«å¤ã£ã以å¤ã¯ PHPã§GET,POST ã¨ã¾ã£ããåãã§ãã GETã§é/åä¿¡ POSTã§é/åä¿¡ GETã§é/åä¿¡ GETã§éä¿¡ãããã¼ã¿ããåãåãã¾ãã [ ./test3.cgi ] #!/usr/bin/perl #POSTã¨GETãåå¾ if ($ENV{'REQUEST_METHOD'} eq "POST") { read(STDIN, $pos, $ENV{'CONTENT_LENGTH'}); } else { $get = $ENV{'QUERY_STRING'}; } #å¤æ°ã¯1
{{#tags}}- {{label}}
{{/tags}}