getCGI

Top  Previous  Next

Gets the CGI values passed to the server.

Definition

cgis = getCGI()

 

cgis is a table of key value pairs representing the POST or GET variables.

Example

local cgis = getCGI()

 

for key,value in pairs(cgis) do

 print(key, value)

end

 

For the url http://localhost/index.lhtml?a=1&b=hello this would print

 

a 1

b hello

Alternative name

filename = webserver:GetCGI()

 

Provided for Girder 5 compatibility.

Availability

Lua context during page load.