def pingback_url ( self , server_name , target_url ) : try : server = ServerProxy ( server_name ) reply = server . pingback . ping ( self . entry_url , target_url ) except ( Error , socket . error ) : reply = '%s cannot be pinged.' % target_url return reply
destination host unreachable ping python
Do a pingback call for the target URL .
def pingback_url(self, server_name, target_url):
        """
        Do a pingback call for the target URL.
        """
        try:
            server = ServerProxy(server_name)
            reply = server.pingback.ping(self.entry_url, target_url)
        except (Error, socket.error):
            reply = '%s cannot be pinged.' % target_url
        return reply