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.

Title: Omission in docs for urllib2.urlopen()
Type: Stage:
Components: Documentation Versions: Python 2.4
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: akuchling Nosy List: akuchling, kjohnson
Priority: normal Keywords:

Created on 2006-03-02 16:44 by kjohnson, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg27652 - (view) Author: Kent Johnson (kjohnson) * Date: 2006-03-02 16:44
The docs for urllib2.urlopen() don't explicitly say
that if the data parameter is provided then it will do
a POST. I suggest replacing the second paragraph
(beginning with "data should be a string") with this text:

In HTTP requests, the optional data argument may be
given to specify a POST request (normally the request
type is GET). The data argument must be in standard
application/x-www-form-urlencoded format, for example
one returned from urllib.urlencode().

msg27653 - (view) Author: A.M. Kuchling (akuchling) * (Python committer) Date: 2006-06-03 18:47
Logged In: YES 

I've used a modified version of your clarification.  Thanks for the suggestion.
Date User Action Args
2022-04-11 14:56:15adminsetgithub: 42968
2006-03-02 16:44:09kjohnsoncreate