summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_urllib.py
Commit message (Collapse)AuthorAgeFilesLines
* Minor spell fix and formatting fixes in urllib tests. (#959) (#960)Senthil Kumaran2017-04-021-1/+5
| | | (cherry picked from commit efbd4ea65dbb9f87b1afeec6a760802756badee5)
* Issue #29142: Fix suffixes in no_proxy handling in urllib.Xiang Zhang2017-01-091-1/+2
| | | | | | In urllib.request, suffixes in no_proxy environment variable with leading dots could match related hostnames again (e.g. .b.c matches a.b.c). Patch by Milan Oberkirch.
* Issue #27895: Spelling fixes (Contributed by Ville Skyttä).Martin Panter2016-09-071-1/+1
|
* [merge from 3.4] - Prevent HTTPoxy attack (CVE-2016-1000110)Senthil Kumaran2016-07-311-0/+12
|\ | | | | | | | | | | | | Ignore the HTTP_PROXY variable when REQUEST_METHOD environment is set, which indicates that the script is in CGI mode. Issue #27568 Reported and patch contributed by Rémi Rampin.
| * [merge from 3.3] Prevent HTTPoxy attack (CVE-2016-1000110)Senthil Kumaran2016-07-311-0/+13
| |\ | | | | | | | | | | | | | | | | | | Ignore the HTTP_PROXY variable when REQUEST_METHOD environment is set, which indicates that the script is in CGI mode. Issue #27568 Reported and patch contributed by Rémi Rampin.
| | * Prevent HTTPoxy attack (CVE-2016-1000110)Senthil Kumaran2016-07-311-0/+13
| | | | | | | | | | | | | | | | | | | | | Ignore the HTTP_PROXY variable when REQUEST_METHOD environment is set, which indicates that the script is in CGI mode. Issue #27568 Reported and patch contributed by Rémi Rampin.
* | | Issue #14132: Fix redirect handling when target is just a query stringMartin Panter2016-05-161-3/+4
| | |
* | | Issue #26864: Fix case insensitivity and suffix comparison with no_proxyMartin Panter2016-04-301-0/+13
| | | | | | | | | | | | Patch by Xiang Zhang.
* | | Issue #26804: urllib.request will prefer lower_case proxy environment variablesSenthil Kumaran2016-04-251-1/+39
| | | | | | | | | | | | | | | | | | over UPPER_CASE or Mixed_Case ones. Patch contributed by Hans-Peter Jansen. Reviewed by Martin Panter and Senthil Kumaran.
* | | Issue #12923: Reset FancyURLopener's redirect counter even on exceptionMartin Panter2016-02-041-6/+25
| | | | | | | | | | | | Based on patches by Brian Brazil and Daniel Rocco.
* | | Issue #25523: Merge "a" to "an" fixes from 3.4 into 3.5Martin Panter2015-11-021-1/+1
|\ \ \ | |/ /
| * | Issue #25523: Correct "a" article to "an" articleMartin Panter2015-11-021-1/+1
| | | | | | | | | | | | | | | | | | This changes the main documentation, doc strings, source code comments, and a couple error messages in the test suite. In some cases the word was removed or edited some other way to fix the grammar.
* | | Added more tests for urllib.parse utility functions.Serhiy Storchaka2015-03-021-15/+0
|\ \ \ | |/ / | | | | | | These functions are not documented but used in third-party code.
| * | Added more tests for urllib.parse utility functions.Serhiy Storchaka2015-03-021-15/+0
| | | | | | | | | | | | These functions are not documented but used in third-party code.
| * | backport context argument of urlopen (#22366) for pep 476Senthil Kumaran2014-09-191-0/+8
| | |
* | | Fix test_urllib without the ssl moduleAntoine Pitrou2014-11-021-1/+5
| | |
* | | Issue #22366: urllib.request.urlopen will accept a context object (SSLContext)Senthil Kumaran2014-09-191-0/+8
| | | | | | | | | | | | | | | | | | 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-27/+32
|\ \ \ | |/ / | | | | | | response is received. Patch by Martin Panter.
| * | Issue #19524: Fixed resource leak in the HTTP connection when an invalidSerhiy Storchaka2014-09-061-27/+32
| | | | | | | | | | | | response is received. Patch by Martin Panter.
* | | Issue #21566: Make use of socket.listen() default backlog.Charles-François Natali2014-07-231-1/+1
|/ /
* | in ftp cache pruning, avoid changing the size of a dict while iterating over ↵Benjamin Peterson2014-06-071-1/+31
| | | | | | | | | | | | it (closes #21463) Patch by Skyler Leigh Amador.
* | Issue #20555: Use specific asserts in urllib, httplib, ftplib, cgi, wsgiref ↵Serhiy Storchaka2014-02-081-2/+2
|\ \ | |/ | | | | tests.
| * Issue #20555: Use specific asserts in urllib, httplib, ftplib, cgi, wsgiref ↵Serhiy Storchaka2014-02-081-2/+2
| | | | | | | | tests.
* | #18466: merge with 3.3.Ezio Melotti2013-08-171-1/+1
|\ \ | |/
| * #18466: fix more typos. Patch by Févry Thibault.Ezio Melotti2013-08-171-1/+1
| |
| * normalize whitespaceSenthil Kumaran2013-04-111-2/+2
| |
* | normalize whitespace. caught by hookSenthil Kumaran2013-04-111-2/+2
| |
* | merge from 3.3Senthil Kumaran2013-04-111-18/+58
|\ \ | |/ | | | | | | #5609 - test_urllib coverage for url2pathname and pathname2url. Patch contribution by Thomas Fenzl & Maksim Kozyarchuk
| * #5609 - test_urllib coverage for url2pathname and pathname2url. PatchSenthil Kumaran2013-04-111-17/+56
| | | | | | | | contribution by Thomas Fenzl & Maksim Kozyarchuk
* | Merge DeprecationWarnings silencing in test_urllib from 3.3.Ezio Melotti2013-02-211-9/+14
|\ \ | |/
| * Silence DeprecationWarnings in test_urllib.Ezio Melotti2013-02-211-9/+14
| |
* | Replace IOError with OSError (#16715)Andrew Svetlov2012-12-251-5/+5
| |
* | Issue #16423: urllib.request now has support for ``data:`` URLs.Antoine Pitrou2012-11-241-0/+74
| | | | | | | | Patch by Mathias Panzenböck.
* | Fix test_urllib broken by my previous commits. The assumptions it wasGregory P. Smith2012-11-101-4/+5
|\ \ | |/ | | | | | | | | testing were added as part of the issue10050 change that caused the wrong behavior in the first place. now all test cases agree on the behavior.
| * Fix test_urllib broken by my previous commits. The assumptions it wasGregory P. Smith2012-11-101-4/+5
| | | | | | | | | | | | testing were added as part of the issue10050 change that caused the wrong behavior in the first place. now all test cases agree on the behavior.
| * Issue #16250: Fix URLError invocation with proper argsSenthil Kumaran2012-10-271-1/+34
| |\
| | * Issue #16250: Fix URLError invocation with proper args.Senthil Kumaran2012-10-271-0/+35
| | |
* | | Fix the windows buildbot permission error - close the fd of tempfile beffore ↵Senthil Kumaran2012-10-231-6/+7
| | | | | | | | | | | | unlinking
* | | Fix issue16300: addressing the buildbot failures on windowsSenthil Kumaran2012-10-231-2/+1
| | |
* | | skip the file localhost test on windows. Fix it on branch and modify the testSenthil Kumaran2012-10-231-0/+1
| | |
* | | Fix the ResourceWarning in test_urllib.py due changes made for #16301. Patch ↵Senthil Kumaran2012-10-231-1/+2
| | | | | | | | | | | | by Berker Peksag
* | | Issue #16301: Fix the localhost verification in urllib/request.py for ↵Senthil Kumaran2012-10-221-1/+1
| | | | | | | | | | | | file://. Modify tests to use localhost for local temp files, which could make Windows Buildbot (#16300) happy
* | | Issue #16250: Fix the invocations of URLError which had misplaced filename ↵Senthil Kumaran2012-10-221-2/+30
| | | | | | | | | | | | attribute for exception
* | | Issue #10836: Fix exception raised when file not found in urlretrieveSenthil Kumaran2012-10-211-0/+5
|/ /
* | revert the changes done for issue14826 - quoting witin Request is not desirable.Senthil Kumaran2012-07-091-5/+0
|\ \ | |/
| * revert the changes done for issue14826 - quoting witin Request is not desirable.Senthil Kumaran2012-07-091-5/+0
| |
* | Fix issue14826 - make urllib.request.Request quoted url consistent with ↵Senthil Kumaran2012-07-081-0/+5
|\ \ | |/ | | | | | | | | URLOpener open method. Patch contributed by Stephen Thorne.
| * Fix issue14826 - make urllib.request.Request quoted url consistent with ↵Senthil Kumaran2012-07-081-0/+5
| | | | | | | | | | | | URLOpener open method. Patch contributed by Stephen Thorne.
* | deprecated the old urllib primitives in 3.3 urllib package - issue 10050Senthil Kumaran2012-03-141-0/+4
| |
* | Issue10050 - urlretrieve uses newer urlopen. reporthook of urlretrieve ↵Senthil Kumaran2012-03-141-17/+17
| | | | | | | | takes, block number, block read size, file_size