Test the target url before sending messages