urllib, urllib2, httplib -- Begging for consolidation?

brueckd at tbye.com brueckd at tbye.com
Tue Jun 4 18:23:16 EDT 2002


On Tue, 4 Jun 2002, John J. Lee wrote:

> On 4 Jun 2002, Dave Brueck wrote:
> [...]
> > together. For example, what is the correct way to do a HTTP HEAD
> > request that follows redirects? It's not hard, but it's silly to have
> > to code it yourself if somebody already did the work for you. Well,
> > httplib doesn't know how to follow an HTTP redirect, but lo and
> > behold, urllib does. Unfortunately, there's no way to use it because
> > in this case because urllib is for opening URLs (the GET is hardcoded
> > and not easily overridable).
> 
> I suppose the standard answer applies here: it isn't there because
> nobody has written it yet.

Argh... this misses the whole point of the thread. Never mind, I repent
for having revived this topic.

-Dave






More information about the Python-list mailing list