This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author phr
Recipients
Date 2006-07-25.09:13:04
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
urllib2.Request takes constructor args (url, data,
headers, ...) where data and headers are optional. 
data is described as a string which, if supplied,
causes urlopen to process the request as a POST rather
than a GET.  And there's no way to set headers without
passing a value for data.  So if you want to send a GET
with special headers, the docs leave you scratching
your head.

The solution is to pass None instead of a string for
data.  The doc should say that.

In general the urllib2 docs are somewhat dependent on
the urllib docs.  Some refactoring would be good.
History
Date User Action Args
2007-08-23 14:41:33adminlinkissue1528258 messages
2007-08-23 14:41:33admincreate