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
f65dd1d4
Commit
f65dd1d4
authored
Nov 24, 2015
by
Martin Panter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #25576: Apply fix to new urlopen() doc string
parent
a561c038
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
7 deletions
+2
-7
Lib/urllib/request.py
Lib/urllib/request.py
+2
-7
No files found.
Lib/urllib/request.py
View file @
f65dd1d4
...
@@ -149,13 +149,8 @@ def urlopen(url, data=None, timeout=socket._GLOBAL_DEFAULT_TIMEOUT,
...
@@ -149,13 +149,8 @@ def urlopen(url, data=None, timeout=socket._GLOBAL_DEFAULT_TIMEOUT,
*data* should be a buffer in the standard application/x-www-form-urlencoded
*data* should be a buffer in the standard application/x-www-form-urlencoded
format. The urllib.parse.urlencode() function takes a mapping or sequence
format. The urllib.parse.urlencode() function takes a mapping or sequence
of 2-tuples and returns a string in this format. It should be encoded to
of 2-tuples and returns an ASCII text string in this format. It should be
bytes before being used as the data parameter. The charset parameter in
encoded to bytes before being used as the data parameter.
Content-Type header may be used to specify the encoding. If charset
parameter is not sent with the Content-Type header, the server following
the HTTP 1.1 recommendation may assume that the data is encoded in
ISO-8859-1 encoding. It is advisable to use charset parameter with encoding
used in Content-Type header with the Request.
urllib.request module uses HTTP/1.1 and includes a "Connection:close"
urllib.request module uses HTTP/1.1 and includes a "Connection:close"
header in its HTTP requests.
header in its HTTP requests.
...
...
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