Returns the name of the remote node from where the petition has been performed.
1 http.request.getRemoteHost
<http.request.getRemoteHost />
Returns | |
---|---|
Type | Description |
string | Returns the name if the remote node from where the petition has been performed. |
Exceptions
script is not in http request mode
It is called from the command line because the request HTTP servlet does not exist.
Example
Obtain the IP address of the remote node.
Copy
<xsql-script name='http_connection_parametervalues'> <body> <println> <http.request.getRemoteHost /> </println> </body> </xsql-script>