You're looking at the docs for Python 3.3 but running Python 3.2. In Python 3.2 the Request
initializer doesn't have a method
argument: http://docs.python.org/3.2/library/urllib.request.html#urllib.request.Request
FWIW depending on what kind of request you make (for example if the request includes a body) urllib
will automatically use the appropriate method (i.e. POST). If you need to make a more specialized type of request such as HEAD
you need to dig a little deeper. There are other answers on SO that help with that.