Finished the ping, using code scavenged from TCK and some URI checking