@@ -15,7 +15,7 @@ authentication, redirections, cookies and more.
1515.. seealso ::
1616
1717 The `Requests package <https://requests.readthedocs.org/ >`_
18- is recommended for a higher-level http client interface.
18+ is recommended for a higher-level HTTP client interface.
1919
2020
2121The :mod: `urllib.request ` module defines the following functions:
@@ -71,15 +71,15 @@ The :mod:`urllib.request` module defines the following functions:
7171
7272 * :meth: `~urllib.response.addinfourl.getcode ` -- return the HTTP status code of the response.
7373
74- For http and https urls , this function returns a
74+ For HTTP and HTTPS URLs , this function returns a
7575 :class: `http.client.HTTPResponse ` object slightly modified. In addition
7676 to the three new methods above, the msg attribute contains the
7777 same information as the :attr: `~http.client.HTTPResponse.reason `
7878 attribute --- the reason phrase returned by server --- instead of
7979 the response headers as it is specified in the documentation for
8080 :class: `~http.client.HTTPResponse `.
8181
82- For ftp , file, and data urls and requests explicitly handled by legacy
82+ For FTP , file, and data URLs and requests explicitly handled by legacy
8383 :class: `URLopener ` and :class: `FancyURLopener ` classes, this function
8484 returns a :class: `urllib.response.addinfourl ` object.
8585
@@ -453,7 +453,7 @@ request.
453453.. attribute :: Request.selector
454454
455455 The URI path. If the :class: `Request ` uses a proxy, then selector
456- will be the full url that is passed to the proxy.
456+ will be the full URL that is passed to the proxy.
457457
458458.. attribute :: Request.data
459459
@@ -772,8 +772,8 @@ HTTPRedirectHandler Objects
772772 details of the precise meanings of the various redirection codes.
773773
774774 An :class: `HTTPError ` exception raised as a security consideration if the
775- HTTPRedirectHandler is presented with a redirected url which is not an HTTP,
776- HTTPS or FTP url .
775+ HTTPRedirectHandler is presented with a redirected URL which is not an HTTP,
776+ HTTPS or FTP URL .
777777
778778
779779.. method :: HTTPRedirectHandler.redirect_request(req, fp, code, msg, hdrs, newurl)
@@ -1126,7 +1126,7 @@ it. ::
11261126
11271127Note that urlopen returns a bytes object. This is because there is no way
11281128for urlopen to automatically determine the encoding of the byte stream
1129- it receives from the http server. In general, a program will decode
1129+ it receives from the HTTP server. In general, a program will decode
11301130the returned bytes object to string once it determines or guesses
11311131the appropriate encoding.
11321132
0 commit comments