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
f0769e8b
Commit
f0769e8b
authored
Aug 09, 2010
by
Senthil Kumaran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Issue7007 - Use percent-encoded consistently instead of URL Encoded variations. Docs changed.
parent
87082ee1
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
6 deletions
+6
-6
Doc/faq/library.rst
Doc/faq/library.rst
+1
-1
Doc/library/logging.rst
Doc/library/logging.rst
+1
-1
Doc/library/urllib.parse.rst
Doc/library/urllib.parse.rst
+3
-3
Doc/library/urllib.request.rst
Doc/library/urllib.request.rst
+1
-1
No files found.
Doc/faq/library.rst
View file @
f0769e8b
...
...
@@ -666,7 +666,7 @@ Yes. Here's a simple example that uses urllib.request::
'/cgi-bin/some-cgi-script', data=qs)
msg, hdrs = req.read(), req.info()
Note that in general for
URL
-encoded POST operations, query strings must be
Note that in general for
a percent
-encoded POST operations, query strings must be
quoted by using :func:`urllib.parse.urlencode`. For example to send name="Guy Steele,
Jr."::
...
...
Doc/library/logging.rst
View file @
f0769e8b
...
...
@@ -2373,7 +2373,7 @@ supports sending logging messages to a Web server, using either ``GET`` or
..
method
::
emit
(
record
)
Sends
the
record
to
the
Web
server
as
a
n
URL
-
encoded
dictionary
.
Sends
the
record
to
the
Web
server
as
a
percent
-
encoded
dictionary
.
..
_formatter
-
objects
:
...
...
Doc/library/urllib.parse.rst
View file @
f0769e8b
...
...
@@ -117,7 +117,7 @@ The :mod:`urllib.parse` module defines the following functions:
values are lists of values for each name.
The optional argument *keep_blank_values* is a flag indicating whether blank
values in
URL encoded queries should be treated as blank strings.
A true value
values in
percent-encoded queries should be treated as blank strings.
A true value
indicates that blanks should be retained as blank strings. The default false
value indicates that blank values are to be ignored and treated as if they were
not included.
...
...
@@ -137,7 +137,7 @@ The :mod:`urllib.parse` module defines the following functions:
name, value pairs.
The optional argument *keep_blank_values* is a flag indicating whether blank
values in
URL encoded queries should be treated as blank strings.
A true value
values in
percent-encoded queries should be treated as blank strings.
A true value
indicates that blanks should be retained as blank strings. The default false
value indicates that blank values are to be ignored and treated as if they were
not included.
...
...
@@ -330,7 +330,7 @@ The :mod:`urllib.parse` module defines the following functions:
.. function:: urlencode(query, doseq=False, safe='', encoding=None, errors=None)
Convert a mapping object or a sequence of two-element tuples, which may
either be a :class:`str` or a :class:`bytes`, to a "
url
-encoded" string,
either be a :class:`str` or a :class:`bytes`, to a "
percent
-encoded" string,
suitable to pass to :func:`urlopen` above as the optional *data* argument.
This is useful to pass a dictionary of form fields to a ``POST`` request.
The resulting string is a series of ``key=value`` pairs separated by ``'&'``
...
...
Doc/library/urllib.request.rst
View file @
f0769e8b
...
...
@@ -140,7 +140,7 @@ The :mod:`urllib.request` module defines the following functions:
.. function:: url2pathname(path)
Convert the path component *path* from a
n
encoded URL to the local syntax for a
Convert the path component *path* from a
percent-
encoded URL to the local syntax for a
path. This does not accept a complete URL. This function uses :func:`unquote`
to decode *path*.
...
...
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