getenv.exe script test page
This page will give you an idea of how to use the getenv.exe test-script.
All the script does is returning some of the environment-data you send it.
You can just call the script with a "request=" option, followed by the desired return value.
If the value exists and the user may retrieve it, it will be shown by doing a simple
"Document.write" as the result.
If the request-value may not be obtained, a "Not allowed" line will be written
and when the value doesn't exist, it returns the appropriate message.
Invoking the script with no option returns a default text-string.
Because a repeated request must be made for all options, this technique may take
quite a long time before the page is fully loaded.
(Or you must have a fairly fast server and a fast connection.)
So this script is only really useful for displaying just one or two lines.
Below is an example of the possible options:
- Nothing requested:
- Accept:
- Referer:
- Language:
- Encoding:
- User Agent:
- Remote Address:
- Remote Port:
- Server Signature (disabled):
- Server Software:
- Server Name:
- Server Address:
- Server Port:
- Server Admin:
- Server Protocol:
- Gateway Interface:
- Script Name:
- Invalid option:
As you might have seen, the "Server Signature" option is disabled in the script.
This has two reasons: to show you the result of a disabled or non retreivable option and
when this option will be enabled, there's some error "closing" the write-string.
The last example shows the result when an invalid option is chosen.
You can check-out the source of this page to see how things are stored in the HTML.