I'm having an issue with Python Requests. Running Python 2.7.
This is my code
import requests
URL = 'http://www.chiefscientist.gov.au/category/archives/media-releases/'
urlHeaders = {"User-Agent": "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8 GTB7.1 (.NET CLR 3.5.30729)", "Referer": "http://example.com"}
r = requests.get(URL, headers=urlHeaders, timeout=None)
I'm using timeout=None, so the server can take as long as it likes.
I get this error -
requests.exceptions.ConnectionError: ('Connection aborted.', error(10060, ...
This is not a duplicate of this question, I'm certain.
I have tried http and https, and the server returns 'not found' when I request https. When I use http, the script takes 10 or more seconds, and then returns the error.
Any thoughts?