url = "https://url"
proxy = urllib.request.ProxyHandler({'https': 'https://proxy'})
opr = urllib.request.build_opener(proxy)
urllib.request.install_opener(opr)
opener = urllib.request.build_opener()
opener.addheaders = [('User-agent', 'Mozilla')]
urllib.request.install_opener(opener)
urllib.request.urlretrieve(url, "name")
its connecting by proxy but refuse to collect header any way to get file with both proxy and geader plz....
proxy = urllib.request.ProxyHandler({'https': 'https://proxy'})
opr = urllib.request.build_opener(proxy)
urllib.request.install_opener(opr)
opener = urllib.request.build_opener()
opener.addheaders = [('User-agent', 'Mozilla')]
urllib.request.install_opener(opener)
urllib.request.urlretrieve(url, "name")
its connecting by proxy but refuse to collect header any way to get file with both proxy and geader plz....