#encoding=utf8
import urllib
import socket
socket.setdefaulttimeout(3)
url = "http://ip.chinaz.com/getip.aspx"
proxy={"http":"http://23.126.1.234:8080"}
try:
res = urllib.urlopen(url,proxies=proxy).read()
print res
except Exception,e:
print proxy
print e