[ python-Bugs-1441864 ] Omission in docs for urllib2.urlopen()

SourceForge.net noreply at sourceforge.net
Sat Jun 3 20:47:42 CEST 2006


Bugs item #1441864, was opened at 2006-03-02 11:44
Message generated for change (Comment added) made by akuchling
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1441864&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Documentation
Group: Python 2.4
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Kent Johnson (kjohnson)
>Assigned to: A.M. Kuchling (akuchling)
Summary: Omission in docs for urllib2.urlopen()

Initial Comment:
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().


Kent

----------------------------------------------------------------------

>Comment By: A.M. Kuchling (akuchling)
Date: 2006-06-03 14:47

Message:
Logged In: YES 
user_id=11375

I've used a modified version of your clarification.  Thanks for the suggestion.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1441864&group_id=5470


More information about the Python-bugs-list mailing list