开发者

What are all the standard CGI environment variables?

开发者 https://www.devze.com 2022-12-24 05:39 出处:网络
CGI scripts sho开发者_JAVA百科uld have access to a list of environment variables set by the web server. What are their names?See RFC 3875 for the CGI spec, which has all the info you need. :-)

CGI scripts sho开发者_JAVA百科uld have access to a list of environment variables set by the web server. What are their names?


See RFC 3875 for the CGI spec, which has all the info you need. :-)

From the RFC:

  meta-variable-name = "AUTH_TYPE" | "CONTENT_LENGTH" |
                       "CONTENT_TYPE" | "GATEWAY_INTERFACE" |
                       "PATH_INFO" | "PATH_TRANSLATED" |
                       "QUERY_STRING" | "REMOTE_ADDR" |
                       "REMOTE_HOST" | "REMOTE_IDENT" |
                       "REMOTE_USER" | "REQUEST_METHOD" |
                       "SCRIPT_NAME" | "SERVER_NAME" |
                       "SERVER_PORT" | "SERVER_PROTOCOL" |
                       "SERVER_SOFTWARE" | scheme |
                       protocol-var-name | extension-var-name
  protocol-var-name  = ( protocol | scheme ) "_" var-name
  scheme             = alpha *( alpha | digit | "+" | "-" | "." )
  var-name           = token
  extension-var-name = token


http://www.cgi101.com/book/ch3/text.html


The "hoohoo" machine at NCSA that has the CGI documentation is down, but here's what seems to be a mirror.


A quick Google search finds the what you need.

0

精彩评论

暂无评论...
验证码 换一张
取 消