Closed rufuspollock closed 11 years ago
We have a huge method for getting the content length when all we need is:
urlfo = urllib.urlopen(url) urlfo.headers.get('content-length', None)
NB: urllib2.urlopen will follow redirects for you
We have a huge method for getting the content length when all we need is:
NB: urllib2.urlopen will follow redirects for you