-- Variables available for use: -- http_search_args - stuff in the URL after a ? -- post_args - stuff in the URL after a $ -- method - GET, POST, etc. Used to tell if post_args are valid -- client_address - IP address or domain name of remote client's host -- from_user - non-standard. e-mail address of remote user -- username - authenticated user name -- password - authenticated password -- server_name - name or IP address of this server -- server_port - TCP/IP port number being used by this server -- script_name - URL name of this script -- referer - the URL of the page referencing this document -- user_agent - the name and version of the WWW client software being used -- content_type - MIME content type of post_args set crlf to (ASCII character 13) & (ASCII character 10) --this builds the normal HTTP header for regular access set http_10_header to "HTTP/1.0 200 OK" & crlf & "Server: MacHTTP" & crlf & Â "MIME-Version: 1.0" & crlf & "Content-type: text/html" & crlf & crlf return http_10_header & "Test SCRIPT

Test SCRIPT

SCRIPT arguments sent:" & Â "
path: " & path_args & Â "
search: " & http_search_args & Â "
post_args: " & post_args & Â "
method: " & method & Â "
address: " & client_address & Â "
user: " & username & Â "
password: " & password & Â "
from: " & from_user & Â "
server_name: " & server_name & Â "
server_port: " & server_port & Â "
script_name: " & script_name & Â "
referer: " & referer & Â "
user agent: " & user_agent & Â "
content_type: " & content_type & crlf