|
| Keyword
|
Description
|
| AUTH_TYPE
|
The authorization type (basic or digest) if authorization is
being used.
|
| CONTENT_LENGTH
|
The length of any posted reqeust content.
|
| PATH_INFO
|
The portion of the path after the script name if extra path
processing is being used. See the ExtraPath directive.
|
| PATH_TRANSLATED
|
The physical path corresponding to PATH_INFO.
|
| REQUEST_METHOD
|
The HTTP request method (GET|HEAD|OPTIONS|PUT|TRACE).
|
| REQUEST_TRANSPORT | The request protocol used (http|https). |
| REQUEST_URI
|
The request URL portion after the site name with the query
stripped off
|
| QUERY_STRING
|
The request query string.
|
| SCRIPT_FILENAME
|
The physical path name for SCRIPT_NAME. |
| SCRIPT_NAME
|
The name of the script in the URL. Useful to know the name of
the current URL (without the directory portion). Use in the action keyword of a
HTML form tag to refer to the current page for post-back.
|
| SESSION_ID
|
Unique identifier for this session state store.
|
| Keyword
|
Description
|
| HTT_REFERER
|
Referring URL. (i.e. the URL that linked to this current page).
|
| HTTP_USER_AGENT
|
Description of the client's browser.
|
| Keyword
|
Description
|
| SERVER_ADDR
|
Destination IP address of this request. (i.e. The server
address).
|
| SERVER_PORT
|
Destination PORT of this address (i.e. The server port).
|
| SERVER_PROTOCOL
|
Set to http for plain old HTTP. Set to
https if using SSL.
|
Post-Back<%
if (request['REQUEST_METHOD'] == "POST") {
//
// Post-back. Process user data.
//
if (ok == "Cancel") {
redirect(prev);
} else if (ok == "Ok") {
// Can do first pass validation of user data here
processUserData(form['name'], form['address']);
}
} else {
//
// Normal GET request on the page
//
form['name'] = "Your Name";
form['address'] = "Your Address";
}
%>
<form method="POST" action="@@requst['SCRIPT_NAME']">
<table class="inputForm" border=0>
<tr>
<td><b>Name</b></td>
<td><input name="name" type="text" value="@@form['name']"></td>
</tr>
<tr>
<td><b>Address</b></td>
<td><input name="address" type="text" value="@@form['address']"></td>
</tr>
</table>
<input type="submit" name="ok" value="Ok">
<input type="submit" name="ok" value="Cancel">
</form>
Redirection<%
if (form['submit'] == "Cancel") {
redirect("home.esp");
}
%>
Custom Headers<%
setHeader("MyCustomHeader: order number" + orderNumber);
%>