I\'m writing a script in Python that should determine if it has internet access.
import urllib CHECK_PAGE = \"http://64.37.51.146/check.txt\" CHECK_VALUE
Call urllib.urlcleanup() before each call of urllib.urlopen() will solve the problem. Actually, urllib.urlopen will call urlretrive() function which creates a cache to hold data, and urlcleanup() will remove it.