aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/urllib/request.py
Commit message (Collapse)AuthorAge
...
* | | | Clean up urlopen doc string.R David Murray2016-06-03
| | | | | | | | | | | | | | | | | | | | | | | | Clarifies what is returned when and that the methods are common between the two. Patch by Alexander Liu as part of #22797.
* | | | Issue #14132, Issue #17214: Merge two redirect handling fixes from 3.5Martin Panter2016-05-16
|\| | |
| * | | Issue #17214: Percent-encode non-ASCII bytes in redirect targetsMartin Panter2016-05-16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some servers send Location header fields with non-ASCII bytes, but "http. client" requires the request target to be ASCII-encodable, otherwise a UnicodeEncodeError is raised. Based on patch by Christian Heimes. Python 2 does not suffer any problem because it allows non-ASCII bytes in the HTTP request target.
| * | | Issue #14132: Fix redirect handling when target is just a query stringMartin Panter2016-05-16
| | | |
* | | | merge from 3.5Senthil Kumaran2016-05-13
|\| | | | | | | | | | | | | | | | | | | | | | | Issue #26892: Honor debuglevel flag in urllib.request.HTTPHandler. Patch contributed by Chi Hsuan Yen.
| * | | Issue #26892: Honor debuglevel flag in urllib.request.HTTPHandler.Senthil Kumaran2016-05-13
| | | | | | | | | | | | | | | | Patch contributed by Chi Hsuan Yen.
* | | | Issue #26864: Merge no_proxy fixes from 3.5Martin Panter2016-04-30
|\| | |
| * | | Issue #26864: Fix case insensitivity and suffix comparison with no_proxyMartin Panter2016-04-30
| | | | | | | | | | | | | | | | Patch by Xiang Zhang.
* | | | merge 3.5Senthil Kumaran2016-04-25
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | Issue #26804: urllib.request will prefer lower_case proxy environment variables over UPPER_CASE or Mixed_Case ones. Patch contributed by Hans-Peter Jansen. Reviewed by Martin Panter and Senthil Kumaran.
| * | | Issue #26804: urllib.request will prefer lower_case proxy environment variablesSenthil Kumaran2016-04-25
| | | | | | | | | | | | | | | | | | | | | | | | over UPPER_CASE or Mixed_Case ones. Patch contributed by Hans-Peter Jansen. Reviewed by Martin Panter and Senthil Kumaran.
* | | | Issue #2202: Fix UnboundLocalError in ↵Berker Peksag2016-03-06
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | AbstractDigestAuthHandler.get_algorithm_impls Raise ValueError if algorithm is not MD5 or SHA. Initial patch by Mathieu Dupuy.
| * | | Issue #2202: Fix UnboundLocalError in ↵Berker Peksag2016-03-06
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | AbstractDigestAuthHandler.get_algorithm_impls Raise ValueError if algorithm is not MD5 or SHA. Initial patch by Mathieu Dupuy.
* | | | Issue #25985: sys.version_info is now used instead of sys.versionSerhiy Storchaka2016-02-11
| | | | | | | | | | | | | | | | to format short Python version.
* | | | Issue #12923: Merge FancyURLopener fix from 3.5Martin Panter2016-02-06
|\| | |
| * | | Issue #12923: Reset FancyURLopener's redirect counter even on exceptionMartin Panter2016-02-04
| | | | | | | | | | | | | | | | Based on patches by Brian Brazil and Daniel Rocco.
* | | | Issue #25899: Converted non-ASCII characters in docstrings and manpageSerhiy Storchaka2015-12-18
|\| | | | | | | | | | | | | | | | | | | to ASCII replacements. Removed UTF-8 BOM from Misc/NEWS. Original patch by Chris Angelico.
* | | | Issue #25576: Apply fix to new urlopen() doc stringMartin Panter2015-11-24
| | | |
* | | | Add missing docstringRaymond Hettinger2015-08-18
|/ / /
* | | Issue #24021: docstring for urllib.urlcleanup.Robert Collins2015-08-04
|\| | | | | | | | | | | Patch from Daniel Andrade Groppe and Peter Lovett
| * | Issue #24021: docstring for urllib.urlcleanup.Robert Collins2015-08-04
| | | | | | | | | | | | Patch from Daniel Andrade Groppe and Peter Lovett
* | | #7159: generalize urllib prior auth support.R David Murray2015-04-16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fix is a superset of the functionality introduced by the issue #19494 enhancement, and supersedes that fix. Instead of a new handler, we have a new password manager that tracks whether we should send the auth for a given uri. This allows us to say "always send", satisfying #19494, or track that we've succeeded in auth and send the creds right away on every *subsequent* request. The support for using the password manager is added to AbstractBasicAuth, which means the proxy handler also now can handle prior auth if passed the new password manager. Patch by Akshit Khurana, docs mostly by me.
* | | (Merge 3.4) Issue #23881: urllib.request.ftpwrapper constructor now closes theVictor Stinner2015-04-07
|\| | | | | | | | | | | socket if the FTP connection failed to fix a ResourceWarning.
| * | Issue #23881: urllib.request.ftpwrapper constructor now closes the socket ifVictor Stinner2015-04-07
| | | | | | | | | | | | the FTP connection failed to fix a ResourceWarning.
* | | merge 3.4Benjamin Peterson2014-12-07
|\| |
| * | use context's check_hostname attribute rather than the HTTPSHandler ↵Benjamin Peterson2014-12-07
| | | | | | | | | | | | check_hostname parameter
| * | backport context argument of urlopen (#22366) for pep 476Senthil Kumaran2014-09-19
| | |
* | | Close #19494: add urrlib.request.HTTPBasicPriorAuthHandlerNick Coghlan2014-11-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This auth handler adds the Authorization header to the first HTTP request rather than waiting for a HTTP 401 Unauthorized response from the server as the default HTTPBasicAuthHandler does. This allows working with websites like https://api.github.com which do not follow the strict interpretation of RFC, but more the dicta in the end of section 2 of RFC 2617: > A client MAY preemptively send the corresponding Authorization > header with requests for resources in that space without receipt > of another challenge from the server. Similarly, when a client > sends a request to a proxy, it may reuse a userid and password in > the Proxy-Authorization header field without receiving another > challenge from the proxy server. See section 4 for security > considerations associated with Basic authentication. Patch by Matej Cepl.
* | | Issue #22366: urllib.request.urlopen will accept a context object (SSLContext)Senthil Kumaran2014-09-19
|/ / | | | | | | | | | | as an argument which will then used be for HTTPS connection. Patch by Alex Gaynor.
* | Issue #19524: Fixed resource leak in the HTTP connection when an invalidSerhiy Storchaka2014-09-06
| | | | | | | | response is received. Patch by Martin Panter.
* | Fix Issue #8797: Raise HTTPError on failed Basic Authentication immediately. ↵Senthil Kumaran2014-08-20
| | | | | | | | Initial patch by Sam Bull.
* | backout changeset 3435c5865cfc due to buildbot failures. Ref #8797Senthil Kumaran2014-08-16
| |
* | Fix Issue #8797: Raise HTTPError on failed Basic Authentication immediately. ↵Senthil Kumaran2014-08-16
| | | | | | | | Initial patch by Sam Bull.
* | Fix localhost checking in FileHandler. Raised in #21970.Senthil Kumaran2014-07-22
| |
* | in ftp cache pruning, avoid changing the size of a dict while iterating over ↵Benjamin Peterson2014-06-07
| | | | | | | | | | | | it (closes #21463) Patch by Skyler Leigh Amador.
* | Convert urllib.request parse_proxy doctests to unittests.Senthil Kumaran2014-04-14
| |
* | fix typoBenjamin Peterson2014-04-01
| |
* | simplify check, since now there are only new-style classesBenjamin Peterson2014-04-01
| |
* | Issue #19735: Implement private function ssl._create_stdlib_context() toChristian Heimes2013-11-23
| | | | | | | | | | create SSLContext objects in Python's stdlib module. It provides a single configuration point and makes use of SSLContext.load_default_certs().
* | Issue #18978: A more elegant technique for resolving the methodJason R. Coombs2013-09-08
| |
* | Issue #18978: Allow Request.method to be defined at the class level.Jason R. Coombs2013-09-08
| |
* | Issue #18200: Back out usage of ModuleNotFoundError (8d28d44f3a9a)Brett Cannon2013-07-04
| |
* | Issue #18200: Update the stdlib (except tests) to useBrett Cannon2013-06-13
| | | | | | | | ModuleNotFoundError.
* | merge from 3.3Senthil Kumaran2013-06-02
|\| | | | | | | | | | | | | Fix #17967 - Fix related to regression on Windows. os.path.join(*self.dirs) produces an invalid path on windows. ftp paths are always forward-slash seperated like this. /pub/dir.
| * Fix #17967 - Fix related to regression on Windows.Senthil Kumaran2013-06-02
| | | | | | | | | | os.path.join(*self.dirs) produces an invalid path on windows. ftp paths are always forward-slash seperated like this. /pub/dir.
* | merge from 3.3Senthil Kumaran2013-06-01
|\| | | | | | | | | | | Fix thishost helper funtion in urllib. Returns the ipaddress of localhost when hostname is resolvable by socket.gethostname for local machine. This all fixes certain freebsd builtbot failures.
| * Fix thishost helper funtion in urllib. Returns the ipaddress of localhost whenSenthil Kumaran2013-06-01
| | | | | | | | | | hostname is resolvable by socket.gethostname for local machine. This all fixes certain freebsd builtbot failures.
* | merge from 3.3Senthil Kumaran2013-06-01
|\| | | | | | | | | | | Fix #17967: For ftp urls CWD to target instead of hopping to each directory towards target. This fixes a bug where target is accessible, but parent directories are restricted.
| * Fix #17967: For ftp urls CWD to target instead of hopping to each directorySenthil Kumaran2013-06-01
| | | | | | | | | | towards target. This fixes a bug where target is accessible, but parent directories are restricted.
* | Fix #17272 - Make Request.full_url and Request.get_full_url return same ↵Senthil Kumaran2013-05-24
| | | | | | | | | | | | result under all circumstances. Document the change of Request.full_url to a property.
* | merge 3.3Benjamin Peterson2013-05-12
|\|