home | O'Reilly's CD bookshelfs | FreeBSD | Linux | Cisco | Cisco Exam  


default_port

 $

url


->default_port
([

port

])

When invoked with no parameters, this method returns the default port for the URL defined in the object. The default port is based on the scheme used. Even if the port for the URL is explicitly changed by the user with the port method, the default port is always the same.