½ºÆ¬ 9: »·¾³±äÁ¿µÄÆäËüÐÅÏ¢
Web ·þÎñÆ÷Ò²Ìṩ¹ØÓÚÓû§ºÍ·þÎñÆ÷µÄÐÅÏ¢, °üÀ¨·¢³öÇëÇóµÄä¯ÀÀÆ÷ÀàÐ͵È.
CGI³ÌÐò¿ÉÒÔʹÓõĻ·¾³±äÁ¿ÓÐ:
GATEWAY_INTERFACE REMOTE_HOST
SERVER_NAME REMOTE_ADDR
SERVER_SOFTWARE AUTH_TYPE
SERVER_PROTOCOL REMOTE_USER
SERVER_PORT REMOTE_IDENT
REQUEST_METHOD CONTENT_TYPE
PATH_INFO CONTENT_LENGTH
PATH_TRANSLATED HTTP_FROM
SCRIPT_NAME HTTP_ACCEPT
DOCUMENT_ROOT HTTP_USER_AGENT (browser)
QUERY_STRING HTTP_REFERER
½ºÆ¬ 10: ×÷Ϊ±ê×¼ÊäÈëÏò CGI ³ÌÐò´«µÝÊý¾Ý
½¨ÒéʹÓà METHOD=POST µÄ form , ÕâÑù¿ÉÒÔͨ¹ý STDIN °²È«µØ´«µÝÈÎÒâÊýÁ¿µÄÊý¾Ý.
»·¾³±äÁ¿ CONTENT_LENGTH ÉèΪ·¢ËÍÊý¾ÝµÄ×Ö·ûÊý, ±äÁ¿ CONTENT_TYPE ±»ÉèΪ "application/x-www-form-urlencoded".
Êý¾Ý±»·þÎñÆ÷°´ÈçϹæÔò±àÂë:
¸÷¸öÓòÓà & ·Ö¸ô.î.
ÔÚÿ¸öÓòÖÐ, Óà = ·Ö¸ôÓòÃûºÍÖµ.
Ò»¸öÓòÖеĿոñ±»×ª»»Îª +.
ÆäËüÌض¨µÄ¼üÅÌ×Ö·û±»±àÂëΪ %[Ê®Áù½øÖÆÖµ] - ÀýÈç, ! ±»±àÂëΪ %3D.
Copyright: NPACT