Improved check_url_protocol and check_url_port methods to use
properties.