Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
27ca711d
Commit
27ca711d
authored
Jun 03, 2006
by
Andrew M. Kuchling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Bug #1441864] Clarify description of 'data' argument
parent
794c89b6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
Doc/lib/liburllib2.tex
Doc/lib/liburllib2.tex
+7
-5
No files found.
Doc/lib/liburllib2.tex
View file @
27ca711d
...
...
@@ -18,11 +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
}
object.
\var
{
data
}
should be a string, which specifies additional data to
send to the server. In HTTP requests, which are the only ones that
support
\var
{
data
}
, it should be a buffer in the format of
\mimetype
{
application/x-www-form-urlencoded
}
, for example one returned
from
\function
{
urllib.urlencode()
}
.
\var
{
data
}
should be a string, which specifies additional data to send
to the server. Currently HTTP requests are the only ones that use
\var
{
data
}
. For HTTP, the request will be a POST instead of a GET
when the
\var
{
data
}
parameter is provided.
\var
{
data
}
should be a
buffer in the standard
\mimetype
{
application/x-www-form-urlencoded
}
format.
The
\function
{
urllib.urlencode()
}
function takes a mapping or
sequence of 2-tuples and returns a string in this format.
This function returns a file-like object with two additional methods:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment