am_policy_get_url_resource_root()

Extracts the root of a given URL.

Details

am_policy_get_url_resource_root() populates
the resource_root pointer with the extracted information.
For example, http://www.sun.com/index.html will
return http://www.sun.com/ and http://www.sun.com:8080/index.html will return http://www.sun.com:8080/.