Server variables

From PlainOldWebserver

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.REQUEST_HEADERS[] client request headers associative array
  • 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

Personal tools
Navigation