Ode to Urllib2

Ron Alford ronwalf at umd.edu
Thu Oct 14 19:23:21 CEST 2004

Ron Alford wrote:
> Oh Urllib2,
> When I ask, you GET, when I tell, you POST.
> But I am about to lose my HEAD, for these are my only OPTIONS.
> What about my need to PUT up new things, DELETE the old, or TRACE my steps?

And to reply to my own post, it is fixed (sorta) in Python 2.4.

You only have to subclass urllib2.Request and override .get_method (ick!).

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 261 bytes
Desc: OpenPGP digital signature
URL: <http://mail.python.org/pipermail/python-list/attachments/20041014/70bc318d/attachment.pgp>

More information about the Python-list mailing list