Windows CGI
HTML
CGI
CGI
[CGI]
[Accept]
[System]
[Extra Headers]
[Form Literal]
[Form External]
[Form Huge]
[Form File]
--------------------------------------------------------------------------------
World Wide Web , Web . Web , - . Web Common Gateway Interface (CGI), Windows- , , Unix. Windows- CG, Windows CGI .
--------------------------------------------------------------------------------
HTML-
Windows CGI , Web HTML , POST . , ("query string"), URL.
, :
URL-Encoded
, . HTML 1.0, , . application/x-www-form-urlencoded.
Multipart Form Data
. MIME . . , multipart/form-data.
"" .
--------------------------------------------------------------------------------
CGI
CreateProcess() CGI . CGI , CGI . Win32 WaitForSingleObject(), CGI .
CGI CreateProcess() :
WinCGI-exe cgi-data-file
WinCGI-exe
CGI . " " PATH. , "" .EXE . , , WIN.INI System Registry.
cgi-data-file
CreateProcess() , . .
CGI , CGI . CGI .
--------------------------------------------------------------------------------
CGI
CGI Windows "private profile" afqk, "-" (windows INI ). CGI , , .
CGI :
[CGI]
[Accept]
[System]
[Extra Headers]
[Form Literal]
[Form External]
[Form Huge]
[Form File]
[CGI]
CGI ( , , , ..). . , . T :
Request Protocol
, . : /. : "HTTP/1.0".
Request Method
, . HTTP "GET", "HEAD", "POST" ..
Executable Path
CGI , CGI .
Logical Path
, . , .
Physical Path
, (, ) .
Query String
, ? URL CGI . , URL.
Request Range
Byte-range ( ). Internet Draft ( RFC), HTTP . CGI byte-ranging.
Referer
URL , CGI . , .
From
E-mail . , HTTP, .
User Agent
, . .
Content Type
MIME- , , . : type/subtype.
Content Length
, .
Content File
, , , , WEB- . , . .
Server Software
, CGI-. : name/version.
Server Name
, URL ( ServerPort) URL .
Server Port
, .
Server Admin
E-mail . URL "mailto:".
CGI Version
CGI. : CGI/. , "CGI/1.2 (Win)".
Remote Host
, . .
Remote Address
(IP) . .
Authentication Method
CGI , - , .
Authentication Realm
CGI , - , . i .
Authenticated Username
CGI , , CGI-.
[Accept]
, ,
Accept: type/subtype {parameters}
(, "q=0.100") , Accept. Accept.
[System]
, Windows CGI:
GMT Offset
, .
Debug Mode
"Yes" "CGI/script tracing" .
Output File
, , .
Content File
, .
[Extra Headers]
"" , "=". , CGI.
[Form Literal]
HTTP POST HTML ( application/x-www-form-urlencoded multipart/form-data), [Form Literal].
URL- , "=&=&...", url- . "=" '&', "" "", "" "=_" [Form Literal].
MIME , (). "=" [Form Literal].
- SELECT MULTIPLE, "=" "". "=" , "_X=", "X" - .
[Form External]
254 , , , , .., , [Form External] :
=
- , , - .
[Form Huge]
65,535 , , Content File, [Form Huge] :
=
- Content File , - . . , , .
[Form File]
multipart/form-data, . , [Form File] , [Form External]. :
=[___] [_]
___ - , , - , - MIME , - _ - . , .
, SELECT MULTIPLE 2- , 300 , , 230KB.
[Form Literal]
smallfield=123 Main St. #122
multiple=first selection
multiple_1=second selection
[Form External]
field300chars=C:\TEMP\HS19AF6C.000 300
fieldwithlinebreaks=C:\TEMP\HS19AF6C.001 43
[Form Huge]
field230K=C:\TEMP\HS19AF6C.002 276920
--------------------------------------------------------------------------------
CGI , ( ) . HTTP HTTP . , HTTP , CGI .
CGI : . , . , MIME , .
, , CGI " ".T
:
Content-Type:
MIME . type/subtype.
URI:
(value enclosed in angle brackets)
URL , . , , GET . URL, "401 redirect" .
Location:
, URI, . value .
, .
--------------------------------------------------------------------------------
. . CGI HTTP ..
, CGI (Output File), , "HTTP/1.0", , HTTP .