Commit Graph

191 Commits

Author SHA1 Message Date
Senthil Kumaran b0d85fd1b5 Issue12541 - Add UserWarning for unquoted realms 2012-05-15 23:59:19 +08:00
Senthil Kumaran 6a2a6c2ee3 Issue #12541: Be lenient with quotes around Realm field with HTTP Basic Authentation in urllib2. 2012-05-15 22:24:10 +08:00
Jason R. Coombs 974d863fec Issue #13211: Add .reason attribute to HTTPError to implement parent class (URLError) interface. 2011-11-07 10:44:25 -05:00
Senthil Kumaran 7d7702b581 merge from 3.2 - fix urlopen behavior on sites which do not send (or obsfuscates) Connection: Close header. 2011-07-27 09:37:17 +08:00
Nadeem Vawda b42c53e442 Issue #10883: Fix socket leaks in urllib.request.
* ftpwrapper now uses reference counting to ensure that the underlying socket
  is closed when the ftpwrapper object is no longer in use
* ftplib.FTP.ntransfercmd() now closes the socket if an error occurs

Initial patch by Victor Stinner.
2011-07-23 15:51:16 +02:00
Victor Stinner c74a6ba2d6 Issue #12133: AbstractHTTPHandler.do_open() of urllib.request closes the HTTP
connection if its getresponse() method fails with a socket error. Patch written
by Ezio Melotti.
2011-06-17 14:06:27 +02:00
Senthil Kumaran 49c440877e Fix Issue11703 - urllib2.get_url does not handle fragment in url properly. 2011-04-13 07:31:45 +08:00
Guido van Rossum 07ef62c47c Merge issue 11662 from 2.6. 2011-03-29 12:53:55 -07:00
Guido van Rossum 079381d236 Merge issue 11662 from 2.5. 2011-03-29 12:51:16 -07:00
guido@google.com f1509306d2 Add tests for the urllib[2] vulnerability. Change to raise exceptions. 2011-03-28 13:47:01 -07:00
guido@google.com 2bc23b8448 Add FTP to the allowed url schemes. Add Misc/NEWS. 2011-03-24 10:44:17 -07:00
guido@google.com 60a4a90c8d Issue 22663: fix redirect vulnerability in urllib/urllib2. 2011-03-24 08:07:45 -07:00
R. David Murray 14f6635762 Merged revisions 87448 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r87448 | r.david.murray | 2010-12-23 14:44:49 -0500 (Thu, 23 Dec 2010) | 4 lines

  #4496: remove misleading comment and note that self.handlers is obsolete.

  self.handlers is still used in one urllib2 test, but not by the code iteslf.
........
2010-12-23 19:50:56 +00:00
Senthil Kumaran 9fce551e0e Merged revisions 86520 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r86520 | senthil.kumaran | 2010-11-18 23:36:41 +0800 (Thu, 18 Nov 2010) | 3 lines

  Fix Issue2244 - urllib unquotes user and password info multiple times - Patch by Theodore Turocy
........
2010-11-20 11:24:08 +00:00
Senthil Kumaran 176c73df0f Merged revisions 85025 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r85025 | senthil.kumaran | 2010-09-27 06:56:03 +0530 (Mon, 27 Sep 2010) | 6 lines

  Fix Issue1595365 - Adding the req.headers after the un-redirect headers have
  been added. This helps in accidental overwritting of User-Agent header to
  default value. To preserve the old behavior, only headers not in unredirected
  headers will be updated.
........
2010-09-27 01:40:59 +00:00
Senthil Kumaran 7e8fd5ed22 Merged revisions 84323 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r84323 | senthil.kumaran | 2010-08-26 11:46:22 +0530 (Thu, 26 Aug 2010) | 3 lines

  Fix Issue8797 - Reset the basic auth retry count when response code is not 401.
........
2010-08-26 06:20:13 +00:00
Senthil Kumaran 4f1ba0de8a Fix - Issue9639: Reset the retry counter after successful authentication. 2010-08-19 17:32:03 +00:00
Senthil Kumaran 7cc0fe44e0 Fix Issue9446 - urllib2 tests fail when offline 2010-08-11 18:18:22 +00:00
Senthil Kumaran b4ec7ee486 Merged revisions 83818 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r83818 | senthil.kumaran | 2010-08-08 16:57:53 +0530 (Sun, 08 Aug 2010) | 4 lines

  Fix Issue8280 - urllib2's Request method will remove fragements in the url.
  This is how it should work,wget and curl work like this way too. Old behavior was wrong.
........
2010-08-08 11:43:45 +00:00
Senthil Kumaran 9d3c5c8a4c Merged revisions 82782 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/release27-maint

................
  r82782 | senthil.kumaran | 2010-07-11 08:48:51 +0530 (Sun, 11 Jul 2010) | 9 lines

  Merged revisions 82780 via svnmerge from
  svn+ssh://pythondev@svn.python.org/python/branches/py3k

  ........
    r82780 | senthil.kumaran | 2010-07-11 08:42:43 +0530 (Sun, 11 Jul 2010) | 3 lines

    Stricter verification for file based url scheme and reliance on ftp protocol.
  ........
................
2010-07-11 03:33:38 +00:00
Senthil Kumaran 87ed31a414 Merged revisions 82780 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r82780 | senthil.kumaran | 2010-07-11 08:42:43 +0530 (Sun, 11 Jul 2010) | 3 lines

  Stricter verification for file based url scheme and reliance on ftp protocol.
........
2010-07-11 03:18:51 +00:00
Senthil Kumaran 7c7244bdef Merged revisions 81636 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r81636 | senthil.kumaran | 2010-06-01 18:10:07 +0530 (Tue, 01 Jun 2010) | 3 lines

  Fix Issue8797 - urllib2 basic authentication fix for wrong passwords. It fails after 5 retries.
........
2010-06-01 12:42:44 +00:00
Senthil Kumaran 4f0108b0d9 Fix Issue8797 - urllib2 basic authentication fix for wrong passwords. It fails after 5 retries. 2010-06-01 12:40:07 +00:00
Senthil Kumaran a9a9f696d5 Merged revisions 80957 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r80957 | senthil.kumaran | 2010-05-08 10:30:11 +0530 (Sat, 08 May 2010) | 2 lines

  Fixing the errors trigerred in test_urllib2net. Related to issue8656.
........
2010-05-08 05:03:45 +00:00
Senthil Kumaran 18e4dd74e0 Fixing the errors trigerred in test_urllib2net. Related to issue8656. 2010-05-08 05:00:11 +00:00
Senthil Kumaran 2add184b2d Merged revisions 80953 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r80953 | senthil.kumaran | 2010-05-08 08:41:50 +0530 (Sat, 08 May 2010) | 3 lines

  Fix Issue8656 - urllib2 mangles file://-scheme URLs
........
2010-05-08 03:14:33 +00:00
Senthil Kumaran 6057ba1f97 Fix Issue8656 - urllib2 mangles file://-scheme URLs 2010-05-08 03:11:50 +00:00
Senthil Kumaran 4e62949217 Reverting the change made in r78431. 2010-03-07 04:09:30 +00:00
Senthil Kumaran 7eda9e9082 Reverting the changes made in r78432. Discussed in the tracker issue7540. 2010-03-04 15:15:37 +00:00
Senthil Kumaran 4649299dc3 Merged revisions 78431 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r78431 | senthil.kumaran | 2010-02-25 02:25:31 +0530 (Thu, 25 Feb 2010) | 4 lines

  Fix for Issue7540 ; urllib2 will raise a TypeError when you try to add_data to
  a existing req object already having data.
........
2010-02-24 20:58:58 +00:00
Senthil Kumaran e9a78083c0 Fix for Issue7540 ; urllib2 will raise a TypeError when you try to add_data to
a existing req object already having data.
2010-02-24 20:55:31 +00:00
Senthil Kumaran e3c651a836 Merged revisions 78422 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r78422 | senthil.kumaran | 2010-02-24 22:15:46 +0530 (Wed, 24 Feb 2010) | 2 lines

  Fix for Issue3819 - urllib2 sends Basic auth across redirects
........
2010-02-24 16:49:45 +00:00
Senthil Kumaran 8526adfbd9 Fix for Issue3819 - urllib2 sends Basic auth across redirects 2010-02-24 16:45:46 +00:00
Senthil Kumaran c4151effad Merged revisions 77058 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r77058 | senthil.kumaran | 2009-12-27 14:41:09 +0530 (Sun, 27 Dec 2009) | 4 lines

  Fix for issue5625 - test_urllib2 fails - urlopen error file not on local host.
  This is on hosts with multiple ip addresses.
........
2009-12-27 09:16:30 +00:00
Senthil Kumaran 13c2ef92f8 Fix for issue5625 - test_urllib2 fails - urlopen error file not on local host.
This is on hosts with multiple ip addresses.
2009-12-27 09:11:09 +00:00
Senthil Kumaran 8116364b73 Merged revisions 76908 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r76908 | senthil.kumaran | 2009-12-20 11:35:13 +0530 (Sun, 20 Dec 2009) | 4 lines

  Fix for issue 7291 - urllib2 cannot handle https with proxy requiring auth
  Refactored HTTPHandler tests and added testcase for proxy authorization.
........
2009-12-20 06:32:46 +00:00
Senthil Kumaran 7713acf201 Fix for issue 7291 - urllib2 cannot handle https with proxy requiring auth
Refactored HTTPHandler tests and added testcase for proxy authorization.
2009-12-20 06:05:13 +00:00
Senthil Kumaran 10c858ac4d Merged revisions 76288 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r76288 | senthil.kumaran | 2009-11-15 14:06:20 +0530 (Sun, 15 Nov 2009) | 3 lines

  Fix for Issue4683 - urllib2.HTTPDigestAuthHandler fails on third hostname?.
  Resolution: Reset the nonce value for each unique nonce (as per RFC 2617)
........
2009-11-15 08:39:10 +00:00
Senthil Kumaran 20eb4f0782 Fix for Issue4683 - urllib2.HTTPDigestAuthHandler fails on third hostname?.
Resolution: Reset the nonce value for each unique nonce (as per RFC 2617)
2009-11-15 08:36:20 +00:00
Senthil Kumaran f0bb435484 Merged revisions 76282 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r76282 | senthil.kumaran | 2009-11-15 11:40:30 +0530 (Sun, 15 Nov 2009) | 3 lines

  Addition of some details in the code comments.
........
2009-11-15 06:14:36 +00:00
Senthil Kumaran 51200277b2 Addition of some details in the code comments. 2009-11-15 06:10:30 +00:00
Senthil Kumaran dff2028a1b Merged revisions 75333 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r75333 | senthil.kumaran | 2009-10-11 07:30:07 +0530 (Sun, 11 Oct 2009) | 3 lines

  Fixed Issue6894, urllib2 doesn't respect "no_proxy" environment
........
2009-10-11 05:35:44 +00:00
Senthil Kumaran 274686631a Fixed Issue6894, urllib2 doesn't respect "no_proxy" environment 2009-10-11 02:00:07 +00:00
Senthil Kumaran 308681c405 Backporting the changes made in revision 72880 as fix for Issue1424152. 2009-07-26 12:36:08 +00:00
Senthil Kumaran 428e9d1d05 Fix for issue5102, timeout value propages between redirects, proxy, digest and
auth handlers. Fixed tests to reflect the same.
2009-07-19 04:20:46 +00:00
Senthil Kumaran 5fee460bfa Fix for issue5102, timeout value propages between redirects, proxy, digest and
auth handlers. Fixed tests to reflect the same.
2009-07-19 02:43:43 +00:00
Senthil Kumaran e266f25cf1 Fixed Issue1424152, urllib2 fails with HTTPS over Proxy. 2009-05-24 09:14:50 +00:00
Benjamin Peterson 4bb96feb60 no need for this __bases__ trick anymore 2009-02-12 04:17:04 +00:00
Kristján Valur Jónsson 3c43fcba8b Issue 4879: Allow buffering for HTTPResponse 2009-01-11 16:23:37 +00:00
Brett Cannon 88f801d409 Update __all__ for cookielib, csv, os, and urllib2 for objects imported into
the module but exposed as part of the API.
2008-08-18 00:46:22 +00:00