码迷,mamicode.com
首页 > Web开发 > 详细

EasyWebServer编写CGI程序的环境变量

时间:2015-04-13 16:02:59      阅读:134      评论:0      收藏:0      [点我收藏+]

标签:

示例:

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

EasyWebServer编写CGI程序的环境变量

标签:

原文地址:http://www.cnblogs.com/aozima/p/4422368.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!