I am trying to make an HTTP request in Python 2.6.4, using the urllib module. Is there any way to set the request headers?

I am sure that this is possible using urllib2, but I would prefer to use urllib since it seems simpler.