Commit 958c3229 authored by Andrew M. Kuchling's avatar Andrew M. Kuchling

Minor rewording

parent a28abc95
...@@ -18,13 +18,13 @@ The \module{urllib2} module defines the following functions: ...@@ -18,13 +18,13 @@ The \module{urllib2} module defines the following functions:
Open the URL \var{url}, which can be either a string or a \class{Request} Open the URL \var{url}, which can be either a string or a \class{Request}
object. object.
\var{data} should be a string, which specifies additional data to send \var{data} may be a string specifying additional data to send to the
to the server. Currently HTTP requests are the only ones that use server. Currently HTTP requests are the only ones that use \var{data};
\var{data}. For HTTP, the request will be a POST instead of a GET the HTTP request will be a POST instead of a GET when the \var{data}
when the \var{data} parameter is provided. \var{data} should be a parameter is provided. \var{data} should be a buffer in the standard
buffer in the standard \mimetype{application/x-www-form-urlencoded} format. \mimetype{application/x-www-form-urlencoded} format. The
The \function{urllib.urlencode()} function takes a mapping or \function{urllib.urlencode()} function takes a mapping or sequence of
sequence of 2-tuples and returns a string in this format. 2-tuples and returns a string in this format.
This function returns a file-like object with two additional methods: This function returns a file-like object with two additional methods:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment