I'm using the Django URLValidator in the following way in a form:
def clean_url(self):
    validate = URLValidator(verify_exists=True)
    url = self.cleaned_data.get('url')
    try:
        logger.info(url)
        validate(url)
    except ValidationError, e:
        logger.info(e)
        raise forms.ValidationError("That website does not exist. Please try again.")
    return self.cleaned_data.get('url')
It seems to work with some url's but for some valid ones, it fails. I was able to check with http://www.amazon.com/ it's failing (which is obviously incorrect). It passes with http://www.cisco.com/. Is there any reason for the bogus errors?
 
    