{"id":36,"date":"2021-11-21T09:55:58","date_gmt":"2021-11-21T01:55:58","guid":{"rendered":"https:\/\/lmceric.top\/?p=36"},"modified":"2021-11-21T09:56:00","modified_gmt":"2021-11-21T01:56:00","slug":"cppcgi","status":"publish","type":"post","link":"https:\/\/lmceric.top\/index.php\/2021\/11\/21\/36\/","title":{"rendered":"C++ CGIweb\u7f16\u7a0b"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">1.\u9884\u5907\u77e5\u8bc6<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">1.1 HTTP\u7b80\u4ecb<\/h3>\n\n\n\n<p>\u8d85\u6587\u672c\u4f20\u8f93\u534f\u8bae\u5c31\u662f\u6240\u8c13\u7684HTTP\uff0c\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u8bf7\u6c42-\u54cd\u5e94\u534f\u8bae\uff0c\u5b83\u901a\u5e38\u8fd0\u884c\u5728TCP\u4e4b\u4e0a\u3002\u5b83\u6307\u5b9a\u4e86\u5ba2\u6237\u7aef\u53ef\u80fd\u53d1\u9001\u7ed9\u670d\u52a1\u5668\u4ec0\u4e48\u6837\u7684\u6d88\u606f\u4ee5\u53ca\u5f97\u5230\u4ec0\u4e48\u6837\u7684\u54cd\u5e94\u3002\u8bf7\u6c42\u548c\u54cd\u5e94\u6d88\u606f\u7684\u5934\u4ee5ASCII\u5f62\u5f0f\u7ed9\u51fa\uff1b\u800c\u6d88\u606f\u5185\u5bb9\u5219\u5177\u6709\u4e00\u4e2a\u7c7b\u4f3cMIME\u7684\u683c\u5f0f\u3002\u8fd9\u4e2a\u7b80\u5355\u6a21\u578b\u662f\u65e9\u671fWeb\u6210\u529f\u7684\u6709\u529f\u4e4b\u81e3\uff0c\u56e0\u4e3a\u5b83\u4f7f\u5f00\u53d1\u548c\u90e8\u7f72\u975e\u5e38\u5730\u76f4\u622a\u4e86\u5f53\u3002<\/p>\n\n\n\n<p>\u4e07\u7ef4\u7f51WWW\uff08World Wide Web\uff09\u53d1\u6e90\u4e8e\u6b27\u6d32\u65e5\u5185\u74e6\u91cf\u5b50\u7269\u7406\u5b9e\u9a8c\u5ba4CERN\uff0c\u6b63\u662fWWW\u6280\u672f\u7684\u51fa\u73b0\u4f7f\u5f97\u56e0\u7279\u7f51\u5f97\u4ee5\u8d85\u4e4e\u60f3\u8c61\u7684\u901f\u5ea6\u8fc5\u731b\u53d1\u5c55\u3002\u8fd9\u9879\u57fa\u4e8eTCP\/IP\u7684\u6280\u672f\u5728\u77ed\u77ed\u7684\u5341\u5e74\u65f6\u95f4\u5185\u8fc5\u901f\u6210\u4e3a\u5df2\u7ecf\u53d1\u5c55\u4e86\u51e0\u5341\u5e74\u7684Internet\u4e0a\u7684\u89c4\u6a21\u6700\u5927\u7684\u4fe1\u606f\u7cfb\u7edf\uff0c\u5b83\u7684\u6210\u529f\u5f52\u7ed3\u4e8e\u5b83\u7684\u7b80\u5355\u3001\u5b9e\u7528\u3002\u5728WWW\u7684\u80cc\u540e\u6709\u4e00\u7cfb\u5217\u7684\u534f\u8bae\u548c\u6807\u51c6\u652f\u6301\u5b83\u5b8c\u6210\u5982\u6b64\u5b8f\u5927\u7684\u5de5\u4f5c\uff0c\u8fd9\u5c31\u662fWeb\u534f\u8bae\u65cf\uff0c\u5176\u4e2d\u5c31\u5305\u62ecHTTP\u8d85\u6587\u672c\u4f20\u8f93\u534f\u8bae\u3002<\/p>\n\n\n\n<p>\u57281990\u5e74\uff0cHTTP\u5c31\u6210\u4e3aWWW\u7684\u652f\u6491\u534f\u8bae\u3002\u5f53\u65f6\u7531\u5176\u521b\u59cb\u4ebaWWW\u4e4b\u7236\u8482\u59c6\u00b7\u8d1d\u7eb3\u65af\u00b7\u674e\uff08Tim Berners-Lee\uff09\u63d0\u51fa\uff0c\u968f\u540eWWW\u8054\u76df\uff08WWW Consortium\uff09\u6210\u7acb\uff0c\u7ec4\u7ec7\u4e86IETF\uff08Internet Engineering Task Force\uff09\u5c0f\u7ec4\u8fdb\u4e00\u6b65\u5b8c\u5584\u548c\u53d1\u5e03HTTP\u3002<\/p>\n\n\n\n<p>HTTP\u662f\u5e94\u7528\u5c42\u534f\u8bae\uff0c\u540c\u5176\u4ed6\u5e94\u7528\u5c42\u534f\u8bae\u4e00\u6837\uff0c\u662f\u4e3a\u4e86\u5b9e\u73b0\u67d0\u4e00\u7c7b\u5177\u4f53\u5e94\u7528\u7684\u534f\u8bae\uff0c\u5e76\u7531\u67d0\u4e00\u8fd0\u884c\u5728\u7528\u6237\u7a7a\u95f4\u7684\u5e94\u7528\u7a0b\u5e8f\u6765\u5b9e\u73b0\u5176\u529f\u80fd\u3002HTTP\u662f\u4e00\u79cd\u534f\u8bae\u89c4\u8303\uff0c\u8fd9\u79cd\u89c4\u8303\u8bb0\u5f55\u5728\u6587\u6863\u4e0a\uff0c\u4e3a\u771f\u6b63\u901a\u8fc7HTTP\u8fdb\u884c\u901a\u4fe1\u7684HTTP\u7684\u5b9e\u73b0\u7a0b\u5e8f\u3002<\/p>\n\n\n\n<p>HTTP\u662f\u57fa\u4e8eB\/S\u67b6\u6784\u8fdb\u884c\u901a\u4fe1\u7684\uff0c\u800cHTTP\u7684\u670d\u52a1\u5668\u7aef\u5b9e\u73b0\u7a0b\u5e8f\u6709httpd\u3001nginx\u7b49\uff0c\u5176\u5ba2\u6237\u7aef\u7684\u5b9e\u73b0\u7a0b\u5e8f\u4e3b\u8981\u662fWeb\u6d4f\u89c8\u5668\uff0c\u4f8b\u5982Firefox\u3001Internet Explorer\u3001Google Chrome\u3001Safari\u3001Opera\u7b49\uff0c\u6b64\u5916\uff0c\u5ba2\u6237\u7aef\u7684\u547d\u4ee4\u884c\u5de5\u5177\u8fd8\u6709elink\u3001curl\u7b49\u3002Web\u670d\u52a1\u662f\u57fa\u4e8eTCP\u7684\uff0c\u56e0\u6b64\u4e3a\u4e86\u80fd\u591f\u968f\u65f6\u54cd\u5e94\u5ba2\u6237\u7aef\u7684\u8bf7\u6c42\uff0cWeb\u670d\u52a1\u5668\u9700\u8981\u76d1\u542c\u572880\/TCP\u7aef\u53e3\u3002\u8fd9\u6837\u5ba2\u6237\u7aef\u6d4f\u89c8\u5668\u548cWeb\u670d\u52a1\u5668\u4e4b\u95f4\u5c31\u53ef\u4ee5\u901a\u8fc7HTTP\u8fdb\u884c\u901a\u4fe1\u4e86\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">1.2 \u5de5\u4f5c\u539f\u7406<\/h3>\n\n\n\n<p>HTTP\u662f\u57fa\u4e8e\u5ba2\u6237\/\u670d\u52a1\u5668\u6a21\u5f0f\uff0c\u4e14\u9762\u5411\u8fde\u63a5\u7684\u3002\u5178\u578b\u7684HTTP\u4e8b\u52a1\u5904\u7406\u6709\u5982\u4e0b\u7684\u8fc7\u7a0b\uff1a<\/p>\n\n\n\n<p>\uff081\uff09\u5ba2\u6237\u4e0e\u670d\u52a1\u5668\u5efa\u7acb\u8fde\u63a5\uff1b<\/p>\n\n\n\n<p>\uff082\uff09\u5ba2\u6237\u5411\u670d\u52a1\u5668\u63d0\u51fa\u8bf7\u6c42\uff1b<\/p>\n\n\n\n<p>\uff083\uff09\u670d\u52a1\u5668\u63a5\u53d7\u8bf7\u6c42\uff0c\u5e76\u6839\u636e\u8bf7\u6c42\u8fd4\u56de\u76f8\u5e94\u7684\u6587\u4ef6\u4f5c\u4e3a\u5e94\u7b54\uff1b<\/p>\n\n\n\n<p>\uff084\uff09\u5ba2\u6237\u4e0e\u670d\u52a1\u5668\u5173\u95ed\u8fde\u63a5\u3002<\/p>\n\n\n\n<p>\u5ba2\u6237\u4e0e\u670d\u52a1\u5668\u4e4b\u95f4\u7684HTTP\u8fde\u63a5\u662f\u4e00\u79cd\u4e00\u6b21\u6027\u8fde\u63a5\uff0c\u5b83\u9650\u5236\u6bcf\u6b21\u8fde\u63a5\u53ea\u5904\u7406\u4e00\u4e2a\u8bf7\u6c42\uff0c\u5f53\u670d\u52a1\u5668\u8fd4\u56de\u672c\u6b21\u8bf7\u6c42\u7684\u5e94\u7b54\u540e\u4fbf\u7acb\u5373\u5173\u95ed\u8fde\u63a5\uff0c\u4e0b\u6b21\u8bf7\u6c42\u518d\u91cd\u65b0\u5efa\u7acb\u8fde\u63a5\u3002\u8fd9\u79cd\u4e00\u6b21\u6027\u8fde\u63a5\u4e3b\u8981\u8003\u8651\u5230WWW\u670d\u52a1\u5668\u9762\u5411\u7684\u662fInternet\u4e2d\u6210\u5343\u4e0a\u4e07\u4e2a\u7528\u6237\uff0c\u4e14\u53ea\u80fd\u63d0\u4f9b\u6709\u9650\u4e2a\u8fde\u63a5\uff0c\u6545\u670d\u52a1\u5668\u4e0d\u4f1a\u8ba9\u4e00\u4e2a\u8fde\u63a5\u5904\u4e8e\u7b49\u5f85\u72b6\u6001\uff0c\u53ca\u65f6\u5730\u91ca\u653e\u8fde\u63a5\u53ef\u4ee5\u5927\u5927\u63d0\u9ad8\u670d\u52a1\u5668\u7684\u6267\u884c\u6548\u7387\u3002<\/p>\n\n\n\n<p>HTTP\u662f\u4e00\u79cd\u65e0\u72b6\u6001\u534f\u8bae\uff0c\u5373\u670d\u52a1\u5668\u4e0d\u4fdd\u7559\u4e0e\u5ba2\u6237\u4ea4\u6613\u65f6\u7684\u4efb\u4f55\u72b6\u6001\u3002\u8fd9\u5c31\u5927\u5927\u51cf\u8f7b\u4e86\u670d\u52a1\u5668\u8bb0\u5fc6\u8d1f\u62c5\uff0c\u4ece\u800c\u4fdd\u6301\u8f83\u5feb\u7684\u54cd\u5e94\u901f\u5ea6\u3002HTTP\u662f\u4e00\u79cd\u9762\u5411\u5bf9\u8c61\u7684\u534f\u8bae\u3002\u5141\u8bb8\u4f20\u9001\u4efb\u610f\u7c7b\u578b\u7684\u6570\u636e\u5bf9\u8c61\u3002\u5b83\u901a\u8fc7\u6570\u636e\u7c7b\u578b\u548c\u957f\u5ea6\u6765\u6807\u8bc6\u6240\u4f20\u9001\u7684\u6570\u636e\u5185\u5bb9\u548c\u5927\u5c0f\uff0c\u5e76\u5141\u8bb8\u5bf9\u6570\u636e\u8fdb\u884c\u538b\u7f29\u4f20\u9001\u3002\u5f53\u7528\u6237\u5728\u4e00\u4e2aHTML\u6587\u6863\u4e2d\u5b9a\u4e49\u4e86\u4e00\u4e2a\u8d85\u6587\u672c\u94fe\u540e\uff0c\u6d4f\u89c8\u5668\u5c06\u901a\u8fc7TCP\/IP\u534f\u8bae\u4e0e\u6307\u5b9a\u7684\u670d\u52a1\u5668\u5efa\u7acb\u8fde\u63a5\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">1.3 \u57fa\u672c\u65b9\u6cd5<\/h3>\n\n\n\n<p>HTTP\u5305\u542b8\u79cd\u4e3b\u8981\u65b9\u6cd5\uff0c\u5982\u4e0b<\/p>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table><thead><tr><th>\u65b9\u6cd5<\/th><th>\u542b\u4e49<\/th><\/tr><\/thead><tbody><tr><td>GET<\/td><td>\u8fd4\u56deURL\u6307\u5b9a\u4fe1\u606f\uff0c\u5982\u679cURL\u6307\u5b9a\u7684\u662f\u6587\u4ef6\uff0c\u5219\u8fd4\u56de\u6587\u4ef6\u5185\u5bb9\uff1b\u5982\u679cURL\u6307\u5b9a\u7684\u662fCGI\u7a0b\u5e8f\uff0c\u5219\u8fd4\u56de\u8be5\u7a0b\u5e8f\u8f93\u51fa\u5185\u5bb9\u3002<\/td><\/tr><tr><td>POST<\/td><td>\u4ece\u5ba2\u6237\u7aef\u5411\u670d\u52a1\u5668\u53d1\u9001\u6570\u636e\uff0c\u4e00\u822c\u7528\u4e8e\u53d1\u9001\u8868\u5355\u4e2d\u586b\u5199\u7684\u6570\u636e\u7b49\u60c5\u51b5\u4e0b<\/td><\/tr><tr><td>HEAD<\/td><td>\u548cGET\u57fa\u672c\u76f8\u540c\uff0c\u4e0d\u8fc7\u5b83\u53ea\u8fd4\u56deHTTP\u7684\u6d88\u606f\u5934\uff08message header\uff09\u7684\u5185\u5bb9\uff0c\u800c\u4e0d\u662f\u6570\u636e\u7684\u5185\u5bb9\u3002\u901a\u5e38\u7528\u4e8e\u83b7\u53d6\u6587\u4ef6\u6700\u540e\u66f4\u65b0\u65f6\u95f4\u7b49\u5c5e\u6027\u4fe1\u606f<\/td><\/tr><tr><td>OPTIONS<\/td><td>\u7528\u4e8e\u901a\u77e5\u6216\u8005\u67e5\u8be2\u901a\u4fe1\u9009\u9879<\/td><\/tr><tr><td>PUT<\/td><td>\u66ff\u6362URL\u6307\u5b9a\u670d\u52a1\u5668\u4e0a\u7684\u6587\u4ef6\u3002\u5982\u679cURL\u6307\u5b9a\u7684\u6587\u4ef6\u4e0d\u5b58\u5728\uff0c\u5219\u521b\u5efa\u8be5\u6587\u4ef6<\/td><\/tr><tr><td>DELETE<\/td><td>\u5220\u9664URL\u6307\u5b9a\u670d\u52a1\u5668\u4e0a\u7684\u6587\u4ef6<\/td><\/tr><tr><td>TRACE<\/td><td>\u5c06\u670d\u52a1\u5668\u6536\u5230\u7684\u8bf7\u6c42\u884c\u548c\u5934\u90e8\uff08header\uff09\u76f4\u63a5\u8fd4\u56de\u7ed9\u5ba2\u6237\u7aef\uff0c\u7528\u4e8e\u5728\u4f7f\u7528\u4ee3\u7406\u73af\u5883\u4e2d\u68c0\u67e5\u6539\u5199\u8bf7\u6c42\u7684\u60c5\u51b5<\/td><\/tr><tr><td>CONNECT<\/td><td>\u4f7f\u7528\u4ee3\u7406\u4f20\u8f93\u52a0\u5bc6\u6d88\u606f\u65f6\u4f7f\u7528\u7684\u65b9\u6cd5<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>\u5982\u679c\u80fd\u89c4\u907f\u5b89\u5168\u95ee\u9898\uff0c\u4f8b\u5982\u5c06\u8bbf\u95ee\u9650\u5236\u5728\u5c40\u57df\u7f51\u5185\uff0c\u90a3\u4e48\u4f7f\u7528PUT\u3001DELETE\u7b49\u65b9\u6cd5\u662f\u6709\u6548\u7684\u3002\u4e8b\u5b9e\u4e0a\uff0c\u4e0a\u8ff0\u65b9\u6cd5\u73b0\u5728\u5e38\u7528\u5728RESRful API\u7684\u8bbe\u8ba1\u4e2d\uff0c\u5728\u624b\u673aAPP\u548c\u540e\u7aef\u670d\u52a1\u5668\u4ea4\u4e92\u65f6\u5e38\u7528\u5230\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">1.4 \u751f\u6210HTTP\u8bf7\u6c42<\/h3>\n\n\n\n<p>\u5728\u5bf9URL\u8fdb\u884c\u89e3\u6790\u4e4b\u540e\uff0c\u6d4f\u89c8\u5668\u786e\u5b9a\u4e86Web\u670d\u52a1\u5668\u548c\u6587\u4ef6\u540d\uff0c\u63a5\u4e0b\u6765\u6d4f\u89c8\u5668\u5c06\u4f9d\u636e\u8fd9\u4e9b\u4fe1\u606f\u751f\u6210HTTP\u8bf7\u6c42\u6d88\u606f\u4e86\u3002<\/p>\n\n\n\n<p>HTTP\u6d88\u606f\u5728\u683c\u5f0f\u4e0a\u62e5\u6709\u4e25\u683c\u7684\u89c4\u5b9a\uff0c\u56e0\u6b64\u5ba2\u6237\u7aef\u5fc5\u987b\u6309\u7167\u89c4\u5b9a\u683c\u5f0f\u751f\u6210\u8bf7\u6c42\u6d88\u606f\uff0c\u5982\u4e0b<\/p>\n\n\n\n<p>\uff08a\uff09\u8bf7\u6c42\u6d88\u606f<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&lt;\u65b9\u6cd5&gt;&lt;\u7a7a\u683c&gt;&lt;URL&gt;&lt;\u7a7a\u683c&gt;&lt;HTTP\u7248\u672c&gt; &nbsp; \u8fd9\u4e00\u884c\u79f0\u4e3a\u8bf7\u6c42\u5934\uff0c\u901a\u8fc7\u8fd9\u4e00\u884c\u53ef\u4ee5\u5927\u81f4\u4e86\u89e3\u8bf7\u6c42\u5185\u5bb9<br>&lt;\u5b57\u6bb5\u540d&gt;:&lt;\u5b57\u6bb5\u503c&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  -<br>... &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; |<br>... &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; |---\u6d88\u606f\u5934\uff0c\u6bcf\u884c\u5305\u542b\u4e00\u4e2a\u5934\u5b57\u6bb5\uff0c\u7528\u4e8e\u8868\u793a\u8bf7\u6c42\u7684\u9644\u52a0\u4fe1\u606f\u3002\u6d88\u606f\u5934\u7684\u884c\u6570\u6839\u636e\u5177\u4f53 ... &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; | &nbsp; \u60c5\u51b5\u53ef\u53d8\uff0c\u4e00\u76f4\u5ef6\u7533\u5230\u7a7a\u884c\u4e3a\u6b62\u3002<br>... &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -<br>&lt;\u7a7a\u884c&gt;<br>&lt;\u6d88\u606f\u4f53&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \u6d88\u606f\u4f53\u5305\u542b\u5ba2\u6237\u7aef\u60f3\u670d\u52a1\u5668\u53d1\u9001\u7684\u6570\u636e\uff0c\u4f8b\u5982POST\u65b9\u6cd5\u63d0\u4ea4\u7684\u8868\u5355\u3002<\/pre>\n\n\n\n<p>\uff08b\uff09\u54cd\u5e94\u6d88\u606f<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&lt;HTTP\u7248\u672c&gt;&lt;\u7a7a\u683c&gt;&lt;\u72b6\u6001\u7801&gt;&lt;\u7a7a\u683c&gt;&lt;\u54cd\u5e94\u77ed\u8bed&gt; &nbsp; &nbsp; <br>&lt;\u5b57\u6bb5\u540d&gt;:&lt;\u5b57\u6bb5\u503c&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  -<br>... &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; |<br>... &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; |--- \u6d88\u606f\u5934<br>... &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -<br>&lt;\u7a7a\u884c&gt;<br>&lt;\u6d88\u606f\u4f53&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \u6d88\u606f\u4f53\u5305\u542b\u670d\u52a1\u5668\u5411\u5ba2\u6237\u7aef\u53d1\u9001\u7684\u6570\u636e\u3002\u6d88\u606f\u4f53\u4f5c\u4e3a\u4e8c\u8fdb\u5236\u6570\u636e\u5904\u7406\u3002<\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">1.4.1 HTTP\u72b6\u6001\u7801<\/h4>\n\n\n\n<p>1xx \uff1a\u4fe1\u606f<\/p>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table><thead><tr><th>\u6d88\u606f<\/th><th>\u63cf\u8ff0<\/th><\/tr><\/thead><tbody><tr><td>100 Continue<\/td><td>\u670d\u52a1\u5668\u4ec5\u63a5\u6536\u5230\u90e8\u5206\u8bf7\u6c42\uff0c\u4f46\u662f\u4e00\u65e6\u670d\u52a1\u5668\u5e76\u6ca1\u6709\u62d2\u7edd\u8be5\u8bf7\u6c42\uff0c\u5ba2\u6237\u7aef\u5e94\u8be5\u7ee7\u7eed\u53d1\u9001\u5176\u4f59\u7684\u8bf7\u6c42\u3002<\/td><\/tr><tr><td>101 Switching Protocols<\/td><td>\u670d\u52a1\u5668\u8f6c\u6362\u534f\u8bae\uff1a\u670d\u52a1\u5668\u5c06\u9075\u4ece\u5ba2\u6237\u7684\u8bf7\u6c42\u8f6c\u6362\u5230\u53e6\u5916\u4e00\u79cd\u534f\u8bae\u3002<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>2xx:\u6210\u529f<\/p>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table><thead><tr><th>\u6d88\u606f<\/th><th>\u63cf\u8ff0<\/th><\/tr><\/thead><tbody><tr><td>200 OK<\/td><td>\u8bf7\u6c42\u6210\u529f\uff08\u5176\u540e\u662f\u5bf9GET\u548cPOST\u8bf7\u6c42\u7684\u5e94\u7b54\u6587\u6863\u3002\uff09<\/td><\/tr><tr><td>201 Created<\/td><td>\u8bf7\u6c42\u88ab\u521b\u5efa\u5b8c\u6210\uff0c\u540c\u65f6\u65b0\u7684\u8d44\u6e90\u88ab\u521b\u5efa\u3002<\/td><\/tr><tr><td>202 Accepted<\/td><td>\u4f9b\u5904\u7406\u7684\u8bf7\u6c42\u5df2\u88ab\u63a5\u53d7\uff0c\u4f46\u662f\u5904\u7406\u672a\u5b8c\u6210\u3002<\/td><\/tr><tr><td>203 Non-authoritative Information<\/td><td>\u6587\u6863\u5df2\u7ecf\u6b63\u5e38\u5730\u8fd4\u56de\uff0c\u4f46\u4e00\u4e9b\u5e94\u7b54\u5934\u53ef\u80fd\u4e0d\u6b63\u786e\uff0c\u56e0\u4e3a\u4f7f\u7528\u7684\u662f\u6587\u6863\u7684\u62f7\u8d1d\u3002<\/td><\/tr><tr><td>204 No Content<\/td><td>\u6ca1\u6709\u65b0\u6587\u6863\u3002\u6d4f\u89c8\u5668\u5e94\u8be5\u7ee7\u7eed\u663e\u793a\u539f\u6765\u7684\u6587\u6863\u3002\u5982\u679c\u7528\u6237\u5b9a\u671f\u5730\u5237\u65b0\u9875\u9762\uff0c\u800cServlet\u53ef\u4ee5\u786e\u5b9a\u7528\u6237\u6587\u6863\u8db3\u591f\u65b0\uff0c\u8fd9\u4e2a\u72b6\u6001\u4ee3\u7801\u662f\u5f88\u6709\u7528\u7684\u3002<\/td><\/tr><tr><td>205 Reset Content<\/td><td>\u6ca1\u6709\u65b0\u6587\u6863\u3002\u4f46\u6d4f\u89c8\u5668\u5e94\u8be5\u91cd\u7f6e\u5b83\u6240\u663e\u793a\u7684\u5185\u5bb9\u3002\u7528\u6765\u5f3a\u5236\u6d4f\u89c8\u5668\u6e05\u9664\u8868\u5355\u8f93\u5165\u5185\u5bb9\u3002<\/td><\/tr><tr><td>206 Partial Content<\/td><td>\u5ba2\u6237\u53d1\u9001\u4e86\u4e00\u4e2a\u5e26\u6709Range\u5934\u7684GET\u8bf7\u6c42\uff0c\u670d\u52a1\u5668\u5b8c\u6210\u4e86\u5b83\u3002<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>3xx:\u91cd\u5b9a\u5411<\/p>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table><thead><tr><th>\u6d88\u606f<\/th><th>\u63cf\u8ff0<\/th><\/tr><\/thead><tbody><tr><td>300 Multiple Choices<\/td><td>\u591a\u91cd\u9009\u62e9\u3002\u94fe\u63a5\u5217\u8868\u3002\u7528\u6237\u53ef\u4ee5\u9009\u62e9\u67d0\u94fe\u63a5\u5230\u8fbe\u76ee\u7684\u5730\u3002\u6700\u591a\u5141\u8bb8\u4e94\u4e2a\u5730\u5740\u3002<\/td><\/tr><tr><td>301 Moved Permanently<\/td><td>\u6240\u8bf7\u6c42\u7684\u9875\u9762\u5df2\u7ecf\u8f6c\u79fb\u81f3\u65b0\u7684url\u3002<\/td><\/tr><tr><td>302 Found<\/td><td>\u6240\u8bf7\u6c42\u7684\u9875\u9762\u5df2\u7ecf\u4e34\u65f6\u8f6c\u79fb\u81f3\u65b0\u7684url\u3002<\/td><\/tr><tr><td>303 See Other<\/td><td>\u6240\u8bf7\u6c42\u7684\u9875\u9762\u53ef\u5728\u522b\u7684url\u4e0b\u88ab\u627e\u5230\u3002<\/td><\/tr><tr><td>304 Not Modified<\/td><td>\u672a\u6309\u9884\u671f\u4fee\u6539\u6587\u6863\u3002\u5ba2\u6237\u7aef\u6709\u7f13\u51b2\u7684\u6587\u6863\u5e76\u53d1\u51fa\u4e86\u4e00\u4e2a\u6761\u4ef6\u6027\u7684\u8bf7\u6c42\uff08\u4e00\u822c\u662f\u63d0\u4f9bIf-Modified-Since\u5934\u8868\u793a\u5ba2\u6237\u53ea\u60f3\u6bd4\u6307\u5b9a\u65e5\u671f\u66f4\u65b0\u7684\u6587\u6863\uff09\u3002\u670d\u52a1\u5668\u544a\u8bc9\u5ba2\u6237\uff0c\u539f\u6765\u7f13\u51b2\u7684\u6587\u6863\u8fd8\u53ef\u4ee5\u7ee7\u7eed\u4f7f\u7528\u3002<\/td><\/tr><tr><td>305 Use Proxy<\/td><td>\u5ba2\u6237\u8bf7\u6c42\u7684\u6587\u6863\u5e94\u8be5\u901a\u8fc7Location\u5934\u6240\u6307\u660e\u7684\u4ee3\u7406\u670d\u52a1\u5668\u63d0\u53d6\u3002<\/td><\/tr><tr><td>306&nbsp;<em>Unused<\/em><\/td><td>\u6b64\u4ee3\u7801\u88ab\u7528\u4e8e\u524d\u4e00\u7248\u672c\u3002\u76ee\u524d\u5df2\u4e0d\u518d\u4f7f\u7528\uff0c\u4f46\u662f\u4ee3\u7801\u4f9d\u7136\u88ab\u4fdd\u7559\u3002<\/td><\/tr><tr><td>307 Temporary Redirect<\/td><td>\u88ab\u8bf7\u6c42\u7684\u9875\u9762\u5df2\u7ecf\u4e34\u65f6\u79fb\u81f3\u65b0\u7684url\u3002<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>4xx:\u5ba2\u6237\u7aef\u9519\u8bef<\/p>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table><thead><tr><th>\u6d88\u606f<\/th><th>\u63cf\u8ff0<\/th><\/tr><\/thead><tbody><tr><td>400 Bad Request<\/td><td>\u670d\u52a1\u5668\u672a\u80fd\u7406\u89e3\u8bf7\u6c42\u3002<\/td><\/tr><tr><td>401 Unauthorized<\/td><td>\u88ab\u8bf7\u6c42\u7684\u9875\u9762\u9700\u8981\u7528\u6237\u540d\u548c\u5bc6\u7801\u3002<\/td><\/tr><tr><td>401.1<\/td><td>\u767b\u5f55\u5931\u8d25\u3002<\/td><\/tr><tr><td>401.2<\/td><td>\u670d\u52a1\u5668\u914d\u7f6e\u5bfc\u81f4\u767b\u5f55\u5931\u8d25\u3002<\/td><\/tr><tr><td>401.3<\/td><td>\u7531\u4e8eACL\u5bf9\u8d44\u6e90\u7684\u9650\u5236\u800c\u672a\u83b7\u5f97\u6388\u6743\u3002<\/td><\/tr><tr><td>401.4<\/td><td>\u7b5b\u9009\u5668\u6388\u6743\u5931\u8d25\u3002<\/td><\/tr><tr><td>401.5<\/td><td>ISAPI\/CGI\u5e94\u7528\u7a0b\u5e8f\u6388\u6743\u5931\u8d25\u3002<\/td><\/tr><tr><td>401.7<\/td><td>\u8bbf\u95ee\u88abWeb\u670d\u52a1\u5668\u4e0a\u7684URL\u6388\u6743\u7b56\u7565\u62d2\u7edd\u3002\u8fd9\u4e2a\u9519\u8bef\u4ee3\u7801\u4e3aIIS 6.0\u6240\u4e13\u7528\u3002<\/td><\/tr><tr><td>402 Payment Required<\/td><td>\u6b64\u4ee3\u7801\u5c1a\u65e0\u6cd5\u4f7f\u7528\u3002<\/td><\/tr><tr><td>403 Forbidden<\/td><td>\u5bf9\u88ab\u8bf7\u6c42\u9875\u9762\u7684\u8bbf\u95ee\u88ab\u7981\u6b62\u3002<\/td><\/tr><tr><td>403.1<\/td><td>\u6267\u884c\u8bbf\u95ee\u88ab\u7981\u6b62\u3002<\/td><\/tr><tr><td>403.2<\/td><td>\u8bfb\u8bbf\u95ee\u88ab\u7981\u6b62\u3002<\/td><\/tr><tr><td>403.3<\/td><td>\u5199\u8bbf\u95ee\u88ab\u7981\u6b62\u3002<\/td><\/tr><tr><td>403.4<\/td><td>\u8981\u6c42SSL\u3002<\/td><\/tr><tr><td>403.5<\/td><td>\u8981\u6c42SSL 128\u3002<\/td><\/tr><tr><td>403.6<\/td><td>IP\u5730\u5740\u88ab\u62d2\u7edd\u3002<\/td><\/tr><tr><td>403.7<\/td><td>\u8981\u6c42\u5ba2\u6237\u7aef\u8bc1\u4e66\u3002<\/td><\/tr><tr><td>403.8<\/td><td>\u7ad9\u70b9\u8bbf\u95ee\u88ab\u62d2\u7edd\u3002<\/td><\/tr><tr><td>403.9<\/td><td>\u7528\u6237\u6570\u8fc7\u591a\u3002<\/td><\/tr><tr><td>403.10<\/td><td>\u914d\u7f6e\u65e0\u6548\u3002<\/td><\/tr><tr><td>403.11<\/td><td>\u5bc6\u7801\u66f4\u6539\u3002<\/td><\/tr><tr><td>403.12<\/td><td>\u62d2\u7edd\u8bbf\u95ee\u6620\u5c04\u8868\u3002<\/td><\/tr><tr><td>403.13<\/td><td>\u5ba2\u6237\u7aef\u8bc1\u4e66\u88ab\u540a\u9500\u3002<\/td><\/tr><tr><td>403.14<\/td><td>\u62d2\u7edd\u76ee\u5f55\u5217\u8868\u3002<\/td><\/tr><tr><td>403.15<\/td><td>\u8d85\u51fa\u5ba2\u6237\u7aef\u8bbf\u95ee\u8bb8\u53ef\u3002<\/td><\/tr><tr><td>403.16<\/td><td>\u5ba2\u6237\u7aef\u8bc1\u4e66\u4e0d\u53d7\u4fe1\u4efb\u6216\u65e0\u6548\u3002<\/td><\/tr><tr><td>403.17<\/td><td>\u5ba2\u6237\u7aef\u8bc1\u4e66\u5df2\u8fc7\u671f\u6216\u5c1a\u672a\u751f\u6548\u3002<\/td><\/tr><tr><td>403.18<\/td><td>\u5728\u5f53\u524d\u7684\u5e94\u7528\u7a0b\u5e8f\u6c60\u4e2d\u4e0d\u80fd\u6267\u884c\u6240\u8bf7\u6c42\u7684URL\u3002\u8fd9\u4e2a\u9519\u8bef\u4ee3\u7801\u4e3aIIS 6.0\u6240\u4e13\u7528\u3002<\/td><\/tr><tr><td>403.19<\/td><td>\u4e0d\u80fd\u4e3a\u8fd9\u4e2a\u5e94\u7528\u7a0b\u5e8f\u6c60\u4e2d\u7684\u5ba2\u6237\u7aef\u6267\u884cCGI\u3002\u8fd9\u4e2a\u9519\u8bef\u4ee3\u7801\u4e3aIIS 6.0\u6240\u4e13\u7528\u3002<\/td><\/tr><tr><td>403.20<\/td><td>Passport\u767b\u5f55\u5931\u8d25\u3002\u8fd9\u4e2a\u9519\u8bef\u4ee3\u7801\u4e3aIIS 6.0\u6240\u4e13\u7528\u3002<\/td><\/tr><tr><td>404 Not Found<\/td><td>\u670d\u52a1\u5668\u65e0\u6cd5\u627e\u5230\u88ab\u8bf7\u6c42\u7684\u9875\u9762\u3002<\/td><\/tr><tr><td>404.0<\/td><td>\uff08\u65e0\uff09\u2013\u6ca1\u6709\u627e\u5230\u6587\u4ef6\u6216\u76ee\u5f55\u3002<\/td><\/tr><tr><td>404.1<\/td><td>\u65e0\u6cd5\u5728\u6240\u8bf7\u6c42\u7684\u7aef\u53e3\u4e0a\u8bbf\u95eeWeb\u7ad9\u70b9\u3002<\/td><\/tr><tr><td>404.2<\/td><td>Web\u670d\u52a1\u6269\u5c55\u9501\u5b9a\u7b56\u7565\u963b\u6b62\u672c\u8bf7\u6c42\u3002<\/td><\/tr><tr><td>404.3<\/td><td>MIME\u6620\u5c04\u7b56\u7565\u963b\u6b62\u672c\u8bf7\u6c42\u3002<\/td><\/tr><tr><td>405 Method Not Allowed<\/td><td>\u8bf7\u6c42\u4e2d\u6307\u5b9a\u7684\u65b9\u6cd5\u4e0d\u88ab\u5141\u8bb8\u3002<\/td><\/tr><tr><td>406 Not Acceptable<\/td><td>\u670d\u52a1\u5668\u751f\u6210\u7684\u54cd\u5e94\u65e0\u6cd5\u88ab\u5ba2\u6237\u7aef\u6240\u63a5\u53d7\u3002<\/td><\/tr><tr><td>407 Proxy Authentication Required<\/td><td>\u7528\u6237\u5fc5\u987b\u9996\u5148\u4f7f\u7528\u4ee3\u7406\u670d\u52a1\u5668\u8fdb\u884c\u9a8c\u8bc1\uff0c\u8fd9\u6837\u8bf7\u6c42\u624d\u4f1a\u88ab\u5904\u7406\u3002<\/td><\/tr><tr><td>408 Request Timeout<\/td><td>\u8bf7\u6c42\u8d85\u51fa\u4e86\u670d\u52a1\u5668\u7684\u7b49\u5f85\u65f6\u95f4\u3002<\/td><\/tr><tr><td>409 Conflict<\/td><td>\u7531\u4e8e\u51b2\u7a81\uff0c\u8bf7\u6c42\u65e0\u6cd5\u88ab\u5b8c\u6210\u3002<\/td><\/tr><tr><td>410 Gone<\/td><td>\u88ab\u8bf7\u6c42\u7684\u9875\u9762\u4e0d\u53ef\u7528\u3002<\/td><\/tr><tr><td>411 Length Required<\/td><td>\u201cContent-Length\u201d\u672a\u88ab\u5b9a\u4e49\u3002\u5982\u679c\u65e0\u6b64\u5185\u5bb9\uff0c\u670d\u52a1\u5668\u4e0d\u4f1a\u63a5\u53d7\u8bf7\u6c42\u3002<\/td><\/tr><tr><td>412 Precondition Failed<\/td><td>\u8bf7\u6c42\u4e2d\u7684\u524d\u63d0\u6761\u4ef6\u88ab\u670d\u52a1\u5668\u8bc4\u4f30\u4e3a\u5931\u8d25\u3002<\/td><\/tr><tr><td>413 Request Entity Too Large<\/td><td>\u7531\u4e8e\u6240\u8bf7\u6c42\u7684\u5b9e\u4f53\u7684\u592a\u5927\uff0c\u670d\u52a1\u5668\u4e0d\u4f1a\u63a5\u53d7\u8bf7\u6c42\u3002<\/td><\/tr><tr><td>414 Request-url Too Long<\/td><td>\u7531\u4e8eurl\u592a\u957f\uff0c\u670d\u52a1\u5668\u4e0d\u4f1a\u63a5\u53d7\u8bf7\u6c42\u3002\u5f53post\u8bf7\u6c42\u88ab\u8f6c\u6362\u4e3a\u5e26\u6709\u5f88\u957f\u7684\u67e5\u8be2\u4fe1\u606f\u7684get\u8bf7\u6c42\u65f6\uff0c\u5c31\u4f1a\u53d1\u751f\u8fd9\u79cd\u60c5\u51b5\u3002<\/td><\/tr><tr><td>415 Unsupported Media Type<\/td><td>\u7531\u4e8e\u5a92\u4ecb\u7c7b\u578b\u4e0d\u88ab\u652f\u6301\uff0c\u670d\u52a1\u5668\u4e0d\u4f1a\u63a5\u53d7\u8bf7\u6c42\u3002<\/td><\/tr><tr><td>416 Requested Range Not Satisfiable<\/td><td>\u670d\u52a1\u5668\u4e0d\u80fd\u6ee1\u8db3\u5ba2\u6237\u5728\u8bf7\u6c42\u4e2d\u6307\u5b9a\u7684Range\u5934\u3002<\/td><\/tr><tr><td>417 Expectation Failed<\/td><td>\u6267\u884c\u5931\u8d25\u3002<\/td><\/tr><tr><td>423<\/td><td>\u9501\u5b9a\u7684\u9519\u8bef\u3002<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>5xx:\u670d\u52a1\u5668\u9519\u8bef<\/p>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table><thead><tr><th>\u6d88\u606f<\/th><th>\u63cf\u8ff0<\/th><\/tr><\/thead><tbody><tr><td>500 Internal Server Error<\/td><td>\u8bf7\u6c42\u672a\u5b8c\u6210\u3002\u670d\u52a1\u5668\u9047\u5230\u4e0d\u53ef\u9884\u77e5\u7684\u60c5\u51b5\u3002<\/td><\/tr><tr><td>500.12<\/td><td>\u5e94\u7528\u7a0b\u5e8f\u6b63\u5fd9\u4e8e\u5728Web\u670d\u52a1\u5668\u4e0a\u91cd\u65b0\u542f\u52a8\u3002<\/td><\/tr><tr><td>500.13<\/td><td>Web\u670d\u52a1\u5668\u592a\u5fd9\u3002<\/td><\/tr><tr><td>500.15<\/td><td>\u4e0d\u5141\u8bb8\u76f4\u63a5\u8bf7\u6c42Global.asa\u3002<\/td><\/tr><tr><td>500.16<\/td><td>UNC\u6388\u6743\u51ed\u636e\u4e0d\u6b63\u786e\u3002\u8fd9\u4e2a\u9519\u8bef\u4ee3\u7801\u4e3aIIS 6.0\u6240\u4e13\u7528\u3002<\/td><\/tr><tr><td>500.18<\/td><td>URL\u6388\u6743\u5b58\u50a8\u4e0d\u80fd\u6253\u5f00\u3002\u8fd9\u4e2a\u9519\u8bef\u4ee3\u7801\u4e3aIIS 6.0\u6240\u4e13\u7528\u3002<\/td><\/tr><tr><td>500.100<\/td><td>\u5185\u90e8ASP\u9519\u8bef\u3002<\/td><\/tr><tr><td>501 Not Implemented<\/td><td>\u8bf7\u6c42\u672a\u5b8c\u6210\u3002\u670d\u52a1\u5668\u4e0d\u652f\u6301\u6240\u8bf7\u6c42\u7684\u529f\u80fd\u3002<\/td><\/tr><tr><td>502 Bad Gateway<\/td><td>\u8bf7\u6c42\u672a\u5b8c\u6210\u3002\u670d\u52a1\u5668\u4ece\u4e0a\u6e38\u670d\u52a1\u5668\u6536\u5230\u4e00\u4e2a\u65e0\u6548\u7684\u54cd\u5e94\u3002<\/td><\/tr><tr><td>502.1<\/td><td>CGI\u5e94\u7528\u7a0b\u5e8f\u8d85\u65f6\u3002<\/td><\/tr><tr><td>502.2<\/td><td>CGI\u5e94\u7528\u7a0b\u5e8f\u51fa\u9519\u3002<\/td><\/tr><tr><td>503 Service Unavailable<\/td><td>\u8bf7\u6c42\u672a\u5b8c\u6210\u3002\u670d\u52a1\u5668\u4e34\u65f6\u8fc7\u8f7d\u6216\u5b95\u673a\u3002<\/td><\/tr><tr><td>504 Gateway Timeout<\/td><td>\u7f51\u5173\u8d85\u65f6\u3002<\/td><\/tr><tr><td>505 HTTP Version Not Supported<\/td><td>\u670d\u52a1\u5668\u4e0d\u652f\u6301\u8bf7\u6c42\u4e2d\u6307\u660e\u7684HTTP\u7248\u672c\u3002<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">2.\u4ee3\u7801\u5b9e\u73b0<\/h2>\n\n\n\n<p>\u6211\u4eec\u4f7f\u7528CGI\u54cd\u5e94HTTP\u8bf7\u6c42<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">2.1 CGI<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">2.1.1 \u4ec0\u4e48\u662fCGI\uff1f<\/h4>\n\n\n\n<ul class=\"wp-block-list\"><li>\u516c\u5171\u7f51\u5173\u63a5\u53e3\uff08CGI\uff09\uff0c\u662f\u4e00\u5957\u6807\u51c6\uff0c\u5b9a\u4e49\u4e86\u4fe1\u606f\u662f\u5982\u4f55\u5728 Web \u670d\u52a1\u5668\u548c\u5ba2\u6237\u7aef\u811a\u672c\u4e4b\u95f4\u8fdb\u884c\u4ea4\u6362\u7684\u3002<\/li><li>CGI \u89c4\u8303\u76ee\u524d\u662f\u7531 NCSA \u7ef4\u62a4\u7684\uff0cNCSA \u5b9a\u4e49 CGI \u5982\u4e0b\uff1a<\/li><li>\u516c\u5171\u7f51\u5173\u63a5\u53e3\uff08CGI\uff09\uff0c\u662f\u4e00\u79cd\u7528\u4e8e\u5916\u90e8\u7f51\u5173\u7a0b\u5e8f\u4e0e\u4fe1\u606f\u670d\u52a1\u5668\uff08\u5982 HTTP \u670d\u52a1\u5668\uff09\u5bf9\u63a5\u7684\u63a5\u53e3\u6807\u51c6\u3002<\/li><li>\u76ee\u524d\u7684\u7248\u672c\u662f CGI\/1.1\uff0cCGI\/1.2 \u7248\u672c\u6b63\u5728\u63a8\u8fdb\u4e2d\u3002<\/li><\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">2.1.2 CGI\u67b6\u6784<\/h4>\n\n\n\n<p>\u4e0b\u56fe\u6f14\u793a\u4e86CGI\u67b6\u6784\u56fe<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/www.runoob.com\/wp-content\/uploads\/2015\/05\/cgiarch.gif\" alt=\"\"\/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">2.1.3 Web \u670d\u52a1\u5668\u914d\u7f6e<\/h4>\n\n\n\n<p>\u5728\u60a8\u8fdb\u884c CGI \u7f16\u7a0b\u4e4b\u524d\uff0c\u8bf7\u786e\u4fdd\u60a8\u7684 Web \u670d\u52a1\u5668\u652f\u6301 CGI\uff0c\u5e76\u5df2\u914d\u7f6e\u6210\u53ef\u4ee5\u5904\u7406 CGI \u7a0b\u5e8f\u3002\u6240\u6709\u7531 HTTP \u670d\u52a1\u5668\u6267\u884c\u7684 CGI \u7a0b\u5e8f\uff0c\u90fd\u5fc5\u987b\u5728\u9884\u914d\u7f6e\u7684\u76ee\u5f55\u4e2d\u3002\u8be5\u76ee\u5f55\u79f0\u4e3a CGI \u76ee\u5f55\uff0c\u6309\u7167\u60ef\u4f8b\u547d\u540d\u4e3a \/var\/www\/cgi-bin\u3002\u867d\u7136 CGI \u6587\u4ef6\u662f C++ \u53ef\u6267\u884c\u6587\u4ef6\uff0c\u4f46\u662f\u6309\u7167\u60ef\u4f8b\u5b83\u7684\u6269\u5c55\u540d\u662f&nbsp;<strong>.cgi<\/strong>\u3002<\/p>\n\n\n\n<p>\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0cApache Web \u670d\u52a1\u5668\u4f1a\u914d\u7f6e\u5728 \/var\/www\/cgi-bin \u4e2d\u8fd0\u884c CGI \u7a0b\u5e8f\u3002\u5982\u679c\u60a8\u60f3\u6307\u5b9a\u5176\u4ed6\u76ee\u5f55\u6765\u8fd0\u884c CGI \u811a\u672c\uff0c\u60a8\u53ef\u4ee5\u5728 httpd.conf \u6587\u4ef6\u4e2d\u4fee\u6539\u4ee5\u4e0b\u90e8\u5206\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&lt;Directory \"\/var\/www\/cgi-bin\"&gt;<br> &nbsp; AllowOverride None<br> &nbsp; Options ExecCGI<br> &nbsp; Order allow,deny<br> &nbsp; Allow from all<br>&lt;\/Directory&gt;<br> <br>&lt;Directory \"\/var\/www\/cgi-bin\"&gt;<br>Options All<br>&lt;\/Directory&gt;<\/pre>\n\n\n\n<p>\u5728\u8fd9\u91cc\uff0c\u6211\u4eec\u5047\u8bbe\u5df2\u7ecf\u914d\u7f6e\u597d Web \u670d\u52a1\u5668\u5e76\u80fd\u6210\u529f\u8fd0\u884c\uff0c\u4f60\u53ef\u4ee5\u8fd0\u884c\u4efb\u610f\u7684 CGI \u7a0b\u5e8f\uff0c\u6bd4\u5982 Perl \u6216 Shell \u7b49\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">2.2 C++\u5b9e\u73b0<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">2.2.1 C++ CGI\u7a0b\u5e8f<\/h4>\n\n\n\n<pre class=\"wp-block-preformatted\">#include &lt;iostream&gt;<br>using namespace std;<br> <br>int main ()<br>{<br> &nbsp; &nbsp;<br> &nbsp; cout &lt;&lt; \"Content-type:text\/html\\r\\n\\r\\n\";<br> &nbsp; cout &lt;&lt; \"&lt;html&gt;\\n\";<br> &nbsp; cout &lt;&lt; \"&lt;head&gt;\\n\";<br> &nbsp; cout &lt;&lt; \"&lt;title&gt;Hello World - \u7b2c\u4e00\u4e2a CGI \u7a0b\u5e8f&lt;\/title&gt;\\n\";<br> &nbsp; cout &lt;&lt; \"&lt;\/head&gt;\\n\";<br> &nbsp; cout &lt;&lt; \"&lt;body&gt;\\n\";<br> &nbsp; cout &lt;&lt; \"&lt;h2&gt;Hello World! \u8fd9\u662f\u6211\u7684\u7b2c\u4e00\u4e2a CGI \u7a0b\u5e8f&lt;\/h2&gt;\\n\";<br> &nbsp; cout &lt;&lt; \"&lt;\/body&gt;\\n\";<br> &nbsp; cout &lt;&lt; \"&lt;\/html&gt;\\n\";<br> &nbsp; <br> &nbsp; return 0;<br>}<\/pre>\n\n\n\n<p>\u7f16\u8bd1\u4e0a\u9762\u7684\u4ee3\u7801\uff0c\u628a\u53ef\u6267\u884c\u6587\u4ef6\u547d\u540d\u4e3a cplusplus.cgi\uff0c\u5e76\u628a\u8fd9\u4e2a\u6587\u4ef6\u4fdd\u5b58\u5728 \/var\/www\/cgi-bin \u76ee\u5f55\u4e2d\u3002\u5728\u8fd0\u884c CGI \u7a0b\u5e8f\u4e4b\u524d\uff0c\u8bf7\u4f7f\u7528&nbsp;<strong>chmod 755 cplusplus.cgi<\/strong>&nbsp;UNIX \u547d\u4ee4\u6765\u4fee\u6539\u6587\u4ef6\u6a21\u5f0f\uff0c\u786e\u4fdd\u6587\u4ef6\u53ef\u6267\u884c\u3002\u8bbf\u95ee\u53ef\u6267\u884c\u6587\u4ef6\uff0c\u60a8\u4f1a\u770b\u5230\u4e0b\u9762\u7684\u8f93\u51fa\uff1a<\/p>\n\n\n\n<p>Hello World! \u8fd9\u662f\u6211\u7684\u7b2c\u4e00\u4e2a CGI \u7a0b\u5e8f<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">2.2.2 C++ CGI\u5e93<\/h4>\n\n\n\n<p>\u5728\u771f\u5b9e\u7684\u5b9e\u4f8b\u4e2d\uff0c\u60a8\u9700\u8981\u901a\u8fc7 CGI \u7a0b\u5e8f\u6267\u884c\u8bb8\u591a\u64cd\u4f5c\u3002\u8fd9\u91cc\u6709\u4e00\u4e2a\u4e13\u4e3a C++ \u7a0b\u5e8f\u800c\u7f16\u5199\u7684 CGI \u5e93\uff0c\u6211\u4eec\u53ef\u4ee5\u4ece&nbsp;<a href=\"ftp:\/\/ftp.gnu.org\/gnu\/cgicc\/\">ftp:\/\/ftp.gnu.org\/gnu\/cgicc\/<\/a>&nbsp;\u4e0a\u4e0b\u8f7d\u8fd9\u4e2a CGI \u5e93\uff0c\u5e76\u6309\u7167\u4e0b\u9762\u7684\u6b65\u9aa4\u5b89\u88c5\u5e93\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ tar xzf cgicc-X.X.X.tar.gz <br>$ cd cgicc-X.X.X\/ <br>$ .\/configure --prefix=\/usr <br>$ make<br>$ make install<\/pre>\n\n\n\n<p><strong>\u6ce8\u610f\uff1a<\/strong>libcgicc.so \u548c libcgicc.a \u5e93\u4f1a\u88ab\u5b89\u88c5\u5230\/usr\/lib\u76ee\u5f55\u4e0b\uff0c\u9700\u6267\u884c\u62f7\u8d1d\u547d\u4ee4\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ sudo cp \/usr\/lib\/libcgicc.* \/usr\/lib64\/<\/pre>\n\n\n\n<p>\u624d\u80fd\u4f7f CGI \u7a0b\u5e8f\u81ea\u52a8\u627e\u5230 libcgicc.so \u52a8\u6001\u94fe\u63a5\u5e93\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">2.2.3 \u5b9e\u73b0GET\u65b9\u6cd5<\/h4>\n\n\n\n<p>\u4e0b\u9762\u662f\u4e00\u4e2a\u7b80\u5355\u7684 URL\uff0c\u4f7f\u7528 GET \u65b9\u6cd5\u4f20\u9012\u4e24\u4e2a\u503c\u7ed9 hello_get.py \u7a0b\u5e8f\u3002<\/p>\n\n\n\n<p>\/cgi-bin\/cpp_get.cgi?first_name=ZARA&amp;last_name=ALI<\/p>\n\n\n\n<p>\u4e0b\u9762\u7684\u5b9e\u4f8b\u751f\u6210&nbsp;<strong>cpp_get.cgi<\/strong>&nbsp;CGI \u7a0b\u5e8f\uff0c\u7528\u4e8e\u5904\u7406 Web \u6d4f\u89c8\u5668\u7ed9\u51fa\u7684\u8f93\u5165\u3002\u901a\u8fc7\u4f7f\u7528 C++ CGI \u5e93\uff0c\u53ef\u4ee5\u5f88\u5bb9\u6613\u5730\u8bbf\u95ee\u4f20\u9012\u7684\u4fe1\u606f\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">#include &lt;iostream&gt;<br>#include &lt;vector&gt; &nbsp;<br>#include &lt;string&gt; &nbsp;<br>#include &lt;stdio.h&gt; &nbsp;<br>#include &lt;stdlib.h&gt; <br> <br>#include &lt;cgicc\/CgiDefs.h&gt; <br>#include &lt;cgicc\/Cgicc.h&gt; <br>#include &lt;cgicc\/HTTPHTMLHeader.h&gt; <br>#include &lt;cgicc\/HTMLClasses.h&gt; &nbsp;<br> <br>using namespace std;<br>using namespace cgicc;<br> <br>int main ()<br>{<br> &nbsp; Cgicc formData;<br> &nbsp; <br> &nbsp; cout &lt;&lt; \"Content-type:text\/html\\r\\n\\r\\n\";<br> &nbsp; cout &lt;&lt; \"&lt;html&gt;\\n\";<br> &nbsp; cout &lt;&lt; \"&lt;head&gt;\\n\";<br> &nbsp; cout &lt;&lt; \"&lt;title&gt;\u4f7f\u7528 GET \u548c POST \u65b9\u6cd5&lt;\/title&gt;\\n\";<br> &nbsp; cout &lt;&lt; \"&lt;\/head&gt;\\n\";<br> &nbsp; cout &lt;&lt; \"&lt;body&gt;\\n\";<br> <br> &nbsp; form_iterator fi = formData.getElement(\"first_name\"); &nbsp;<br> &nbsp; if( !fi-&gt;isEmpty() &amp;&amp; fi != (*formData).end()) { &nbsp;<br> &nbsp; &nbsp; &nbsp;cout &lt;&lt; \"\u540d\uff1a\" &lt;&lt; **fi &lt;&lt; endl; &nbsp;<br> &nbsp; }else{<br> &nbsp; &nbsp; &nbsp;cout &lt;&lt; \"No text entered for first name\" &lt;&lt; endl; &nbsp;<br> &nbsp; }<br> &nbsp; cout &lt;&lt; \"&lt;br\/&gt;\\n\";<br> &nbsp; fi = formData.getElement(\"last_name\"); &nbsp;<br> &nbsp; if( !fi-&gt;isEmpty() &amp;&amp;fi != (*formData).end()) { &nbsp;<br> &nbsp; &nbsp; &nbsp;cout &lt;&lt; \"\u59d3\uff1a\" &lt;&lt; **fi &lt;&lt; endl; &nbsp;<br> &nbsp; }else{<br> &nbsp; &nbsp; &nbsp;cout &lt;&lt; \"No text entered for last name\" &lt;&lt; endl; &nbsp;<br> &nbsp; }<br> &nbsp; cout &lt;&lt; \"&lt;br\/&gt;\\n\";<br> <br> &nbsp; cout &lt;&lt; \"&lt;\/body&gt;\\n\";<br> &nbsp; cout &lt;&lt; \"&lt;\/html&gt;\\n\";<br> &nbsp; <br> &nbsp; return 0;<br>}<\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">2.2.4 \u5b9e\u73b0GET\u65b9\u6cd5<\/h4>\n\n\n\n<p>\u4e00\u4e2a\u66f4\u53ef\u9760\u7684\u5411 CGI \u7a0b\u5e8f\u4f20\u9012\u4fe1\u606f\u7684\u65b9\u6cd5\u662f POST \u65b9\u6cd5\u3002\u8fd9\u79cd\u65b9\u6cd5\u6253\u5305\u4fe1\u606f\u7684\u65b9\u5f0f\u4e0e GET \u65b9\u6cd5\u76f8\u540c\uff0c\u4e0d\u540c\u7684\u662f\uff0c\u5b83\u4e0d\u662f\u628a\u4fe1\u606f\u4ee5\u6587\u672c\u5b57\u7b26\u4e32\u5f62\u5f0f\u653e\u5728 URL \u4e2d\u7684 ? \u4e4b\u540e\u8fdb\u884c\u4f20\u9012\uff0c\u800c\u662f\u628a\u5b83\u4ee5\u5355\u72ec\u7684\u6d88\u606f\u5f62\u5f0f\u8fdb\u884c\u4f20\u9012\u3002\u8be5\u6d88\u606f\u662f\u4ee5\u6807\u51c6\u8f93\u5165\u7684\u5f62\u5f0f\u4f20\u7ed9 CGI \u811a\u672c\u7684\u3002<\/p>\n\n\n\n<p>\u6211\u4eec\u540c\u6837\u4f7f\u7528 cpp_get.cgi \u7a0b\u5e8f\u6765\u5904\u7406 POST \u65b9\u6cd5\u3002\u8ba9\u6211\u4eec\u4ee5\u540c\u6837\u7684\u4f8b\u5b50\uff0c\u901a\u8fc7\u4f7f\u7528 HTML \u8868\u5355\u548c\u63d0\u4ea4\u6309\u94ae\u6765\u4f20\u9012\u4e24\u4e2a\u503c\uff0c\u53ea\u4e0d\u8fc7\u8fd9\u6b21\u6211\u4eec\u4f7f\u7528\u7684\u4e0d\u662f GET \u65b9\u6cd5\uff0c\u800c\u662f POST \u65b9\u6cd5\uff0c\u5982\u4e0b\u6240\u793a\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&lt;form action=\"\/cgi-bin\/cpp_get.cgi\" method=\"post\"&gt;<br>\u540d\uff1a&lt;input type=\"text\" name=\"first_name\"&gt;&lt;br \/&gt;<br>\u59d3\uff1a&lt;input type=\"text\" name=\"last_name\" \/&gt;<br> <br>&lt;input type=\"submit\" value=\"\u63d0\u4ea4\" \/&gt;<br>&lt;\/form&gt;<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>1.\u9884\u5907\u77e5\u8bc6 1.1 HTTP\u7b80\u4ecb \u8d85\u6587\u672c\u4f20\u8f93\u534f\u8bae&#8230;<\/p>\n<div class=\"more-link-wrapper\"><a class=\"more-link\" href=\"https:\/\/lmceric.top\/index.php\/2021\/11\/21\/36\/\">Continue reading<span class=\"screen-reader-text\">C++ CGIweb\u7f16\u7a0b<\/span><\/a><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":"","footnotes":""},"categories":[11],"tags":[8,15,16,6],"class_list":["post-36","post","type-post","status-publish","format-standard","hentry","category-tec","tag-c","tag-cgi","tag-web","tag-6","entry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>C++ CGIweb\u7f16\u7a0b - LMC\u7684\u4e2a\u4eba\u7ad9<\/title>\n<meta name=\"description\" content=\"LMC\u7684\u4e2a\u4eba\u7ad9 - C++ CGIweb\u7f16\u7a0b \u6280\u672f\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/lmceric.top\/index.php\/2021\/11\/21\/36\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"C++ CGIweb\u7f16\u7a0b - LMC\u7684\u4e2a\u4eba\u7ad9\" \/>\n<meta property=\"og:url\" content=\"https:\/\/lmceric.top\/index.php\/2021\/11\/21\/36\/\" \/>\n<meta property=\"og:site_name\" content=\"LMC\u7684\u4e2a\u4eba\u7ad9\" \/>\n<meta property=\"article:published_time\" content=\"2021-11-21T01:55:58+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-11-21T01:56:00+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.runoob.com\/wp-content\/uploads\/2015\/05\/cgiarch.gif\" \/>\n<meta name=\"author\" content=\"SimpleAstronaut\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"SimpleAstronaut\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/lmceric.top\\\/index.php\\\/2021\\\/11\\\/21\\\/36\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/lmceric.top\\\/index.php\\\/2021\\\/11\\\/21\\\/36\\\/\"},\"author\":{\"name\":\"SimpleAstronaut\",\"@id\":\"https:\\\/\\\/lmceric.top\\\/#\\\/schema\\\/person\\\/1edca9cfe5ff17dbe947c332a66ee539\"},\"headline\":\"C++ CGIweb\u7f16\u7a0b\",\"datePublished\":\"2021-11-21T01:55:58+00:00\",\"dateModified\":\"2021-11-21T01:56:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/lmceric.top\\\/index.php\\\/2021\\\/11\\\/21\\\/36\\\/\"},\"wordCount\":364,\"commentCount\":1,\"image\":{\"@id\":\"https:\\\/\\\/lmceric.top\\\/index.php\\\/2021\\\/11\\\/21\\\/36\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.runoob.com\\\/wp-content\\\/uploads\\\/2015\\\/05\\\/cgiarch.gif\",\"keywords\":[\"C++\",\"cgi\",\"web\",\"\u4e92\u8054\u7f51\"],\"articleSection\":[\"\u6280\u672f\"],\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/lmceric.top\\\/index.php\\\/2021\\\/11\\\/21\\\/36\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/lmceric.top\\\/index.php\\\/2021\\\/11\\\/21\\\/36\\\/\",\"url\":\"https:\\\/\\\/lmceric.top\\\/index.php\\\/2021\\\/11\\\/21\\\/36\\\/\",\"name\":\"C++ CGIweb\u7f16\u7a0b - LMC\u7684\u4e2a\u4eba\u7ad9\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/lmceric.top\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/lmceric.top\\\/index.php\\\/2021\\\/11\\\/21\\\/36\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/lmceric.top\\\/index.php\\\/2021\\\/11\\\/21\\\/36\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.runoob.com\\\/wp-content\\\/uploads\\\/2015\\\/05\\\/cgiarch.gif\",\"datePublished\":\"2021-11-21T01:55:58+00:00\",\"dateModified\":\"2021-11-21T01:56:00+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/lmceric.top\\\/#\\\/schema\\\/person\\\/1edca9cfe5ff17dbe947c332a66ee539\"},\"description\":\"LMC\u7684\u4e2a\u4eba\u7ad9 - C++ CGIweb\u7f16\u7a0b \u6280\u672f\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/lmceric.top\\\/index.php\\\/2021\\\/11\\\/21\\\/36\\\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/lmceric.top\\\/index.php\\\/2021\\\/11\\\/21\\\/36\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\\\/\\\/lmceric.top\\\/index.php\\\/2021\\\/11\\\/21\\\/36\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.runoob.com\\\/wp-content\\\/uploads\\\/2015\\\/05\\\/cgiarch.gif\",\"contentUrl\":\"https:\\\/\\\/www.runoob.com\\\/wp-content\\\/uploads\\\/2015\\\/05\\\/cgiarch.gif\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/lmceric.top\\\/index.php\\\/2021\\\/11\\\/21\\\/36\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\\\/\\\/lmceric.top\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"C++ CGIweb\u7f16\u7a0b\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/lmceric.top\\\/#website\",\"url\":\"https:\\\/\\\/lmceric.top\\\/\",\"name\":\"LMC\u7684\u4e2a\u4eba\u7ad9\",\"description\":\"\u5b64\u5e06\u8fdc\u5f71\u78a7\u7a7a\u5c3d\uff0c\u552f\u89c1\u957f\u6c5f\u5929\u9645\u6d41\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/lmceric.top\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/lmceric.top\\\/#\\\/schema\\\/person\\\/1edca9cfe5ff17dbe947c332a66ee539\",\"name\":\"SimpleAstronaut\",\"sameAs\":[\"http:\\\/\\\/lmceric.top\"],\"url\":\"https:\\\/\\\/lmceric.top\\\/index.php\\\/author\\\/simpleastronaut\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"C++ CGIweb\u7f16\u7a0b - LMC\u7684\u4e2a\u4eba\u7ad9","description":"LMC\u7684\u4e2a\u4eba\u7ad9 - C++ CGIweb\u7f16\u7a0b \u6280\u672f","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/lmceric.top\/index.php\/2021\/11\/21\/36\/","og_locale":"zh_CN","og_type":"article","og_title":"C++ CGIweb\u7f16\u7a0b - LMC\u7684\u4e2a\u4eba\u7ad9","og_url":"https:\/\/lmceric.top\/index.php\/2021\/11\/21\/36\/","og_site_name":"LMC\u7684\u4e2a\u4eba\u7ad9","article_published_time":"2021-11-21T01:55:58+00:00","article_modified_time":"2021-11-21T01:56:00+00:00","og_image":[{"url":"https:\/\/www.runoob.com\/wp-content\/uploads\/2015\/05\/cgiarch.gif","type":"","width":"","height":""}],"author":"SimpleAstronaut","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"SimpleAstronaut","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"5 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/lmceric.top\/index.php\/2021\/11\/21\/36\/#article","isPartOf":{"@id":"https:\/\/lmceric.top\/index.php\/2021\/11\/21\/36\/"},"author":{"name":"SimpleAstronaut","@id":"https:\/\/lmceric.top\/#\/schema\/person\/1edca9cfe5ff17dbe947c332a66ee539"},"headline":"C++ CGIweb\u7f16\u7a0b","datePublished":"2021-11-21T01:55:58+00:00","dateModified":"2021-11-21T01:56:00+00:00","mainEntityOfPage":{"@id":"https:\/\/lmceric.top\/index.php\/2021\/11\/21\/36\/"},"wordCount":364,"commentCount":1,"image":{"@id":"https:\/\/lmceric.top\/index.php\/2021\/11\/21\/36\/#primaryimage"},"thumbnailUrl":"https:\/\/www.runoob.com\/wp-content\/uploads\/2015\/05\/cgiarch.gif","keywords":["C++","cgi","web","\u4e92\u8054\u7f51"],"articleSection":["\u6280\u672f"],"inLanguage":"zh-Hans","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/lmceric.top\/index.php\/2021\/11\/21\/36\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/lmceric.top\/index.php\/2021\/11\/21\/36\/","url":"https:\/\/lmceric.top\/index.php\/2021\/11\/21\/36\/","name":"C++ CGIweb\u7f16\u7a0b - LMC\u7684\u4e2a\u4eba\u7ad9","isPartOf":{"@id":"https:\/\/lmceric.top\/#website"},"primaryImageOfPage":{"@id":"https:\/\/lmceric.top\/index.php\/2021\/11\/21\/36\/#primaryimage"},"image":{"@id":"https:\/\/lmceric.top\/index.php\/2021\/11\/21\/36\/#primaryimage"},"thumbnailUrl":"https:\/\/www.runoob.com\/wp-content\/uploads\/2015\/05\/cgiarch.gif","datePublished":"2021-11-21T01:55:58+00:00","dateModified":"2021-11-21T01:56:00+00:00","author":{"@id":"https:\/\/lmceric.top\/#\/schema\/person\/1edca9cfe5ff17dbe947c332a66ee539"},"description":"LMC\u7684\u4e2a\u4eba\u7ad9 - C++ CGIweb\u7f16\u7a0b \u6280\u672f","breadcrumb":{"@id":"https:\/\/lmceric.top\/index.php\/2021\/11\/21\/36\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/lmceric.top\/index.php\/2021\/11\/21\/36\/"]}]},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/lmceric.top\/index.php\/2021\/11\/21\/36\/#primaryimage","url":"https:\/\/www.runoob.com\/wp-content\/uploads\/2015\/05\/cgiarch.gif","contentUrl":"https:\/\/www.runoob.com\/wp-content\/uploads\/2015\/05\/cgiarch.gif"},{"@type":"BreadcrumbList","@id":"https:\/\/lmceric.top\/index.php\/2021\/11\/21\/36\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/lmceric.top\/"},{"@type":"ListItem","position":2,"name":"C++ CGIweb\u7f16\u7a0b"}]},{"@type":"WebSite","@id":"https:\/\/lmceric.top\/#website","url":"https:\/\/lmceric.top\/","name":"LMC\u7684\u4e2a\u4eba\u7ad9","description":"\u5b64\u5e06\u8fdc\u5f71\u78a7\u7a7a\u5c3d\uff0c\u552f\u89c1\u957f\u6c5f\u5929\u9645\u6d41","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/lmceric.top\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/lmceric.top\/#\/schema\/person\/1edca9cfe5ff17dbe947c332a66ee539","name":"SimpleAstronaut","sameAs":["http:\/\/lmceric.top"],"url":"https:\/\/lmceric.top\/index.php\/author\/simpleastronaut\/"}]}},"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/lmceric.top\/index.php\/wp-json\/wp\/v2\/posts\/36","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lmceric.top\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lmceric.top\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lmceric.top\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lmceric.top\/index.php\/wp-json\/wp\/v2\/comments?post=36"}],"version-history":[{"count":1,"href":"https:\/\/lmceric.top\/index.php\/wp-json\/wp\/v2\/posts\/36\/revisions"}],"predecessor-version":[{"id":37,"href":"https:\/\/lmceric.top\/index.php\/wp-json\/wp\/v2\/posts\/36\/revisions\/37"}],"wp:attachment":[{"href":"https:\/\/lmceric.top\/index.php\/wp-json\/wp\/v2\/media?parent=36"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lmceric.top\/index.php\/wp-json\/wp\/v2\/categories?post=36"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lmceric.top\/index.php\/wp-json\/wp\/v2\/tags?post=36"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}