summaryrefslogtreecommitdiffstats
path: root/Lib/urllib
Commit message (Collapse)AuthorAgeFilesLines
* Issue #25985: sys.version_info is now used instead of sys.versionSerhiy Storchaka2016-02-111-1/+1
| | | | to format short Python version.
* Issue #12923: Merge FancyURLopener fix from 3.5Martin Panter2016-02-061-11/+13
|\
| * Issue #12923: Reset FancyURLopener's redirect counter even on exceptionMartin Panter2016-02-041-11/+13
| | | | | | | | Based on patches by Brian Brazil and Daniel Rocco.
* | merge from 3.5Senthil Kumaran2016-01-261-15/+0
|\ \ | |/ | | | | Remove unnecessary test case comment in urllib.parse.py. These are asserted as test cases.
| * Remove unnecessary test case comment in urllib.parse.py. These are asserted ↵Senthil Kumaran2016-01-261-15/+0
| | | | | | | | as test cases.
* | Issue #25822: Add docstrings to the fields of urllib.parse results.Senthil Kumaran2016-01-141-2/+65
| | | | | | | | Patch contributed by Swati Jaiswal.
* | Issue #25899: Converted non-ASCII characters in docstrings and manpageSerhiy Storchaka2015-12-181-3/+3
|\ \ | |/ | | | | | | 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-241-7/+2
| |
* | Issue #16099: RobotFileParser now supports Crawl-delay and Request-rateBerker Peksag2015-10-081-2/+37
| | | | | | | | | | | | extensions. Patch by Nikolay Bogoychev.
* | Add missing docstringRaymond Hettinger2015-08-181-0/+65
| |
* | Issue #20059: urllib.parse raises ValueError on all invalid ports.Robert Collins2015-08-091-2/+1
|/ | | | Patch by Martin Panter.
* Issue #24021: docstring for urllib.urlcleanup.Robert Collins2015-08-041-0/+1
|\ | | | | | | Patch from Daniel Andrade Groppe and Peter Lovett
| * Issue #24021: docstring for urllib.urlcleanup.Robert Collins2015-08-041-0/+1
| | | | | | | | Patch from Daniel Andrade Groppe and Peter Lovett
* | Issue #13866: add *quote_via* argument to urlencode.R David Murray2015-05-181-14/+15
| | | | | | | | | | Patch by samwyse, completed by Arnon Yaari, and reviewed by Martin Panter.
* | Issue #23887: urllib.error.HTTPError now has a proper repr() representation.Facundo Batista2015-04-221-1/+6
| |
* | #7159: generalize urllib prior auth support.R David Murray2015-04-161-18/+60
| | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | Issue #23703: Fix a regression in urljoin() introduced in 901e4e52b20a.Berker Peksag2015-04-151-2/+1
| | | | | | | | Patch by Demian Brecht.
* | Issue #23865: close() methods in multiple modules now are idempotent and moreSerhiy Storchaka2015-04-101-5/+9
|\ \ | |/ | | | | | | robust at shutdown. If needs to release multiple resources, they are released even if errors are occured.
| * Issue #23865: close() methods in multiple modules now are idempotent and moreSerhiy Storchaka2015-04-101-5/+9
| | | | | | | | | | robust at shutdown. If needs to release multiple resources, they are released even if errors are occured.
* | Issue #23411: Added DefragResult, ParseResult, SplitResult, DefragResultBytes,Serhiy Storchaka2015-04-071-1/+3
| | | | | | | | | | ParseResultBytes, and SplitResultBytes to urllib.parse.__all__. Patch by Martin Panter.
* | (Merge 3.4) Issue #23881: urllib.request.ftpwrapper constructor now closes theVictor Stinner2015-04-071-1/+5
|\ \ | |/ | | | | socket if the FTP connection failed to fix a ResourceWarning.
| * Issue #23881: urllib.request.ftpwrapper constructor now closes the socket ifVictor Stinner2015-04-071-1/+5
| | | | | | | | the FTP connection failed to fix a ResourceWarning.
* | Issue #23563: Optimized utility functions in urllib.parse.Serhiy Storchaka2015-03-031-60/+28
| |
* | Merge: #23040: Clarify treatment of encoding and errors when component is bytes.R David Murray2014-12-251-4/+5
|\ \ | |/
| * #23040: Clarify treatment of encoding and errors when component is bytes.R David Murray2014-12-251-4/+5
| | | | | | | | Patch by Wojtek Ruszczewski.
* | merge 3.4Benjamin Peterson2014-12-071-2/+2
|\ \ | |/
| * use context's check_hostname attribute rather than the HTTPSHandler ↵Benjamin Peterson2014-12-071-2/+2
| | | | | | | | check_hostname parameter
| * backport context argument of urlopen (#22366) for pep 476Senthil Kumaran2014-09-191-1/+9
| |
* | Close #19494: add urrlib.request.HTTPBasicPriorAuthHandlerNick Coghlan2014-11-121-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 #22278: Fix urljoin problem with relative urls, a regression observedSenthil Kumaran2014-09-221-1/+5
| | | | | | | | | | | | after changes to issue22118 were submitted. Patch contributed by Demian Brecht and reviewed by Antoine Pitrou.
* | Issue #22366: urllib.request.urlopen will accept a context object (SSLContext)Senthil Kumaran2014-09-191-1/+9
| | | | | | | | | | | | 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-061-11/+14
|\ \ | |/ | | | | response is received. Patch by Martin Panter.
| * Issue #19524: Fixed resource leak in the HTTP connection when an invalidSerhiy Storchaka2014-09-061-11/+14
| | | | | | | | response is received. Patch by Martin Panter.
* | Issue #22118: Switch urllib.parse to use RFC 3986 semantics for the ↵Antoine Pitrou2014-08-211-25/+38
| | | | | | | | | | | | resolution of relative URLs, rather than RFCs 1808 and 2396. Patch by Demian Brecht.
* | merge from 3.4Senthil Kumaran2014-08-201-18/+2
|\ \ | |/ | | | | Fix Issue #8797: Raise HTTPError on failed Basic Authentication immediately. Initial patch by Sam Bull.
| * Fix Issue #8797: Raise HTTPError on failed Basic Authentication immediately. ↵Senthil Kumaran2014-08-201-18/+2
| | | | | | | | Initial patch by Sam Bull.
* | merge 3.4; backout changeset 3435c5865cfc due to buildbot failures. Ref #8797Senthil Kumaran2014-08-161-2/+18
|\ \ | |/
| * backout changeset 3435c5865cfc due to buildbot failures. Ref #8797Senthil Kumaran2014-08-161-2/+18
| |
* | merge from 3.4Senthil Kumaran2014-08-161-18/+2
|\ \ | |/ | | | | Fix Issue #8797: Raise HTTPError on failed Basic Authentication immediately. Initial patch by Sam Bull.
| * Fix Issue #8797: Raise HTTPError on failed Basic Authentication immediately. ↵Senthil Kumaran2014-08-161-18/+2
| | | | | | | | Initial patch by Sam Bull.
* | Issue #22033: Reprs of most Python implemened classes now contain actualSerhiy Storchaka2014-07-251-1/+1
| | | | | | | | class name instead of hardcoded one.
* | Merge 3.4Senthil Kumaran2014-07-221-1/+1
|\ \ | |/ | | | | Fix localhost checking in FileHandler. Raised in #21970.
| * Fix localhost checking in FileHandler. Raised in #21970.Senthil Kumaran2014-07-221-1/+1
| |
* | merge 3.4 (#21463)Benjamin Peterson2014-06-071-1/+1
|\ \ | |/
| * in ftp cache pruning, avoid changing the size of a dict while iterating over ↵Benjamin Peterson2014-06-071-1/+1
| | | | | | | | | | | | it (closes #21463) Patch by Skyler Leigh Amador.
* | Issue 21469: Minor code modernization (convert and/or expression to an ↵Raymond Hettinger2014-05-131-1/+1
|/ | | | | | if/else expression). Suggested by: Tal Einat
* Issue 21469: Mitigate risk of false positives with robotparser.Raymond Hettinger2014-05-131-2/+9
| | | | | | | | | | | | | | | | | | | * Repair the broken link to norobots-rfc.txt. * HTTP response codes >= 500 treated as a failed read rather than as a not found. Not found means that we can assume the entire site is allowed. A 5xx server error tells us nothing. * A successful read() or parse() updates the mtime (which is defined to be "the time the robots.txt file was last fetched"). * The can_fetch() method returns False unless we've had a read() with a 2xx or 4xx response. This avoids false positives in the case where a user calls can_fetch() before calling read(). * I don't see any easy way to test this patch without hitting internet resources that might change or without use of mock objects that wouldn't provide must reassurance.
* urllib.response object to use _TemporaryFileWrapper (and _TemporaryFileCloser)Senthil Kumaran2014-04-201-42/+19
| | | | | | facility. Provides a better way to handle file descriptor close. Address issue #15002 . Patch contributed by Christian Theune.
* Convert urllib.request parse_proxy doctests to unittests.Senthil Kumaran2014-04-141-44/+1
|
* fix typoBenjamin Peterson2014-04-011-1/+1
|