python - urllib2.Request Keeps Downloading Cached File From Proxy -
i've got python 2.7 script downloads zip file public ftp site through our corporate proxy. proxy set in windows server's system variables.
downloading file works, except discovered it's continually downloading same version of file though file begin updated on ftp site. appears grabbing cached version proxy, not current version on web.
here's code file:
request = urllib2.request(download_url) response = urllib2.urlopen(request).read()
how can force script current file through proxy, instead of cached one?
you try url ?foo=bar appended.
Comments
Post a Comment