_SERVER - njlg/mod_sq GitHub Wiki
_SERVER
is a table that contains server and execution environment information. This is based on the PHP value of the same name.
Example:
foreach( key,val in _SERVER ) {
print(key + " -> " + val + "\n" )
}
will output:
ap_auth_type -> (null : 0x(nil))
args -> test=this&and=that&mod=squirrel
canonical_filename -> /var/www/localhost/htdocs/globals.nut
content_encoding -> (null : 0x(nil))
content_type -> text/html
error_file -> (null : 0x(nil))
filename -> /var/www/localhost/htdocs/globals.nut
handler -> application/x-httpd-sq
hostname -> localhost
http_accept -> text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
http_accept_charset -> ISO-8859-1,utf-8;q=0.7,*;q=0.3
http_accept_encoding -> gzip,deflate,sdch
http_accept_language -> en-US,en;q=0.8
http_cache_control -> max-age=0
http_connection -> keep-alive
http_cookie -> session
http_host -> localhost
http_referer -> http://localhost/globals.nut
http_user_agent -> Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.97 Safari/537.11
method -> GET
path_info ->
protocol -> HTTP/1.1
range -> (null : 0x(nil))
remote_host -> (null : 0x(nil))
remote_ip -> ::1
remote_port -> 43550
server_admin -> root@localhost
server_hostname -> localhost
server_ip -> ::1
server_path -> (null : 0x(nil))
server_port -> 80
server_scheme -> (null : 0x(nil))
status_line -> (null : 0x(nil))
the_request -> GET /globals.nut?test=this&and=that&mod=squirrel HTTP/1.1
unparsed_uri -> /globals.nut?test=this&and=that&mod=squirrel
uri -> /globals.nut
user -> (null : 0x(nil))
vlist_validator -> (null : 0x(nil))
Note: The above list has been sorted after execution.