HP (Hewlett-Packard) MSM7XX Switch User Manual


 
Working with public access attributes
Public access interface ASP functions and variables
Web
GetWebFullURL(“http” | “https”)
This function returns the full URL (protocol, hostname and port) to the root of the Web
server as either HTTP or HTTPS.
Example
var url = GetWebFullURL("http");
GetHTTPProtocol()
Returns the protocol used when requesting the current Web page as a string. Possible values
are:
http
https
Example
var protocol = GetHTTPProtocol();
write(protocol); /* will write either "http" or "https" depending on the URL you typed to view
the page. */
Client information
LoadClientInformation()
This function initializes a set of variables that provide information on the user that is
requesting the current page.
ASP variables
client_username: String containing the username of the user if known.
client_useraccount_index: String that uniquely identifies the user’s account.
client_ip_address: String containing the IP address of the user that requested the page.
client_state: The user’s authentication state: 1 for authenticated, 0 otherwise If 0, all
other variables will contain their last value, unless the user was never authenticated, in
which case they will be blank.
client_session_time: The user’s session time, indicating how many seconds have elapse
since the user was first authenticated by the service controller. Re-authentication will not
affect the value unless the authentication was terminated.
client_session_idle_time: Indicates how many seconds have elapsed since the service
controller first received traffic from this user that was inside the user's defined access-list
destination(s).
client_session_transmitted_packets: Number of packets the user has transmitted to
destinations inside the user's defined access-list destination(s).
9-83