Jun-27-2019, 10:48 PM
why does my python request cannot work with proxy and cannot get captured by fiddler?
import urllib.request proxy= 'https://94.131.116.141:14599' # Build ProxyHandler object by given proxy proxy_support=urllib.request.ProxyHandler({'https':proxy}) # Build opener with ProxyHandler object opener = urllib.request.build_opener(proxy_support) # Install opener to request urllib.request.install_opener(opener) # Open url r = urllib.request.urlopen('http://icanhazip.com',timeout = 1000) print (r.read().decode("utf-8"))