⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 test.cgi

📁 vipsi(一个友好的程序)是一个外壳和脚本语言
💻 CGI
字号:
#!/usr/bin/vipsi/* --------------------------------------------------------------------------------------------	cgi scripts:	method "GET":			arguments are passed in the environment variable "QUERY_STRING".	method "POST":		arguments are passed via stdin. size of input data is passed in "CONTENT_LENGTH".			common:		the argument string consists of multiple fields which are separated by ampersands "&".		each field has (should have) the form: "name=value".		the data is encoded according to mime type "application/x-www-form-urlencoded".		this means: spaces " " are replaced by plus signs "+" and special characters are 		represented by their hex code a la "%AF".	the cgi script must write a file to stdout.		in the most common case this is a html file:		step 1: http-header:			"content-type: text/html\n\n"	or			"content-type: text/html; charset=utf-8\n\n"	then the html page itself. it has the following basic layout:			<!doctype html public "-//w3c//dtd html 4.01 transitional//en">			<html>			<head>			   <title>Titel der Seite ist Pflicht</title>			   <META http-equiv=Content-Type content="text/html; charset=UTF-8">		((opt.))			</head>			<body>				<!-- Contents of page here -->			</body>					</html>--------------------------------------------------------------------------------------------- */	put 	"content-type: text/html; charset=utf-8\n\n",	"<!doctype html public \"-//w3c//dtd html 4.01 transitional//en\">\n",	"<html>\n",	"<head>\n",	"<META http-equiv=Content-Type content=\"text/html; charset=UTF-8\">\n",	"<title>vipsi test script for cgi'</title>\n",	"</head>\n",	"<body style='font-family:sans-serif;'>\n",	"<h2>鈥⑩

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -