Server variables

From PlainOldWebserver

Revision as of 17:27, 20 June 2009 by Dakellog (Talk | contribs)
(diff) ←Older revision | Current revision (diff) | Newer revision→ (diff)
Jump to: navigation, search

Back to Top


pow_server variables

These are available each time a file is requested.

Variable Description
pow_server.REMOTE_HOST remote host IP
pow_server.GET[] associative array of query string pairs
pow_server.REQUEST[] associative array of GET + POST request variables*
pow_server.POST[] associative array of POST key value pairs
pow_server.POST_FILENAME filename of uploaded file
pow_server.RAW_POST raw data of uploaded file
pow_server.POST_FILE entire posted file
pow_server.SERVER_PORT port number bound by server
pow_server.REQUEST_HEADERS[] client request headers associative array
pow_server.REQUEST_METHOD GET, POST, eg
  • NOTE: in the case of both a GET and POST variable being sent with the same name. The GET variable overwrites the POST variable see example.

See Also

Navigation