def getHttp(url,argD): try: data=urllib.urlopen(url,data=urllib.urlencode(argD)).read() except: time.sleep(1) data=getHttp(url,argD) return data