$ url ->host ([ hostname ])
url
hostname
When invoked with no parameters, this method returns the hostname in the URL defined in the object. When invoked with a parameter, the object's hostname is assigned to that value.
Copyright © 2001 O'Reilly & Associates. All rights reserved.