def check_url(url):
 good_codes = [httplib.OK, httplib.FOUND, httplib.MOVED_PERMANENTLY]
 return (_get_server_status_code(url) in good_codes)

def check_url ( url ) : good_codes = [ httplib . OK , httplib . FOUND , httplib . MOVED_PERMANENTLY ] return ( _get_server_status_code ( url ) in good_codes )
check if a url exists without downloading the whole file .