def getHttp(url, argD): while True: try: data = urllib.urlopen(url, data=urllib.urlencode(argD)).read() except Whatever: pass else: return data