mirror of
https://github.com/KingDuckZ/kamokan.git
synced 2024-12-01 00:45:41 +00:00
Add some missing environment variables.
Also add a description of what they're for, at least some of them.
This commit is contained in:
parent
72cadf20f2
commit
c7545f27cf
1 changed files with 20 additions and 10 deletions
|
@ -24,23 +24,33 @@
|
||||||
namespace tawashi {
|
namespace tawashi {
|
||||||
BETTER_ENUM(CGIVars, std::size_t,
|
BETTER_ENUM(CGIVars, std::size_t,
|
||||||
AUTH_TYPE = 0,
|
AUTH_TYPE = 0,
|
||||||
HTTP_USER_AGENT,
|
|
||||||
CONTENT_LENGTH,
|
CONTENT_LENGTH,
|
||||||
CONTENT_TYPE,
|
CONTENT_TYPE,
|
||||||
|
DOCUMENT_ROOT, //The root directory of your server
|
||||||
GATEWAY_INTERFACE,
|
GATEWAY_INTERFACE,
|
||||||
|
HTTP_COOKIE, //The visitor's cookie, if one is set
|
||||||
|
HTTP_HOST, //The hostname of your server
|
||||||
|
HTTP_REFERER, //The URL of the page that called your script
|
||||||
|
HTTPS, //"on" if the script is being called through a secure server
|
||||||
|
HTTP_USER_AGENT, //The browser type of your visitor
|
||||||
|
PATH, //The system path your server is running under
|
||||||
PATH_INFO,
|
PATH_INFO,
|
||||||
PATH_TRANSLATED,
|
PATH_TRANSLATED,
|
||||||
QUERY_STRING,
|
QUERY_STRING, //The query string (see GET, below)
|
||||||
REMOTE_ADDR,
|
REMOTE_ADDR, //The IP address of the visitor
|
||||||
REMOTE_HOST,
|
REMOTE_HOST, //The hostname of the visitor (if your server has reverse-name-lookups on; otherwise this is the IP address again)
|
||||||
REMOTE_IDENT,
|
REMOTE_IDENT,
|
||||||
REMOTE_USER,
|
REMOTE_PORT, //The port the visitor is connected to on the web server
|
||||||
REQUEST_METHOD,
|
REMOTE_USER, //The visitor's user name (for .htaccess-protected pages)
|
||||||
SCRIPT_NAME,
|
REQUEST_METHOD, //GET or POST
|
||||||
SERVER_NAME,
|
REQUEST_URI, //The interpreted pathname of the requested document or CGI (relative to the document root)
|
||||||
SERVER_PORT,
|
SCRIPT_FILENAME, //The full pathname of the current CGI
|
||||||
|
SCRIPT_NAME, //The interpreted pathname of the current CGI (relative to the document root)
|
||||||
|
SERVER_ADMIN, //The email address for your server's webmaster
|
||||||
|
SERVER_NAME, //Your server's fully qualified domain name (eg: www.example.com)
|
||||||
|
SERVER_PORT, //The port number your server is listening on
|
||||||
SERVER_PROTOCOL,
|
SERVER_PROTOCOL,
|
||||||
SERVER_SOFTWARE
|
SERVER_SOFTWARE //The server software you're using (such as Apache 1.3)
|
||||||
);
|
);
|
||||||
|
|
||||||
std::vector<std::string> cgi_environment_vars (const char* const* parEnvList);
|
std::vector<std::string> cgi_environment_vars (const char* const* parEnvList);
|
||||||
|
|
Loading…
Reference in a new issue