EasyWebServer编写CGI程序的环境变量

示例:

SERVER_SOFTWARE=EasyWebServer/1.9 
SERVER_PROTOCOL=HTTP/1.1
SERVER_PORT=80 
SERVER_NAME=aozima-notebook 
REMOTE_ADDR=127.0.0.1 
GATEWAY_INTERFACE=CGI/1.1 
DOCUMENT_ROOT=E:\webroot
SCRIPT_NAME=/cgi-bin/dump.exe 
REQUEST_METHOD=GET 
QUERY_STRING=get1=1&get2=2 
CONTENT_LENGTH=0 
HTTP_COOKIE=SESSIONID=00000000 
HTTP_USER_AGENT=Mozilla/5.0 (WindowsNT 6.1; WOW64; rv:37.0) Gecko/20100101 Firefox/37.0 
HTTP_HOST=127.0.0.1 
PATH_TRANSLATED=E:\EasyWebServer
REDIRECT_STATUS=200

 

详解

SERVER_SOFTWARE
SERVER_PROTOCOL
SERVER_PORT
SERVER_NAME
REMOTE_ADDR
GATEWAY_INTERFACE
DOCUMENT_ROOT
SCRIPT_NAME
REQUEST_METHOD
QUERY_STRING
CONTENT_LENGTH
HTTP_COOKIE
HTTP_USER_AGENT
HTTP_HOST
PATH_TRANSLATED
REDIRECT_STATUS

郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。