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

Popular posts from this blog

node.js - Mongoose: Cast to ObjectId failed for value on newly created object after setting the value -

gradle error "Cannot convert the provided notation to a File or URI" -

ios - Possible to get UIButton sizeThatFits to work? -