Server variables
From PlainOldWebserver
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
- pow_server.log_access()
- pow_server.get_uploaded_file()
- Server Variable list
- pow_server.REWRITE_RULES
