|
Keyword |
Description |
AUTH_TYPE |
The authorization type (basic or digest) if authorization is being used. |
CONTENT_LENGTH |
The length of any posted reqeust content. |
QUERY_STRING |
The request query string. |
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_URI |
The request URL portion after the site name with the query stripped off |
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. |
<%
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";
}
%>
<%
if (form['submit'] == "Cancel") {
redirect("home.esp");
}
%>
<%
setHeader("MyCustomHeader: order number" + orderNumber);
%>