com.HttpServiceRequest.getUrl
Returns the URL of the HTTP service request. The URL may consists of a host name, a port number, a path, and a query.
Syntax
getUrl()
RETURNS STRING
Usage
The getUrl()
method returns the entire URL request containing the host, port,
document and query string.
In case of error, the method throws an exception and sets the
status
variable. Depending on the error, a human-readable description of the
problem is available in the sqlca.sqlerrm
register. See Error handling in GWS calls (status).
URLs are sent in UTF-8 on the network. If the query part of the URL cannot be converted from UTF-8 to the fglrun locale charset, status will be set to -15552. Is this case, the document part of the URL is available, but the query string must be retrieved through HttpServiceRequest.readFormEncodedRequest(). As a general advice, run your WS server program in UTF-8.