This function is used to get in VSP/VSPX context the URL used to access current resource (page). It check whether 'Host' header field is specified, if not will return as a host information the IP address resolved via connected socket information.
The return type of soap_current_url() is an string containing the URL of the HTTP request.