Merge branch 'master' into fix-1859
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by Cory Benfield · committed by Cory Benfield · parents 87abd9c, b32c3bc · Browse files · 83 files·+7946 added−3006 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
83 files+7946 added−3006 removed
- other:+7946 added−3006 removed
Provenance
- Commit
96a068b- Tree
7629dd0- Author
Cory Benfield <lukasaoz@gmail.com>- Committer
Cory Benfield <lukasaoz@gmail.com>- Parent 1
87abd9c- Parent 2
b32c3bc
83 files changed+7946 added−3006 removed
modified:docs/_templates/sidebarintro.html+12 added-13 removed
13 unmodified lines14151617181920212223242526272824252627282930313233342930313233343536434437383940414243444546474849505113 unmodified lines human beings.</p>
<p> <a href="https://gumroad.com/l/RRZc" class="gumroad-button">Buy Requests Pro</a></p>
<h3>Get Updates</h3><p>Receive updates on new releases and upcoming projects.</p>
<p><a href="http://tinyletter.com/kennethreitz">Subscribe to Newsletter</a></p>
<h3>Get Support</h3>
<p> If your organization uses Requests, consider financial support:</p><p> <a href="http://gum.co/RRZc" class="gumroad-button">Requests Pro</a><script type="text/javascript" src="https://gumroad.com/js/gumroad-button.js"></script></p>
<h3>Translations</h3><ul><li><a href="http://docs.python-requests.org/">English</a></li><li><a href="http://fr.python-requests.org/">French</a></li><li><a href="http://de.python-requests.org/">German</a></li><li><a href="http://jp.python-requests.org/">Japanese</a></li><li><a href="http://cn.python-requests.org/">Chinese</a></li><li><a href="http://pt.python-requests.org/">Portuguese</a></li>
<li><a href="http://it.python-requests.org/">Italian</a></li><li><a href="http://es.python-requests.org/">Spanish</a></li></ul>
<h3>Useful Links</h3><ul> <li><a href="http://docs.python-requests.org/en/latest/community/recommended/">Recommended Packages and Extensions</a></li>
<p></p>
<li><a href="http://github.com/kennethreitz/requests">Requests @ GitHub</a></li> <li><a href="http://pypi.python.org/pypi/requests">Requests @ PyPI</a></li> <li><a href="http://github.com/kennethreitz/requests/issues">Issue Tracker</a></li> <li><a href="http://docs.python-requests.org/en/latest/community/updates/#software-updates">Release History</a></li></ul>modified:docs/_templates/sidebarlogo.html+4 added-8 removed
12 unmodified lines1314151617181920212223242526232425262728293012 unmodified lines human beings. You are currently looking at the documentation of the development release.</p>
<p> <a href="https://gumroad.com/l/RRZc" class="gumroad-button">Buy Requests Pro</a></p>
<h3>Get Updates</h3><p>Receive updates on new releases and upcoming projects.</p>
<p><a href="http://tinyletter.com/kennethreitz">Subscribe to Newsletter</a></p>
<h3>Get Support</h3>
<p> If your organization uses Requests, consider financial support:</p><p> <a href="http://gum.co/RRZc" class="gumroad-button">Requests Pro</a><script type="text/javascript" src="https://gumroad.com/js/gumroad-button.js"></script></p>No newline at end of filemodified:docs/_themes/kr/layout.html+13 added
13 unmodified lines141516171819202122232445 unmodified lines7071727374757677787980818283848513 unmodified lines </div> <a href="https://github.com/kennethreitz/requests" class="github"> <img style="position: absolute; top: 0; right: 0; border: 0;" src="http://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png" alt="Fork me on GitHub" class="github"/> </a>
<script type="text/javascript" src="https://gumroad.com/js/gumroad.js"></script>
<script type="text/javascript"> /* <![CDATA[ */ (function() { var s = document.createElement('script'), t = document.getElementsByTagName('script')[0];45 unmodified lines s.parentNode.insertBefore(t, s); })(); </script>
<script type="text/javascript"> (function() { window._pa = window._pa || {}; _pa.productId = "requests-docs"; var pa = document.createElement('script'); pa.type = 'text/javascript'; pa.async = true; pa.src = ('https:' == document.location.protocol ? 'https:' : 'http:') + "//tag.perfectaudience.com/serve/5226171f87bc6890da0000a0.js"; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(pa, s); })();</script>
{%- endblock %}modified:docs/community/faq.rst+26 added
57 unmodified lines58 * Python 2.759 * Python 3.160 * Python 3.261 * Python 3.362+* Python 3.463 * PyPy 1.964+* PyPy 2.265+66+What are "hostname doesn't match" errors?67+-----------------------------------------68+69+These errors occur when :ref:`SSL certificate verification <verification>`70+fails to match the certificate the server responds with to the hostname71+Requests thinks it's contacting. If you're certain the server's SSL setup is72+correct (for example, because you can visit the site with your browser) and73+you're using Python 2.6 or 2.7, a possible explanation is that you need74+Server-Name-Indication.75+76+`Server-Name-Indication`_, or SNI, is an official extension to SSL where the77+client tells the server what hostname it is contacting. This is important78+when servers are using `Virtual Hosting`_. When such servers are hosting79+more than one SSL site they need to be able to return the appropriate80+certificate based on the hostname the client is connecting to.81+82+Python3 and Python 2.7.9+ include native support for SNI in their SSL modules.83+For information on using SNI with Requests on Python < 2.7.9 refer to this84+`Stack Overflow answer`_.85+86+.. _`Server-Name-Indication`: https://en.wikipedia.org/wiki/Server_Name_Indication87+.. _`virtual hosting`: https://en.wikipedia.org/wiki/Virtual_hosting88+.. _`Stack Overflow answer`: https://stackoverflow.com/questions/18578439/using-requests-with-tls-doesnt-give-sni-support/18579484#18579484modified:docs/community/out-there.rst+2 added-2 removed
23 unmodified lines24 25 Articles & Talks26 ================27 - `Python for the Web <http://gun.io/blog/python-for-the-web/>`_ teaches how to use Python to interact with the web, using Requests.28-- `Daniel Greenfield's Review of Requests <http://pydanny.blogspot.com/2011/05/python-http-requests-for-humans.html>`_28+- `Daniel Greenfeld's Review of Requests <http://pydanny.blogspot.com/2011/05/python-http-requests-for-humans.html>`_29 - `My 'Python for Humans' talk <http://python-for-humans.heroku.com>`_ ( `audio <http://codeconf.s3.amazonaws.com/2011/pycodeconf/talks/PyCodeConf2011%20-%20Kenneth%20Reitz.m4a>`_ )30 - `Issac Kelly's 'Consuming Web APIs' talk <http://issackelly.github.com/Consuming-Web-APIs-with-Python-Talk/slides/slides.html>`_31 - `Blog post about Requests via Yum <http://arunsag.wordpress.com/2011/08/17/new-package-python-requests-http-for-humans/>`_32 - `Russian blog post introducing Requests <http://habrahabr.ru/blogs/python/126262/>`_33-- `French blog post introducing Requests <http://www.nicosphere.net/requests-urllib2-de-python-simplifie-2432/>`_33+- `Sending JSON in Requests <http://www.coglib.com/~icordasc/blog/2014/11/sending-json-in-requests.html>`_added:docs/community/recommended.rst+57 added
1+.. _recommended:2+3+Recommended Packages and Extensions4+===================================5+6+Requests has a great variety of powerful and useful third-party extensions.7+This page provides an overview of some of the best of them.8+9+Certifi CA Bundle10+-----------------11+12+`Certifi`_ is a carefully curated collection of Root Certificates for13+validating the trustworthiness of SSL certificates while verifying the14+identity of TLS hosts. It has been extracted from the Requests project.15+16+.. _Certifi: http://certifi.io/en/latest/17+18+CacheControl19+------------20+21+`CacheControl`_ is an extension that adds a full HTTP cache to Requests. This22+makes your web requests substantially more efficient, and should be used23+whenever you're making a lot of web requests.24+25+.. _CacheControl: https://cachecontrol.readthedocs.org/en/latest/26+27+Requests-Toolbelt28+-----------------29+30+`Requests-Toolbelt`_ is a collection of utilities that some users of Requests may desire,31+but do not belong in Requests proper. This library is actively maintained32+by members of the Requests core team, and reflects the functionality most33+requested by users within the community.34+35+.. _Requests-Toolbelt: http://toolbelt.readthedocs.org/en/latest/index.html36+37+Requests-OAuthlib38+-----------------39+40+`requests-oauthlib`_ makes it possible to do the OAuth dance from Requests41+automatically. This is useful for the large number of websites that use OAuth42+to provide authentication. It also provides a lot of tweaks that handle ways43+that specific OAuth providers differ from the standard specifications.44+45+.. _requests-oauthlib: https://requests-oauthlib.readthedocs.org/en/latest/46+47+48+Betamax49+-------50+51+`Betamax`_ records your HTTP interactions so the NSA does not have to.52+A VCR imitation designed only for Python-Requests.53+54+.. _betamax: https://github.com/sigmavirus24/betamax55+56+57+added:docs/community/release-process.rst+54 added
1+Release Process and Rules2+=========================3+4+.. versionadded:: v2.6.25+6+Starting with the version to be released after ``v2.6.2``, the following rules7+will govern and describe how the Requests core team produces a new release.8+9+Major Releases10+--------------11+12+A major release will include breaking changes. When it is versioned, it will13+be versioned as ``vX.0.0``. For example, if the previous release was14+``v10.2.7`` the next version will be ``v11.0.0``.15+16+Breaking changes are changes that break backwards compatibility with prior17+versions. If the project were to change the ``text`` attribute on a18+``Response`` object to a method, that would only happen in a Major release.19+20+Major releases may also include miscellaneous bug fixes and upgrades to21+vendored packages. The core developers of Requests are committed to providing22+a good user experience. This means we're also committed to preserving23+backwards compatibility as much as possible. Major releases will be infrequent24+and will need strong justifications before they are considered.25+26+Minor Releases27+--------------28+29+A minor release will not include breaking changes but may include30+miscellaneous bug fixes and upgrades to vendored packages. If the previous31+version of Requests released was ``v10.2.7`` a minor release would be32+versioned as ``v10.3.0``.33+34+Minor releases will be backwards compatible with releases that have the same35+major version number. In other words, all versions that would start with36+``v10.`` should be compatible with each other.37+38+Hotfix Releases39+---------------40+41+A hotfix release will only include bug fixes that were missed when the project42+released the previous version. If the previous version of Requests released43+``v10.2.7`` the hotfix release would be versioned as ``v10.2.8``.44+45+Hotfixes will **not** include upgrades to vendored dependences after46+``v2.6.2``47+48+Reasoning49+---------50+51+In the 2.5 and 2.6 release series, the Requests core team upgraded vendored52+dependencies and caused a great deal of headaches for both users and the core53+team. To reduce this pain, we're forming a concrete set of procedures so54+expectations will be properly set.modified:docs/community/support.rst+18 added-4 removed
3 unmodified lines4 =======5 6 If you have questions or issues about Requests, there are several options:7 8+StackOverflow9+-------------10+11+If your question does not contain sensitive (possibly proprietary)12+information or can be properly anonymized, please ask a question on13+`StackOverflow <https://stackoverflow.com/questions/tagged/python-requests>`_14+and use the tag ``python-requests``.15+16 Send a Tweet17 ------------18 19 If your question is less than 140 characters, feel free to send a tweet to12-`@kennethreitz <http://twitter.com/kennethreitz>`_.20+`@kennethreitz <https://twitter.com/kennethreitz>`_,21+`@sigmavirus24 <https://twitter.com/sigmavirus24>`_, or22+`@lukasaoz <https://twitter.com/lukasaoz>`_.23 14-24 File an Issue25 -------------26 18-If you notice some unexpected behavior in Requests, or want to see support27+If you notice some unexpected behaviour in Requests, or want to see support28 for a new feature,29 `file an issue on GitHub <https://github.com/kennethreitz/requests/issues>`_.30 31 10 unmodified lines42 43 The official Freenode channel for Requests is44 `#python-requests <irc://irc.freenode.net/python-requests>`_45 37-I'm also available as **kennethreitz** on Freenode.46+The core developers of requests are on IRC throughout the day.47+You can find them in ``#python-requests`` as:48+49+- kennethreitz50+- lukasa51+- sigmavirus24modified:docs/community/updates.rst+3 added-14 removed
1 .. _updates:2 3 4-5-4 Community Updates5 =================6 7 If you'd like to stay up to date on the community and development of Requests,8 unmodified lines16 17 Twitter18 -------19 22-I often tweet about new features and releases of Requests.20+The author, Kenneth Reitz, often tweets about new features and releases of Requests.21 22 Follow `@kennethreitz <https://twitter.com/kennethreitz>`_ for updates.23 24 27-Mailing List28-------------25 30-There's a low-volume mailing list for Requests. To subscribe to the31-mailing list, send an email to32-`requests@librelist.org <mailto:requests@librelist.org>`_.26+Release and Version History27+===========================28 34-35-36-37-Software Updates38-================39-29 .. include:: ../../HISTORY.rst30 added:docs/community/vulnerabilities.rst+105 added
1+Vulnerability Disclosure2+========================3+4+If you think you have found a potential security vulnerability in requests,5+please email `sigmavirus24 <mailto:graffatcolmingov@gmail.com>`_ and6+`Lukasa <mailto:cory@lukasa.co.uk>`_ directly. **Do not file a public issue.**7+8+Our PGP Key fingerprints are:9+10+- 0161 BB7E B208 B5E0 4FDC 9F81 D9DA 0A04 9113 F853 (@sigmavirus24)11+12+- 90DC AE40 FEA7 4B14 9B70 662D F25F 2144 EEC1 373D (@lukasa)13+14+If English is not your first language, please try to describe the problem and15+its impact to the best of your ability. For greater detail, please use your16+native language and we will try our best to translate it using online services.17+18+Please also include the code you used to find the problem and the shortest19+amount of code necessary to reproduce it.20+21+Please do not disclose this to anyone else. We will retrieve a CVE identifier22+if necessary and give you full credit under whatever name or alias you provide.23+We will only request an identifier when we have a fix and can publish it in a24+release.25+26+We will respect your privacy and will only publicize your involvement if you27+grant us permission.28+29+Process30+-------31+32+This following information discusses the process the requests project follows33+in response to vulnerability disclosures. If you are disclosing a34+vulnerability, this section of the documentation lets you know how we will35+respond to your disclosure.36+37+Timeline38+~~~~~~~~39+40+When you report an issue, one of the project members will respond to you within41+two days *at the outside*. In most cases responses will be faster, usually42+within 12 hours. This initial response will at the very least confirm receipt43+of the report.44+45+If we were able to rapidly reproduce the issue, the initial response will also46+contain confirmation of the issue. If we are not, we will often ask for more47+information about the reproduction scenario.48+49+Our goal is to have a fix for any vulnerability released within two weeks of50+the initial disclosure. This may potentially involve shipping an interim51+release that simply disables function while a more mature fix can be prepared,52+but will in the vast majority of cases mean shipping a complete release as soon53+as possible.54+55+Throughout the fix process we will keep you up to speed with how the fix is56+progressing. Once the fix is prepared, we will notify you that we believe we57+have a fix. Often we will ask you to confirm the fix resolves the problem in58+your environment, especially if we are not confident of our reproduction59+scenario.60+61+At this point, we will prepare for the release. We will obtain a CVE number62+if one is required, providing you with full credit for the discovery. We will63+also decide on a planned release date, and let you know when it is. This64+release date will *always* be on a weekday.65+66+At this point we will reach out to our major downstream packagers to notify67+them of an impending security-related patch so they can make arrangements. In68+addition, these packagers will be provided with the intended patch ahead of69+time, to ensure that they are able to promptly release their downstream70+packages. Currently the list of people we actively contact *ahead of a public71+release* is:72+73+- Ralph Bean, Red Hat (@ralphbean)74+- Daniele Tricoli, Debian (@eriol)75+76+We will notify these individuals at least a week ahead of our planned release77+date to ensure that they have sufficient time to prepare. If you believe you78+should be on this list, please let one of the maintainers know at one of the79+email addresses at the top of this article.80+81+On release day, we will push the patch to our public repository, along with an82+updated changelog that describes the issue and credits you. We will then issue83+a PyPI release containing the patch.84+85+At this point, we will publicise the release. This will involve mails to86+mailing lists, Tweets, and all other communication mechanisms available to the87+core team.88+89+We will also explicitly mention which commits contain the fix to make it easier90+for other distributors and users to easily patch their own versions of requests91+if upgrading is not an option.92+93+Previous CVEs94+-------------95+96+- Fixed in 2.6.097+98+ - `CVE 2015-2296 <http://www.cve.mitre.org/cgi-bin/cvename.cgi?name=2015-2296>`_,99+ reported by Matthew Daley of `BugFuzz <https://bugfuzz.com/>`_.100+101+- Fixed in 2.3.0102+103+ - `CVE 2014-1829 <http://www.cve.mitre.org/cgi-bin/cvename.cgi?name=2014-1829>`_104+105+ - `CVE 2014-1830 <http://www.cve.mitre.org/cgi-bin/cvename.cgi?name=2014-1830>`_added:docs/dev/contributing.rst+145 added
1+.. _contributing:2+3+Contributor's Guide4+===================5+6+If you're reading this you're probably interested in contributing to7+Requests. First, We'd like to say: thank you! Open source projects8+live-and-die based on the support they receive from others, and the fact that9+you're even considering supporting Requests is very generous of10+you.11+12+This document lays out guidelines and advice for contributing to Requests.13+If you're thinking of contributing, start by reading this thoroughly and14+getting a feel for how contributing to the project works. If you have any15+questions, feel free to reach out to either `Ian Cordasco`_ or `Cory Benfield`_,16+the primary maintainers.17+18+The guide is split into sections based on the type of contribution you're19+thinking of making, with a section that covers general guidelines for all20+contributors.21+22+.. _Ian Cordasco: http://www.coglib.com/~icordasc/23+.. _Cory Benfield: https://lukasa.co.uk/about24+25+26+All Contributions27+-----------------28+29+Be Cordial30+~~~~~~~~~~31+32+**Be cordial or be on your way.**33+34+Requests has one very important rule governing all forms of contribution,35+including reporting bugs or requesting features. This golden rule is36+`be cordial or be on your way`_. **All contributions are welcome**, as long as37+everyone involved is treated with respect.38+39+.. _be cordial or be on your way: http://kennethreitz.org/be-cordial-or-be-on-your-way/40+41+.. _early-feedback:42+43+Get Early Feedback44+~~~~~~~~~~~~~~~~~~45+46+If you are contributing, do not feel the need to sit on your contribution until47+it is perfectly polished and complete. It helps everyone involved for you to48+seek feedback as early as you possibly can. Submitting an early, unfinished49+version of your contribution for feedback in no way prejudices your chances of50+getting that contribution accepted, and can save you from putting a lot of work51+into a contribution that is not suitable for the project.52+53+Contribution Suitability54+~~~~~~~~~~~~~~~~~~~~~~~~55+56+The project maintainer has the last word on whether or not a contribution is57+suitable for Requests. All contributions will be considered, but from time58+to time contributions will be rejected because they do not suit the project.59+60+If your contribution is rejected, don't despair! So long as you followed these61+guidelines, you'll have a much better chance of getting your next contribution62+accepted.63+64+65+Code Contributions66+------------------67+68+Steps69+~~~~~70+71+When contributing code, you'll want to follow this checklist:72+73+1. Fork the repository on GitHub.74+2. Run the tests to confirm they all pass on your system. If they don't, you'll75+ need to investigate why they fail. If you're unable to diagnose this76+ yourself, raise it as a bug report by following the guidelines in this77+ document: :ref:`bug-reports`.78+3. Write tests that demonstrate your bug or feature. Ensure that they fail.79+4. Make your change.80+5. Run the entire test suite again, confirming that all tests pass *including81+ the ones you just added*.82+6. Send a GitHub Pull Request to the main repository's ``master`` branch.83+ GitHub Pull Requests are the expected method of code collaboration on this84+ project.85+86+The following sub-sections go into more detail on some of the points above.87+88+Code Review89+~~~~~~~~~~~90+91+Contributions will not be merged until they've been code reviewed. You should92+implement any code review feedback unless you strongly object to it. In the93+event that you object to the code review feedback, you should make your case94+clearly and calmly. If, after doing so, the feedback is judged to still apply,95+you must either apply the feedback or withdraw your contribution.96+97+New Contributors98+~~~~~~~~~~~~~~~~99+100+If you are new or relatively new to Open Source, welcome! Requests aims to101+be a gentle introduction to the world of Open Source. If you're concerned about102+how best to contribute, please consider mailing a maintainer (listed above) and103+asking for help.104+105+Please also check the :ref:`early-feedback` section.106+107+Documentation Contributions108+---------------------------109+110+Documentation improvements are always welcome! The documentation files live in111+the ``docs/`` directory of the codebase. They're written in112+`reStructuredText`_, and use `Sphinx`_ to generate the full suite of113+documentation.114+115+When contributing documentation, please attempt to follow the style of the116+documentation files. This means a soft-limit of 79 characters wide in your text117+files and a semi-formal prose style.118+119+.. _reStructuredText: http://docutils.sourceforge.net/rst.html120+.. _Sphinx: http://sphinx-doc.org/index.html121+122+123+.. _bug-reports:124+125+Bug Reports126+-----------127+128+Bug reports are hugely important! Before you raise one, though, please check129+through the `GitHub issues`_, **both open and closed**, to confirm that the bug130+hasn't been reported before. Duplicate bug reports are a huge drain on the time131+of other contributors, and should be avoided as much as possible.132+133+.. _GitHub issues: https://github.com/kennethreitz/requests/issues134+135+136+Feature Requests137+----------------138+139+Requests is in a perpetual feature freeze. The maintainers believe that140+requests contains every major feature currently required by the vast majority141+of users.142+143+If you believe there is a feature missing, feel free to raise a feature144+request, but please do be aware that the overwhelming likelihood is that your145+feature request will not be accepted.deleted:docs/dev/internals.rst
modified:docs/dev/philosophy.rst+5 added-3 removed
2 unmodified lines3 4 Requests is an open but opinionated library, created by an open but opinionated developer.5 6 7-Benevolent Dictator8-~~~~~~~~~~~~~~~~~~~7+Management Style8+~~~~~~~~~~~~~~~~9 10-`Kenneth Reitz <http://kennethreitz.org>`_ is the BDFL. He has final say in any decision related to Requests.10+`Kenneth Reitz <http://kennethreitz.org>`_ is the BDFL. He has final say in any decision related to the Requests project. Kenneth is responsible for the direction and form of the library. In addition to making decisions based on technical merit, he is responsible for making decisions based on the development philosophy of Requests. Only Kenneth may merge code into Requests.11 12+`Ian Cordasco <http://www.coglib.com/~icordasc/>`_ and `Cory Benfield <https://lukasa.co.uk/about/>`_ are the core contributors. They are responsible for triaging bug reports, reviewing pull requests and ensuring that Kenneth is kept up to speed with developments around the library. The day-to-day managing of the project is done by the core contributors. They are responsible for making judgements about whether or not a feature request is likely to be accepted by Kenneth. They do not have the authority to change code or merge code changes, though they may change documentation. Their word is not final.13+14 Values15 ~~~~~~16 17 - Simplicity is always better than functionality.26 unmodified linesmodified:docs/dev/todo.rst+1 added-2 removed
22 unmodified lines23 24 You'll need to install py.test in order to run the Requests' test suite::25 26 $ pip install -r requirements.txt27- $ invoke test28- py.test27+ $ py.test28 platform darwin -- Python 2.7.3 -- pytest-2.3.429 collected 25 items30 31 test_requests.py .........................28 unmodified linesmodified:docs/user/advanced.rst+267 added-38 removed
3 unmodified lines4 ==============5 6 This document covers some of Requests more advanced features.7 8+.. _session-objects:9 10 Session Objects11 ---------------12 13 The Session object allows you to persist certain parameters across14 requests. It also persists cookies across all requests made from the14-Session instance.15+Session instance, and will use ``urllib3``'s `connection pooling`_. So if16+you're making several requests to the same host, the underlying TCP17+connection will be reused, which can result in a significant performance18+increase (see `HTTP persistent connection`_).19 20 A Session object has all the methods of the main Requests API.21 22 Let's persist some cookies across requests::17 unmodified lines40 # both 'x-test' and 'x-test2' are sent41 s.get('http://httpbin.org/headers', headers={'x-test2': 'true'})42 43 40-Any dictionaries that you pass to a request method will be merged with the session-level values that are set. The method-level parameters override session parameters.44+Any dictionaries that you pass to a request method will be merged with the45+session-level values that are set. The method-level parameters override session46+parameters.47 48+Note, however, that method-level parameters will *not* be persisted across49+requests, even if using a session. This example will only send the cookies50+with the first request, but not the second::51+52+ s = requests.Session()53+ r = s.get('http://httpbin.org/cookies', cookies={'from-my': 'browser'})54+ print(r.text)55+ # '{"cookies": {"from-my": "browser"}}'56+57+ r = s.get('http://httpbin.org/cookies')58+ print(r.text)59+ # '{"cookies": {}}'60+61+62+If you want to manually add cookies to your session, use the63+:ref:`Cookie utility functions <api-cookies>` to manipulate64+:attr:`Session.cookies <requests.Session.cookies>`.65+66+Sessions can also be used as context managers::67+68+ with requests.Session() as s:69+ s.get('http://httpbin.org/cookies/set/sessioncookie/123456789')70+71+This will make sure the session is closed as soon as the ``with`` block is72+exited, even if unhandled exceptions occurred.73+74+75 .. admonition:: Remove a Value From a Dict Parameter76 44- Sometimes you'll want to omit session-level keys from a dict parameter. To do this, you simply set that key's value to ``None`` in the method-level parameter. It will automatically be omitted.77+ Sometimes you'll want to omit session-level keys from a dict parameter. To78+ do this, you simply set that key's value to ``None`` in the method-level79+ parameter. It will automatically be omitted.80 46-All values that are contained within a session are directly available to you. See the :ref:`Session API Docs <sessionapi>` to learn more.81+All values that are contained within a session are directly available to you.82+See the :ref:`Session API Docs <sessionapi>` to learn more.83 84+.. _request-and-response-objects:85+86 Request and Response Objects87 ----------------------------88 89 Whenever a call is made to ``requests.get()`` and friends you are doing two24 unmodified lines114 >>> r.request.headers115 {'Accept-Encoding': 'identity, deflate, compress, gzip',116 'Accept': '*/*', 'User-Agent': 'python-requests/1.2.0'}117 118+.. _prepared-requests:119+120 Prepared Requests121 -----------------122 83-Whenever you receive a :class:`Response <requests.models.Response>` object123+Whenever you receive a :class:`Response <requests.Response>` object124 from an API call or a Session call, the ``request`` attribute is actually the125 ``PreparedRequest`` that was used. In some cases you may wish to do some extra126 work to the body or headers (or anything else really) before sending a127 request. The simple recipe for this is the following::22 unmodified lines150 151 Since you are not doing anything special with the ``Request`` object, you152 prepare it immediately and modify the ``PreparedRequest`` object. You then153 send that with the other parameters you would have sent to ``requests.*`` or114-``Sesssion.*``.154+``Session.*``.155 156 However, the above code will lose some of the advantages of having a Requests157 :class:`Session <requests.Session>` object. In particular,158 :class:`Session <requests.Session>`-level state such as cookies will159 not get applied to your request. To get a120-:class:`PreparedRequest <requests.models.PreparedRequest>` with that state160+:class:`PreparedRequest <requests.PreparedRequest>` with that state161 applied, replace the call to :meth:`Request.prepare()162 <requests.Request.prepare>` with a call to163 :meth:`Session.prepare_request() <requests.Session.prepare_request>`, like this::164 19 unmodified lines184 )185 186 print(resp.status_code)187 188+.. _verification:189+190 SSL Cert Verification191 ---------------------192 151-Requests can verify SSL certificates for HTTPS requests, just like a web browser. To check a host's SSL certificate, you can use the ``verify`` argument::193+Requests can verify SSL certificates for HTTPS requests, just like a web browser.194+To check a host's SSL certificate, you can use the ``verify`` argument::195 196 >>> requests.get('https://kennethreitz.com', verify=True)197 requests.exceptions.SSLError: hostname 'kennethreitz.com' doesn't match either of '*.herokuapp.com', 'herokuapp.com'198 1 unmodified line200 201 >>> requests.get('https://github.com', verify=True)202 <Response [200]>203 161-You can also pass ``verify`` the path to a CA_BUNDLE file for private certs. You can also set the ``REQUESTS_CA_BUNDLE`` environment variable.204+You can pass ``verify`` the path to a CA_BUNDLE file or directory with certificates of trusted CAs::205 206+ >>> requests.get('https://github.com', verify='/path/to/certfile')207+208+This list of trusted CAs can also be specified through the ``REQUESTS_CA_BUNDLE`` environment variable.209+210 Requests can also ignore verifying the SSL certificate if you set ``verify`` to False.211 212 ::213 1 unmodified line215 <Response [200]>216 217 By default, ``verify`` is set to True. Option ``verify`` only applies to host certs.218 172-You can also specify a local cert to use as client side certificate, as a single file (containing the private key and the certificate) or as a tuple of both file's path::219+You can also specify a local cert to use as client side certificate, as a single220+file (containing the private key and the certificate) or as a tuple of both221+file's path::222 223 >>> requests.get('https://kennethreitz.com', cert=('/path/server.crt', '/path/key'))224 <Response [200]>225 1 unmodified line227 228 >>> requests.get('https://kennethreitz.com', cert='/wrong_path/server.pem')229 SSLError: [Errno 336265225] _ssl.c:347: error:140B0009:SSL routines:SSL_CTX_use_PrivateKey_file:PEM lib230 231+.. _ca-certificates:232 233+CA Certificates234+---------------235+236+By default Requests bundles a set of root CAs that it trusts, sourced from the237+`Mozilla trust store`_. However, these are only updated once for each Requests238+version. This means that if you pin a Requests version your certificates can239+become extremely out of date.240+241+From Requests version 2.4.0 onwards, Requests will attempt to use certificates242+from `certifi`_ if it is present on the system. This allows for users to update243+their trusted certificates without having to change the code that runs on their244+system.245+246+For the sake of security we recommend upgrading certifi frequently!247+248+.. _HTTP persistent connection: https://en.wikipedia.org/wiki/HTTP_persistent_connection249+.. _connection pooling: https://urllib3.readthedocs.org/en/latest/pools.html250+.. _certifi: http://certifi.io/251+.. _Mozilla trust store: https://hg.mozilla.org/mozilla-central/raw-file/tip/security/nss/lib/ckfw/builtins/certdata.txt252+253+.. _body-content-workflow:254+255 Body Content Workflow256 ---------------------257 258 By default, when you make a request, the body of the response is downloaded187-immediately. You can override this behavior and defer downloading the response259+immediately. You can override this behaviour and defer downloading the response260 body until you access the :class:`Response.content <requests.Response.content>`261 attribute with the ``stream`` parameter::262 263 tarball_url = 'https://github.com/kennethreitz/requests/tarball/master'264 r = requests.get(tarball_url, stream=True)265 194-At this point only the response headers have been downloaded and the connection remains open, hence allowing us to make content retrieval conditional::266+At this point only the response headers have been downloaded and the connection267+remains open, hence allowing us to make content retrieval conditional::268 269 if int(r.headers['content-length']) < TOO_LONG:270 content = r.content271 ...272 200-You can further control the workflow by use of the :class:`Response.iter_content <requests.Response.iter_content>` and :class:`Response.iter_lines <requests.Response.iter_lines>` methods. Alternatively, you can read the undecoded body from the underlying urllib3 :class:`urllib3.HTTPResponse <urllib3.response.HTTPResponse>` at :class:`Response.raw <requests.Response.raw>`.273+You can further control the workflow by use of the :class:`Response.iter_content <requests.Response.iter_content>`274+and :class:`Response.iter_lines <requests.Response.iter_lines>` methods.275+Alternatively, you can read the undecoded body from the underlying276+urllib3 :class:`urllib3.HTTPResponse <urllib3.response.HTTPResponse>` at277+:class:`Response.raw <requests.Response.raw>`.278 279+If you set ``stream`` to ``True`` when making a request, Requests cannot280+release the connection back to the pool unless you consume all the data or call281+:class:`Response.close <requests.Response.close>`. This can lead to282+inefficiency with connections. If you find yourself partially reading request283+bodies (or not reading them at all) while using ``stream=True``, you should284+consider using ``contextlib.closing`` (`documented here`_), like this::285 286+ from contextlib import closing287+288+ with closing(requests.get('http://httpbin.org/get', stream=True)) as r:289+ # Do things with the response here.290+291+.. _`documented here`: http://docs.python.org/2/library/contextlib.html#contextlib.closing292+293+.. _keep-alive:294+295 Keep-Alive296 ----------297 206-Excellent news — thanks to urllib3, keep-alive is 100% automatic within a session! Any requests that you make within a session will automatically reuse the appropriate connection!298+Excellent news — thanks to urllib3, keep-alive is 100% automatic within a session!299+Any requests that you make within a session will automatically reuse the appropriate300+connection!301 208-Note that connections are only released back to the pool for reuse once all body data has been read; be sure to either set ``stream`` to ``False`` or read the ``content`` property of the ``Response`` object.302+Note that connections are only released back to the pool for reuse once all body303+data has been read; be sure to either set ``stream`` to ``False`` or read the304+``content`` property of the ``Response`` object.305 306+.. _streaming-uploads:307 308 Streaming Uploads309 -----------------310 214-Requests supports streaming uploads, which allow you to send large streams or files without reading them into memory. To stream and upload, simply provide a file-like object for your body::311+Requests supports streaming uploads, which allow you to send large streams or312+files without reading them into memory. To stream and upload, simply provide a313+file-like object for your body::314 216- with open('massive-body') as f:315+ with open('massive-body', 'rb') as f:316 requests.post('http://some.url/streamed', data=f)317 318+.. warning:: It is strongly recommended that you open files in `binary mode`_.319+ This is because Requests may attempt to provide the320+ ``Content-Length`` header for you, and if it does this value will321+ be set to the number of *bytes* in the file. Errors may occur if322+ you open the file in *text mode*.323 324+.. _binary mode: https://docs.python.org/2/tutorial/inputoutput.html#reading-and-writing-files325+326+327+.. _chunk-encoding:328+329 Chunk-Encoded Requests330 ----------------------331 223-Requests also supports Chunked transfer encoding for outgoing and incoming requests. To send a chunk-encoded request, simply provide a generator (or any iterator without a length) for your body::332+Requests also supports Chunked transfer encoding for outgoing and incoming requests.333+To send a chunk-encoded request, simply provide a generator (or any iterator without334+a length) for your body::335 225-336 def gen():337 yield 'hi'338 yield 'there'339 340 requests.post('http://some.url/chunked', data=gen())341 342+For chunked encoded responses, it's best to iterate over the data using343+:meth:`Response.iter_content() <requests.models.Response.iter_content>`. In344+an ideal situation you'll have set ``stream=True`` on the request, in which345+case you can iterate chunk-by-chunk by calling ``iter_content`` with a chunk346+size parameter of ``None``. If you want to set a maximum size of the chunk,347+you can set a chunk size parameter to any integer.348 349+350+.. _multipart:351+352+POST Multiple Multipart-Encoded Files353+-------------------------------------354+355+You can send multiple files in one request. For example, suppose you want to356+upload image files to an HTML form with a multiple file field 'images':357+358+ <input type="file" name="images" multiple="true" required="true"/>359+360+To do that, just set files to a list of tuples of (form_field_name, file_info):361+362+ >>> url = 'http://httpbin.org/post'363+ >>> multiple_files = [('images', ('foo.png', open('foo.png', 'rb'), 'image/png')),364+ ('images', ('bar.png', open('bar.png', 'rb'), 'image/png'))]365+ >>> r = requests.post(url, files=multiple_files)366+ >>> r.text367+ {368+ ...369+ 'files': {'images': 'data:image/png;base64,iVBORw ....'}370+ 'Content-Type': 'multipart/form-data; boundary=3131623adb2043caaeb5538cc7aa0b3a',371+ ...372+ }373+374+.. warning:: It is strongly recommended that you open files in `binary mode`_.375+ This is because Requests may attempt to provide the376+ ``Content-Length`` header for you, and if it does this value will377+ be set to the number of *bytes* in the file. Errors may occur if378+ you open the file in *text mode*.379+380+.. _binary mode: https://docs.python.org/2/tutorial/inputoutput.html#reading-and-writing-files381+382+383+.. _event-hooks:384+385 Event Hooks386 -----------387 388 Requests has a hook system that you can use to manipulate portions of30 unmodified lines419 >>> requests.get('http://httpbin.org', hooks=dict(response=print_url))420 http://httpbin.org421 <Response [200]>422 423+.. _custom-auth:424 425 Custom Authentication426 ---------------------427 35 unmodified lines463 ------------------464 465 With :class:`requests.Response.iter_lines()` you can easily466 iterate over streaming APIs such as the `Twitter Streaming314-API <https://dev.twitter.com/docs/streaming-api>`_. Simply467+API <https://dev.twitter.com/streaming/overview>`_. Simply468 set ``stream`` to ``True`` and iterate over the response with469 :class:`~requests.Response.iter_lines()`::470 471 import json4 unmodified lines476 for line in r.iter_lines():477 478 # filter out keep-alive new lines479 if line:327- print json.loads(line)480+ print(json.loads(line))481 482+.. warning::483 484+ :class:`~requests.Response.iter_lines()` is not reentrant safe.485+ Calling this method multiple times causes some of the received data486+ being lost. In case you need to call it from multiple places, use487+ the resulting iterator object instead::488+489+ lines = r.iter_lines()490+ # Save the first line for later or just skip it491+ first_line = next(lines)492+ for line in lines:493+ print(line)494+495+.. _proxies:496+497 Proxies498 -------499 500 If you need to use a proxy, you can configure individual requests with the24 unmodified lines525 proxies = {526 "http": "http://user:pass@10.10.1.10:3128/",527 }528 529+To give a proxy for a specific scheme and host, use the530+`scheme://hostname` form for the key. This will match for531+any request to the given scheme and exact hostname.532+533+::534+535+ proxies = {536+ "http://10.20.1.128": "http://10.10.1.10:5323",537+ }538+539 Note that proxy URLs must include the scheme.540 541+.. _compliance:542+543 Compliance544 ----------545 546 Requests is intended to be compliant with all relevant specifications and18 unmodified lines565 specification in this case. If you require a different encoding, you can566 manually set the :attr:`Response.encoding <requests.Response.encoding>`567 property, or use the raw :attr:`Response.content <requests.Response.content>`.568 569+.. _http-verbs:570+571 HTTP Verbs572 ----------573 574 Requests provides access to almost the full range of HTTP verbs: GET, OPTIONS,12 unmodified lines587 588 We should confirm that GitHub responded correctly. If it has, we want to work589 out what type of content it is. Do this like so::590 410- >>> if (r.status_code == requests.codes.ok):411- ... print r.headers['content-type']591+ >>> if r.status_code == requests.codes.ok:592+ ... print(r.headers['content-type'])593 ...594 application/json; charset=utf-8595 596 So, GitHub returns JSON. That's great, we can use the :meth:`r.json1 unmodified line598 599 ::600 601 >>> commit_data = r.json()421- >>> print commit_data.keys()602+ >>> print(commit_data.keys())603 [u'committer', u'author', u'url', u'tree', u'sha', u'parents', u'message']423- >>> print commit_data[u'committer']604+ >>> print(commit_data[u'committer'])605 {u'date': u'2012-05-10T11:10:50-07:00', u'email': u'me@kennethreitz.com', u'name': u'Kenneth Reitz'}425- >>> print commit_data[u'message']606+ >>> print(commit_data[u'message'])607 makin' history608 609 So far, so simple. Well, let's investigate the GitHub API a little bit. Now,610 we could look at the documentation, but we might have a little more fun if we14 unmodified lines625 626 ::627 628 >>> verbs = requests.options('http://a-good-website.com/api/cats')448- >>> print verbs.headers['allow']629+ >>> print(verbs.headers['allow'])630 GET,HEAD,POST,OPTIONS631 632 Turning to the documentation, we see that the only other method allowed for633 commits is POST, which creates a new commit. As we're using the Requests repo,8 unmodified lines642 >>> r = requests.get('https://api.github.com/repos/kennethreitz/requests/issues/482')643 >>> r.status_code644 200645 >>> issue = json.loads(r.text)465- >>> print issue[u'title']646+ >>> print(issue[u'title'])647 Feature any http verb in docs467- >>> print issue[u'comments']648+ >>> print(issue[u'comments'])649 3650 651 Cool, we have three comments. Let's take a look at the last of them.652 2 unmodified lines655 >>> r = requests.get(r.url + u'/comments')656 >>> r.status_code657 200658 >>> comments = r.json()478- >>> print comments[0].keys()659+ >>> print(comments[0].keys())660 [u'body', u'url', u'created_at', u'updated_at', u'user', u'id']480- >>> print comments[2][u'body']661+ >>> print(comments[2][u'body'])662 Probably in the "advanced" section663 664 Well, that seems like a silly place. Let's post a comment telling the poster665 that he's silly. Who is the poster, anyway?666 667 ::668 488- >>> print comments[2][u'user'][u'login']669+ >>> print(comments[2][u'user'][u'login'])670 kennethreitz671 672 OK, so let's tell this Kenneth guy that we think this example should go in the673 quickstart guide instead. According to the GitHub API doc, the way to do this18 unmodified lines692 >>> r = requests.post(url=url, data=body, auth=auth)693 >>> r.status_code694 201695 >>> content = r.json()515- >>> print content[u'body']696+ >>> print(content[u'body'])697 Sounds great! I'll get right on it.698 699 Brilliant. Oh, wait, no! I meant to add that it would take me a while, because700 I had to go feed my cat. If only I could edit this comment! Happily, GitHub1 unmodified line702 that.703 704 ::705 525- >>> print content[u"id"]706+ >>> print(content[u"id"])707 5804413708 >>> body = json.dumps({u"body": u"Sounds great! I'll get right on it once I feed my cat."})709 >>> url = u"https://api.github.com/repos/kennethreitz/requests/issues/comments/5804413"710 >>> r = requests.patch(url=url, data=body, auth=auth)20 unmodified lines731 732 ::733 734 >>> r = requests.head(url=url, auth=auth)554- >>> print r.headers735+ >>> print(r.headers)736 ...737 'x-ratelimit-remaining': '4995'738 'x-ratelimit-limit': '5000'739 ...740 741 Excellent. Time to write a Python program that abuses the GitHub API in all742 kinds of exciting ways, 4995 more times.743 744+.. _link-headers:745+746 Link Headers747 ------------748 566-Many HTTP APIs feature Link headers. They make APIs more self describing and discoverable.749+Many HTTP APIs feature Link headers. They make APIs more self describing and750+discoverable.751 568-GitHub uses these for `pagination <http://developer.github.com/v3/#pagination>`_ in their API, for example::752+GitHub uses these for `pagination <http://developer.github.com/v3/#pagination>`_753+in their API, for example::754 755 >>> url = 'https://api.github.com/users/kennethreitz/repos?page=1&per_page=10'756 >>> r = requests.head(url=url)757 >>> r.headers['link']6 unmodified lines764 765 >>> r.links["last"]766 {'url': 'https://api.github.com/users/kennethreitz/repos?page=7&per_page=10', 'rel': 'last'}767 768+.. _transport-adapters:769+770 Transport Adapters771 ------------------772 773 As of v1.0.0, Requests has moved to a modular internal design. Part of the57 unmodified lines831 maxsize=maxsize,832 block=block,833 ssl_version=ssl.PROTOCOL_SSLv3)834 648-.. _`described here`: http://kennethreitz.org/exposures/the-future-of-python-http835+.. _`described here`: http://www.kennethreitz.org/essays/the-future-of-python-http836 .. _`urllib3`: https://github.com/shazow/urllib3837 838+.. _blocking-or-nonblocking:839+840 Blocking Or Non-Blocking?841 -------------------------842 843 With the default Transport Adapter in place, Requests does not provide any kind8 unmodified lines852 Two excellent examples are `grequests`_ and `requests-futures`_.853 854 .. _`grequests`: https://github.com/kennethreitz/grequests855 .. _`requests-futures`: https://github.com/ross/requests-futures856+857+.. _timeouts:858+859+Timeouts860+--------861+862+Most requests to external servers should have a timeout attached, in case the863+server is not responding in a timely manner. Without a timeout, your code may864+hang for minutes or more.865+866+The **connect** timeout is the number of seconds Requests will wait for your867+client to establish a connection to a remote machine (corresponding to the868+`connect()`_) call on the socket. It's a good practice to set connect timeouts869+to slightly larger than a multiple of 3, which is the default `TCP packet870+retransmission window <http://www.hjp.at/doc/rfc/rfc2988.txt>`_.871+872+Once your client has connected to the server and sent the HTTP request, the873+**read** timeout is the number of seconds the client will wait for the server874+to send a response. (Specifically, it's the number of seconds that the client875+will wait *between* bytes sent from the server. In 99.9% of cases, this is the876+time before the server sends the first byte).877+878+If you specify a single value for the timeout, like this::879+880+ r = requests.get('https://github.com', timeout=5)881+882+The timeout value will be applied to both the ``connect`` and the ``read``883+timeouts. Specify a tuple if you would like to set the values separately::884+885+ r = requests.get('https://github.com', timeout=(3.05, 27))886+887+If the remote server is very slow, you can tell Requests to wait forever for888+a response, by passing None as a timeout value and then retrieving a cup of889+coffee.890+891+.. code-block:: python892+893+ r = requests.get('https://github.com', timeout=None)894+895+.. _`connect()`: http://linux.die.net/man/2/connectmodified:docs/user/authentication.rst+1 added-1 removed
97 unmodified lines98 If you can't find a good implementation of the form of authentication you99 want, you can implement it yourself. Requests makes it easy to add your own100 forms of authentication.101 102-To do so, subclass :class:`requests.auth.AuthBase` and implement the102+To do so, subclass :class:`AuthBase <requests.auth.AuthBase>` and implement the103 ``__call__()`` method::104 105 >>> import requests106 >>> class MyAuth(requests.auth.AuthBase):22 unmodified linesmodified:docs/user/install.rst+4 added-13 removed
8 unmodified lines9 10 Distribute & Pip11 ----------------12 13-Installing Requests is simple with `pip <http://www.pip-installer.org/>`_::13+Installing Requests is simple with `pip <https://pip.pypa.io>`_, just run14+this in your terminal::15 16 $ pip install requests17 18 or, with `easy_install <http://pypi.python.org/pypi/setuptools>`_::19 20 $ easy_install requests21 21-But, you really `shouldn't do that <http://www.pip-installer.org/en/latest/other-tools.html#pip-compared-to-easy-install>`_.22+But, you really `shouldn't do that <https://stackoverflow.com/questions/3220404/why-use-pip-over-easy-install>`_.23 24 24-25-Cheeseshop (PyPI) Mirror26-------------------------27-28-If the Cheeseshop (a.k.a. PyPI) is down, you can also install Requests from one29-of the mirrors. `Crate.io <http://crate.io>`_ is one of them::30-31- $ pip install -i http://simple.crate.io/ requests32-33-25 Get the Code26 ------------27 28 Requests is actively developed on GitHub, where the code is29 `always available <https://github.com/kennethreitz/requests>`_.30 31 You can either clone the public repository::32 42- git clone git://github.com/kennethreitz/requests.git33+ $ git clone git://github.com/kennethreitz/requests.git34 35 Download the `tarball <https://github.com/kennethreitz/requests/tarball/master>`_::36 37 $ curl -OL https://github.com/kennethreitz/requests/tarball/master10 unmodified linesmodified:docs/user/quickstart.rst+91 added-33 removed
4 unmodified lines5 6 .. module:: requests.models7 8 Eager to get started? This page gives a good introduction in how to get started9-with Requests. This assumes you already have Requests installed. If you do not,10-head over to the :ref:`Installation <install>` section.9+with Requests.10 11 First, make sure that:12 13 * Requests is :ref:`installed <install>`14 unmodified lines28 29 Now, let's try to get a webpage. For this example, let's get GitHub's public30 timeline ::31 33- >>> r = requests.get('https://github.com/timeline.json')32+ >>> r = requests.get('https://api.github.com/events')33 35-Now, we have a :class:`Response` object called ``r``. We can get all the36-information we need from this object.34+Now, we have a :class:`Response <requests.Response>` object called ``r``. We can35+get all the information we need from this object.36 37 Requests' simple API means that all forms of HTTP request are as obvious. For38 example, this is how you make an HTTP POST request::39 41- >>> r = requests.post("http://httpbin.org/post")40+ >>> r = requests.post("http://httpbin.org/post", data = {"key":"value"})41 42 Nice, right? What about the other HTTP request types: PUT, DELETE, HEAD and43 OPTIONS? These are all just as simple::44 46- >>> r = requests.put("http://httpbin.org/put")45+ >>> r = requests.put("http://httpbin.org/put", data = {"key":"value"})46 >>> r = requests.delete("http://httpbin.org/delete")47 >>> r = requests.head("http://httpbin.org/get")48 >>> r = requests.options("http://httpbin.org/get")49 22 unmodified lines72 73 Note that any dictionary key whose value is ``None`` will not be added to the74 URL's query string.75 76+You can also pass a list of items as a value::77 78+ >>> payload = {'key1': 'value1', 'key2': ['value2', 'value3']}79+ >>> r = requests.get("http://httpbin.org/get", params=payload)80+ >>> print(r.url)81+ http://httpbin.org/get?key1=value1&key2=value2&key2=value382+83 Response Content84 ----------------85 86 We can read the content of the server's response. Consider the GitHub timeline87 again::88 89 >>> import requests85- >>> r = requests.get('https://github.com/timeline.json')90+ >>> r = requests.get('https://api.github.com/events')91 >>> r.text92 u'[{"repository":{"open_issues":0,"url":"https://github.com/...93 94 Requests will automatically decode content from the server. Most unicode44 unmodified lines139 140 There's also a builtin JSON decoder, in case you're dealing with JSON data::141 142 >>> import requests138- >>> r = requests.get('https://github.com/timeline.json')143+ >>> r = requests.get('https://api.github.com/events')144 >>> r.json()145 [{u'repository': {u'open_issues': 0, u'url': 'https://github.com/...146 147 In case the JSON decoding fails, ``r.json`` raises an exception. For example, if143-the response gets a 401 (Unauthorized), attempting ``r.json`` raises ``ValueError:144-No JSON object could be decoded``148+the response gets a 204 (No Content), or if the response contains invalid JSON,149+attempting ``r.json`` raises ``ValueError: No JSON object could be decoded``.150 151+It should be noted that the success of the call to ``r.json`` does **not**152+indicate the success of the response. Some servers may return a JSON object in a153+failed response (e.g. error details with HTTP 500). Such JSON will be decoded154+and returned. To check that a request is successful, use155+``r.raise_for_status()`` or check ``r.status_code`` is what you expect.156 157+158 Raw Response Content159 --------------------160 161 In the rare case that you'd like to get the raw socket response from the162 server, you can access ``r.raw``. If you want to do this, make sure you set163 ``stream=True`` in your initial request. Once you do, you can do this::164 154- >>> r = requests.get('https://github.com/timeline.json', stream=True)165+ >>> r = requests.get('https://api.github.com/events', stream=True)166 >>> r.raw167 <requests.packages.urllib3.response.HTTPResponse object at 0x101194810>168 >>> r.raw.read(10)169 '\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\x03'16 unmodified lines186 187 If you'd like to add HTTP headers to a request, simply pass in a ``dict`` to the188 ``headers`` parameter.189 179-For example, we didn't specify our content-type in the previous example::190+For example, we didn't specify our user-agent in the previous example::191 192 >>> import json193 >>> url = 'https://api.github.com/some/endpoint'183- >>> payload = {'some': 'data'}184- >>> headers = {'content-type': 'application/json'}194+ >>> headers = {'user-agent': 'my-app/0.0.1'}195 186- >>> r = requests.post(url, data=json.dumps(payload), headers=headers)196+ >>> r = requests.get(url, headers=headers)197 198+Note: Custom headers are given less precedence than more specific sources of information. For instance:199 200+* Authorization headers will be overridden if credentials are passed via the ``auth`` parameter or are specified in a ``.netrc`` accessible in the environment.201+* Authorization headers will be removed if you get redirected off-host.202+* Proxy-Authorization headers will be overridden by proxy credentials provided in the URL.203+* Content-Length headers will be overridden when we can determine the length of the content.204+205+Furthermore, Requests does not change its behavior at all based on which custom headers are specified. The headers are simply passed on into the final request.206+207+208 More complicated POST requests209 ------------------------------210 211 Typically, you want to send some form-encoded data — much like an HTML form.1 unmodified line213 dictionary of data will automatically be form-encoded when the request is made::214 215 >>> payload = {'key1': 'value1', 'key2': 'value2'}216 >>> r = requests.post("http://httpbin.org/post", data=payload)198- >>> print r.text217+ >>> print(r.text)218 {219 ...220 "form": {221 "key2": "value2",1 unmodified line223 },224 ...225 }226 208-There are many times that you want to send data that is not form-encoded. If you pass in a ``string`` instead of a ``dict``, that data will be posted directly.227+There are many times that you want to send data that is not form-encoded. If228+you pass in a ``string`` instead of a ``dict``, that data will be posted directly.229 230 For example, the GitHub API v3 accepts JSON-Encoded POST/PATCH data::231 232 >>> import json1 unmodified line234 >>> payload = {'some': 'data'}235 236 >>> r = requests.post(url, data=json.dumps(payload))237 238+Instead of encoding the ``dict`` yourself, you can also pass it directly using239+the ``json`` parameter (added in version 2.4.2) and it will be encoded automatically::240 241+ >>> url = 'https://api.github.com/some/endpoint'242+ >>> payload = {'some': 'data'}243+244+ >>> r = requests.post(url, json=payload)245+246+247 POST a Multipart-Encoded File248 -----------------------------249 250 Requests makes it simple to upload Multipart-encoded files::10 unmodified lines261 },262 ...263 }264 237-You can set the filename explicitly::265+You can set the filename, content_type and headers explicitly::266 267 >>> url = 'http://httpbin.org/post'240- >>> files = {'file': ('report.xls', open('report.xls', 'rb'))}268+ >>> files = {'file': ('report.xls', open('report.xls', 'rb'), 'application/vnd.ms-excel', {'Expires': '0'})}269 270 >>> r = requests.post(url, files=files)271 >>> r.text272 {18 unmodified lines291 },292 ...293 }294 295+In the event you are posting a very large file as a ``multipart/form-data``296+request, you may want to stream the request. By default, ``requests`` does not297+support this, but there is a separate package which does -298+``requests-toolbelt``. You should read `the toolbelt's documentation299+<https://toolbelt.readthedocs.org>`_ for more details about how to use it.300 301+For sending multiple files in one request refer to the :ref:`advanced <advanced>`302+section.303+304+.. warning:: It is strongly recommended that you open files in `binary mode`_.305+ This is because Requests may attempt to provide the306+ ``Content-Length`` header for you, and if it does this value will307+ be set to the number of *bytes* in the file. Errors may occur if308+ you open the file in *text mode*.309+310+.. _binary mode: https://docs.python.org/2/tutorial/inputoutput.html#reading-and-writing-files311+312+313 Response Status Codes314 ---------------------315 316 We can check the response status code::7 unmodified lines324 325 >>> r.status_code == requests.codes.ok326 True327 283-If we made a bad request (a 4XX client error or 5XX server error response), we can raise it with284-:class:`Response.raise_for_status()`::328+If we made a bad request (a 4XX client error or 5XX server error response), we329+can raise it with330+:meth:`Response.raise_for_status() <requests.Response.raise_for_status>`::331 332 >>> bad_r = requests.get('http://httpbin.org/status/404')333 >>> bad_r.status_code334 40429 unmodified lines364 'content-type': 'application/json'365 }366 367 The dictionary is special, though: it's made just for HTTP headers. According to322-`RFC 2616 <http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html>`_, HTTP323-Headers are case-insensitive.368+`RFC 7230 <http://tools.ietf.org/html/rfc7230#section-3.2>`_, HTTP Header names369+are case-insensitive.370 371 So, we can access the headers using any capitalization we want::372 373 >>> r.headers['Content-Type']1 unmodified line375 376 >>> r.headers.get('content-type')377 'application/json'378 379+It is also special in that the server could have sent the same header multiple380+times with different values, but requests combines them so they can be381+represented in the dictionary within a single mapping, as per382+`RFC 7230 <http://tools.ietf.org/html/rfc7230#section-3.2>`_:383 384+ A recipient MAY combine multiple header fields with the same field name385+ into one "field-name: field-value" pair, without changing the semantics386+ of the message, by appending each subsequent field value to the combined387+ field value in order, separated by a comma.388+389 Cookies390 -------391 337-If a response contains some Cookies, you can get quick access to them::392+If a response contains some Cookies, you can quickly access them::393 394 >>> url = 'http://example.com/some/cookie/setting/url'395 >>> r = requests.get(url)396 13 unmodified lines410 411 Redirection and History412 -----------------------413 359-Requests will automatically perform location redirection for all verbs except414+By default Requests will perform location redirection for all verbs except415 HEAD.416 362-GitHub redirects all HTTP requests to HTTPS. We can use the ``history`` method363-of the Response object to track redirection. Let's see what GitHub does::417+We can use the ``history`` property of the Response object to track redirection.418 419+The :meth:`Response.history <requests.Response.history>` list contains the420+:class:`Response <requests.Response>` objects that were created in order to421+complete the request. The list is sorted from the oldest to the most recent422+response.423+424+For example, GitHub redirects all HTTP requests to HTTPS::425+426 >>> r = requests.get('http://github.com')427 >>> r.url428 'https://github.com/'429 >>> r.status_code430 200431 >>> r.history432 [<Response [301]>]433 373-The :class:`Response.history` list contains the :class:`Request` objects that374-were created in order to complete the request. The list is sorted from the375-oldest to the most recent request.434 435 If you're using GET, OPTIONS, POST, PUT, PATCH or DELETE, you can disable436 redirection handling with the ``allow_redirects`` parameter::437 4 unmodified lines442 []443 444 If you're using HEAD, you can enable redirection as well::445 388- >>> r = requests.post('http://github.com', allow_redirects=True)446+ >>> r = requests.head('http://github.com', allow_redirects=True)447 >>> r.url448 'https://github.com/'449 >>> r.history450 [<Response [301]>]24 unmodified lines475 476 In the event of a network problem (e.g. DNS failure, refused connection, etc),477 Requests will raise a :class:`~requests.exceptions.ConnectionError` exception.478 421-In the event of the rare invalid HTTP response, Requests will raise an479+In the rare event of an invalid HTTP response, Requests will raise an480 :class:`~requests.exceptions.HTTPError` exception.481 482 If a request times out, a :class:`~requests.exceptions.Timeout` exception is483 raised.10 unmodified linesmodified:docs/api.rst+21 added-19 removed
3 unmodified lines4 ===================5 6 .. module:: requests7 8-This part of the documentation covers all the interfaces of Requests. For8+This part of the documentation covers all the interfaces of Requests. For9 parts where Requests depends on external libraries, we document the most10 important right here and provide links to the canonical documentation.11 12 30 unmodified lines43 44 .. autoclass:: requests.adapters.HTTPAdapter45 :inherited-members:46 47+Authentication48+--------------49 50+.. autoclass:: requests.auth.AuthBase51+.. autoclass:: requests.auth.HTTPBasicAuth52+.. autoclass:: requests.auth.HTTPProxyAuth53+.. autoclass:: requests.auth.HTTPDigestAuth54+55 Exceptions56 ~~~~~~~~~~57 58 .. autoexception:: requests.exceptions.RequestException59 .. autoexception:: requests.exceptions.ConnectionError60 .. autoexception:: requests.exceptions.HTTPError61 .. autoexception:: requests.exceptions.URLRequired62 .. autoexception:: requests.exceptions.TooManyRedirects63+.. autoexception:: requests.exceptions.ConnectTimeout64+.. autoexception:: requests.exceptions.ReadTimeout65+.. autoexception:: requests.exceptions.Timeout66 67 68 Status Code Lookup69 ~~~~~~~~~~~~~~~~~~10 unmodified lines80 81 >>> requests.codes['\o/']82 20083 84+.. _api-cookies:85+86 Cookies87 ~~~~~~~88 89 .. autofunction:: requests.utils.dict_from_cookiejar90 .. autofunction:: requests.utils.cookiejar_from_dict91 .. autofunction:: requests.utils.add_dict_to_cookiejar92 93+.. autoclass:: requests.cookies.RequestsCookieJar94+ :inherited-members:95 96+.. autoclass:: requests.cookies.CookieConflictError97+ :inherited-members:98+99+100 Encodings101 ~~~~~~~~~102 103 .. autofunction:: requests.utils.get_encodings_from_content152 unmodified lines256 # this raises requests.exceptions.MissingSchema257 requests.get("http://example.org", proxies=proxies)258 259 242-Behavioral Changes243-~~~~~~~~~~~~~~~~~~260+Behavioural Changes261+~~~~~~~~~~~~~~~~~~~~~~~262 263 * Keys in the ``headers`` dictionary are now native strings on all Python264 versions, i.e. bytestrings on Python 2 and unicode on Python 3. If the265 keys are not native strings (unicode on Python2 or bytestrings on Python 3)266 they will be converted to the native string type assuming UTF-8 encoding.267 250-* Timeouts behave slightly differently. On streaming requests, the timeout251- only applies to the connection attempt. On regular requests, the timeout252- is applied to the connection process and downloading the full body.253-254- ::255-256- tarball_url = 'https://github.com/kennethreitz/requests/tarball/master'257-258- # One second timeout for the connection attempt259- # Unlimited time to download the tarball260- r = requests.get(tarball_url, stream=True, timeout=1)261-262- # One second timeout for the connection attempt263- # Another full second timeout to download the tarball264- r = requests.get(tarball_url, timeout=1)265-modified:docs/conf.py+1 added-1 removed
44 unmodified lines45 master_doc = 'index'46 47 # General information about the project.48 project = u'Requests'49-copyright = u'2014. A <a href="http://kennethreitz.com/pages/open-projects.html">Kenneth Reitz</a> Project'49+copyright = u'2015. A <a href="http://kennethreitz.com/pages/open-projects.html">Kenneth Reitz</a> Project'50 51 # The version info for the project you're documenting, acts as replacement for52 # |version| and |release|, also used in various other places throughout the53 # built documents.195 unmodified linesmodified:docs/index.rst+20 added-6 removed
6 unmodified lines7 =========================8 9 Release v\ |version|. (:ref:`Installation <install>`)10 11-Requests is an :ref:`Apache2 Licensed <apache2>` HTTP library, written in Python, for human beings.11+Requests is an :ref:`Apache2 Licensed <apache2>` HTTP library, written in12+Python, for human beings.13 14 Python's standard **urllib2** module provides most of15 the HTTP capabilities you need, but the API is thoroughly **broken**.15-It was built for a different time — and a different web. It requires an *enormous* amount of work (even method overrides) to perform the simplest of tasks.16+It was built for a different time — and a different web. It requires an17+*enormous* amount of work (even method overrides) to perform the simplest of18+tasks.19 20 Things shouldn’t be this way. Not in Python.21 22 ::11 unmodified lines34 {u'private_gists': 419, u'total_private_repos': 77, ...}35 36 See `similar code, without Requests <https://gist.github.com/973705>`_.37 35-Requests takes all of the work out of Python HTTP/1.1 — making your integration with web services seamless. There's no need to manually add query strings to your URLs, or to form-encode your POST data. Keep-alive and HTTP connection pooling are 100% automatic, powered by `urllib3 <https://github.com/shazow/urllib3>`_, which is embedded within Requests.38+Requests takes all of the work out of Python HTTP/1.1 — making your integration39+with web services seamless. There's no need to manually add query strings to40+your URLs, or to form-encode your POST data. Keep-alive and HTTP connection41+pooling are 100% automatic, powered by `urllib3 <https://github.com/shazow/urllib3>`_,42+which is embedded within Requests.43 44 45 Testimonials46 ------------47 41-Her Majesty's Government, Amazon, Google, Twilio, Runscope, Mozilla, Heroku, PayPal, NPR, Obama for America, Transifex, Native Instruments, The Washington Post, Twitter, SoundCloud, Kippt, Readability, and Federal US Institutions use Requests internally. It has been downloaded over 8,000,000 times from PyPI.48+Her Majesty's Government, Amazon, Google, Twilio, Runscope, Mozilla, Heroku,49+PayPal, NPR, Obama for America, Transifex, Native Instruments, The Washington50+Post, Twitter, SoundCloud, Kippt, Readability, Sony, and Federal US Institutions that prefer to be unnamed51+use Requests internally. It has been downloaded over 60,000,000 times from PyPI.52 53 **Armin Ronacher**54 Requests is the perfect example how beautiful an API can be with the55 right level of abstraction.26 unmodified lines82 - Unicode Response Bodies83 - Multipart File Uploads84 - Connection Timeouts85 - ``.netrc`` support76-- Python 2.6—3.386+- Python 2.6—3.487 - Thread-safe.88 89 90 User Guide22 unmodified lines113 .. toctree::114 :maxdepth: 1115 116 community/faq107- community/out-there.rst117+ community/recommended118+ community/out-there119 community/support120+ community/vulnerabilities121 community/updates122+ community/release-process123 124 API Documentation125 -----------------126 14 unmodified lines141 142 .. toctree::143 :maxdepth: 1144 145+ dev/contributing146 dev/philosophy147 dev/todo148 dev/authorsadded:ext/requests-logo.svg+487 added
1+<?xml version="1.0" encoding="utf-8"?>2+<!-- Generator: Adobe Illustrator 15.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->3+<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" [4+ <!ENTITY ns_extend "http://ns.adobe.com/Extensibility/1.0/">5+ <!ENTITY ns_ai "http://ns.adobe.com/AdobeIllustrator/10.0/">6+ <!ENTITY ns_graphs "http://ns.adobe.com/Graphs/1.0/">7+ <!ENTITY ns_vars "http://ns.adobe.com/Variables/1.0/">8+ <!ENTITY ns_imrep "http://ns.adobe.com/ImageReplacement/1.0/">9+ <!ENTITY ns_sfw "http://ns.adobe.com/SaveForWeb/1.0/">10+ <!ENTITY ns_custom "http://ns.adobe.com/GenericCustomNamespace/1.0/">11+ <!ENTITY ns_adobe_xpath "http://ns.adobe.com/XPath/1.0/">12+]>13+<svg version="1.1" id="Layer_1" xmlns:x="&ns_extend;" xmlns:i="&ns_ai;" xmlns:graph="&ns_graphs;"14+ xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="300px" height="300px"15+ viewBox="0 0 300 300" enable-background="new 0 0 300 300" xml:space="preserve">16+<metadata>17+ <sfw xmlns="&ns_sfw;">18+ <slices></slices>19+ <sliceSourceBounds height="226.344" width="297.902" x="2.418" y="-269.612" bottomLeftOrigin="true"></sliceSourceBounds>20+ </sfw>21+</metadata>22+<g>23+ <g>24+ <path fill-rule="evenodd" clip-rule="evenodd" d="M221.263,69.622c-2.289-1.402,1.148-3.191,0.734-5.14525+ c-1.289,2.596-3.376,3.761-5.145,1.47c9.042-5.844,25.363-2.561,33.81,2.205c-4.146,0.797-8.379-0.11-11.024-2.9426+ c-2.93,0.5-5.001,1.859-8.82,1.47c-1.225-1.46,0.066-0.935,0-2.94C228.052,66.122,225.694,68.909,221.263,69.622z"/>27+ <path fill-rule="evenodd" clip-rule="evenodd" d="M213.912,64.477c0.98,0,1.96,0,2.94,0c-1.225,1.46,0.066,0.935,0,2.9428+ c-2.126,0.125-3.351,2.999-3.675-0.735c0.595,0.14,0.732,0.737,1.47,0.735C214.076,66.763,213.857,65.757,213.912,64.477z"/>29+ <path fill-rule="evenodd" clip-rule="evenodd" d="M235.228,74.767c-1.663-1.522-3.552-2.818-2.94-6.61530+ c3.021-1.182,9.177-1.451,9.556,2.205c-1.4-0.315-1.847-1.583-3.675-1.47C241.371,73.46,233.52,70.113,235.228,74.767z"/>31+ <path fill-rule="evenodd" clip-rule="evenodd" d="M244.782,68.887c2.452-0.002,2.51,2.391,5.146,2.20532+ c-1.225,1.461,0.066,0.935,0,2.94c-3.429-2.418-2.329-0.397-5.88-2.205C243.736,70.291,244.551,69.881,244.782,68.887z"/>33+ <path fill-rule="evenodd" clip-rule="evenodd" d="M229.348,76.237c1.552,0.977,2.172-0.362,4.41,0.73534+ c0.996,4.658-3.604,1.532-4.41,2.94C227.627,79.724,228.924,76.683,229.348,76.237z"/>35+ <path fill-rule="evenodd" clip-rule="evenodd" d="M219.058,78.442c0.73,2.699,1.646,5.213,2.939,7.3536+ c-4.096-1.83-1.685,0.925-2.939,2.94C217.267,85.036,218.043,81.979,219.058,78.442z"/>37+ <path fill-rule="evenodd" clip-rule="evenodd" d="M181.572,85.057c-0.734,0-1.47,0-2.205,0c0.98-1.225-0.268-4.678,2.205-4.4138+ C181.572,82.117,181.572,83.587,181.572,85.057z"/>39+ <path fill-rule="evenodd" clip-rule="evenodd" d="M238.168,88.732c1.606,0.108,1.578,1.852,1.47,3.67540+ c-1.374,0.586-2.692,1.228-4.41,1.47C234.684,90.639,237.606,90.866,238.168,88.732z"/>41+ <path fill-rule="evenodd" clip-rule="evenodd" d="M181.572,89.467c-1.631,7.112-2.808,5.626-8.085,8.8242+ c1.475-2.201,2.611-4.739,5.88-5.145c-1.267-2.578-3.878-0.97-5.145,1.47C172.591,90.111,177.957,90.473,181.572,89.467z"/>43+ <path fill-rule="evenodd" clip-rule="evenodd" d="M228.612,90.937c1.154,0.316,0.628,2.312,2.94,1.4744+ c-1.774,1.408,1.756,4.525-2.205,4.41C228.957,94.224,227.191,93.53,228.612,90.937z"/>45+ <path fill-rule="evenodd" clip-rule="evenodd" d="M183.777,98.287c-1.3-0.661-2.146-1.774-3.675-2.20546+ C181.095,92.907,183.977,95.932,183.777,98.287z"/>47+ <path fill-rule="evenodd" clip-rule="evenodd" d="M179.367,97.552c3.462,1.61,3.844,4.566,2.205,8.08548+ c-2.554,0.306-2.552-5.721-4.41-3.675C174.883,100.339,178.996,98.954,179.367,97.552z"/>49+ <path fill-rule="evenodd" clip-rule="evenodd" d="M169.077,107.842c0.259-2.436,2.202-3.188,3.676-4.4150+ c-0.021-0.715-0.9-0.57-1.471-0.735c1.246-1.694,1.85-4.03,5.146-3.675C172.769,100.753,174.71,108.085,169.077,107.842z"/>51+ <path fill-rule="evenodd" clip-rule="evenodd" d="M175.692,107.842c-0.607,2.078,1.036,1.904,0.735,3.67552+ c-3.048,0.199-2.864-0.965-5.146,0C171.74,109.28,172.915,107.759,175.692,107.842z"/>53+ <path fill-rule="evenodd" clip-rule="evenodd" d="M168.343,109.312c2.133,3.143-2.463,5.845-4.41,7.3554+ C163.998,112.808,166.995,111.885,168.343,109.312z"/>55+ <path fill-rule="evenodd" clip-rule="evenodd" d="M160.992,118.132c-1.385-2.153,1.098-6.717,4.41-6.61556+ C164.316,114.106,162.506,115.97,160.992,118.132z"/>57+ <path fill-rule="evenodd" clip-rule="evenodd" d="M169.813,112.987c4.291,1.292,3.826,3.497,2.205,6.61558+ c-3.127-0.437-1.422-2.911-5.146-1.47C166.329,114.894,169.252,115.121,169.813,112.987z"/>59+ <path fill-rule="evenodd" clip-rule="evenodd" d="M208.032,113.722c1.878,0.082,2.573,1.347,3.675,2.20560+ c-0.097,2.353-1.666,3.234-4.409,2.94C207.335,115.668,206.194,115.487,208.032,113.722z"/>61+ <path fill-rule="evenodd" clip-rule="evenodd" d="M159.522,124.747c4.284,1.078,1.874,8.733-0.735,9.55562+ C156.646,131.634,159.036,127.229,159.522,124.747z"/>63+ <path fill-rule="evenodd" clip-rule="evenodd" d="M91.902,126.217c0.998,0.228,0.61,1.84,0.735,2.9464+ c-1.318-0.094-1.55,0.899-2.94,0.735C89.35,127.584,91.676,127.95,91.902,126.217z"/>65+ <path fill-rule="evenodd" clip-rule="evenodd" d="M89.697,130.627c0.735,0,1.47,0,2.205,0c0.312,1.536-0.503,1.946-0.735,2.9466+ C89.875,133.39,89.492,132.302,89.697,130.627z"/>67+ <path fill-rule="evenodd" clip-rule="evenodd" d="M213.178,137.242c2.258,0.135,1.542,3.958-0.735,3.67568+ C212.208,139.212,212.561,138.095,213.178,137.242z"/>69+ <path fill-rule="evenodd" clip-rule="evenodd" d="M210.237,140.182c-0.26,0.965-1.294,1.156-1.47,2.20570+ C205.697,141.895,208.426,137.824,210.237,140.182z"/>71+ <path fill-rule="evenodd" clip-rule="evenodd" d="M211.707,143.857c1.188-0.207,1.266,0.695,2.205,0.73572+ c-0.431,1.529-1.544,2.375-2.205,3.675C208.994,147.677,211.098,145.241,211.707,143.857z"/>73+ <path fill-rule="evenodd" clip-rule="evenodd" d="M194.067,154.882c-1.406,3.493-4.694,5.106-7.35,7.35174+ c-0.56-1.156-2.332-1.099-2.205-2.94C186.69,158.008,189.762,155.912,194.067,154.882z"/>75+ <path fill-rule="evenodd" clip-rule="evenodd" d="M105.132,129.892c-0.259,0.965-1.294,1.156-1.47,2.20576+ c3.349-2.139,0.824-3.979,2.94-7.35c0.595,0.14,0.732,0.737,1.47,0.735c-0.205-1.51-1.963-1.467-2.94-2.20577+ c-2.181,0.513-1.164,3.346-0.735,3.675c-0.572,0.996-3.322-2.019-5.145-2.205c-1.422,1.273-2.098,3.292-3.675,4.4178+ c-2.716-2.528,2.432-3.406,2.205-5.88c-1.313-0.207-1.508,0.695-0.735,0.735c-1.332,0.627-2.027,1.893-3.675,2.20579+ c-0.207-1.187,0.694-1.265,0.735-2.205c-3.127,0.672-5.928-1.597-7.35,2.205c-1.828-0.11-0.215-2.489,0-2.9480+ c-2.025,1.16-1.901,4.468-5.145,4.41c-0.246-2.449-2.129-3.26-1.47-6.615c-1.355,1.585-2.261,3.62-3.675,5.14581+ c-0.679-1.536-0.178-3.51-1.47-5.88c-0.885,0.83-1.332,2.098-3.675,1.47c-0.311,1.536,0.504,1.946,0.735,2.9482+ c0.861-0.119,0.62-1.34,0.735-2.205c1.937-0.222,2.412,1.018,2.205,2.94c-1.536-0.311-1.946,0.504-2.94,0.73583+ c0.311,1.537-0.504,1.946-0.735,2.94c1.293-0.177,1.676-1.265,1.47-2.94c0.855,1.35,4.796-0.386,3.675,2.9484+ c1.646-2.38,1.878-2.348,2.205-5.145c2.976,0.792-0.225,3.5,0.735,6.615c-4.914-0.43-6.491,0.67-8.82,3.67585+ c-1.534-2.14-4.863-2.487-6.615-4.41c-0.405,1.629,1.403,1.046,1.47,2.205c0.271,1.25-0.573,1.387-1.47,1.4786+ c1.102,2.429,1.797-1.527,3.675-0.735c0.83,0.885,2.098,1.332,1.47,3.675c2.081-0.859,3.392-2.488,4.41-4.4187+ c3.192,2.351,6.123-1.243,11.76-1.47c-1.422,2.636,0.283,2.693,0.735,5.145c-0.629,1.034-4.261,4.201-3.675,088+ c-1.059,0.167-0.256,2.194-1.47,2.205c1.967,2.986,0.771,5.375,0,8.82c1.187,0.207,1.266-0.694,2.205-0.73589+ c-1.272-4.998-1.169-4.912,2.94-8.085c-0.27,1.25,0.573,1.387,1.47,1.47c-0.75,0.966-0.721,2.709-1.47,3.67590+ c0.595-0.14,0.732-0.737,1.47-0.735c1.991-0.836-0.667-5.659,2.94-6.615c-0.152,2.112,0.186,3.734,1.47,4.4191+ c1.543-0.205-1.065-1.963,0.735-2.94c-1.671,2.174-2.07-3.811,0.735-3.675c-0.35,3.254,1.011,3.655,0,5.8892+ c0.965-0.259,1.156-1.294,2.205-1.47c-0.315-1.4-1.583-1.847-1.47-3.675c1.048,2.901,2.51-0.337,0.735-1.4793+ c-0.882,1.03-0.286,0.063,0-0.735c1.889,0.071,1.051,2.869,2.94,2.94c0.861-0.119,0.62-1.34,0.735-2.20594+ c-0.89-2.473,1.475,4.867,2.94,0.735c-4.998,6.275-17.181,11.727-25.725,16.905c-0.686-0.785-2.711-0.229-2.205-2.20595+ c0.654,0.571,1.66,0.79,2.94,0.735c1.607-0.108,1.578-1.852,1.47-3.675c-1.499,0.461-0.207,3.713-2.94,2.9496+ c0.393-2.843-1.312-3.588-0.735-6.615c0.853-0.617,1.97-0.969,3.675-0.735c0,1.225,0,2.45,0,3.675c2.399-0.76,1.558-1.861,3.675,097+ c-1.601-3.604-4.412-3.501-4.41-7.35c-1.078,1.194-3.132,5.628-4.41,2.205c-2.347,1.503,5.125,12.203-5.145,10.2998+ c0.83-0.885,2.098-1.332,1.47-3.675c-0.994,0.722-1.469,1.961-2.205,2.94c-1.939-1.001-5.012-0.869-7.35-1.4799+ c-4.346-6.795-2.056-19.485,5.88-20.58c2.167-4.889,7.351-5.015,11.025-8.085c4.302-3.595,6.498-10.399,12.495-13.23100+ c17.674-27.161,41.896-47.773,74.97-59.535c1.187-0.207,1.266,0.694,2.205,0.735c8.635-8.454,21.879,0.769,30.135,0.735101+ c2.308,1.858,3.361,4.969,2.94,9.555c2.304-0.508,0.958-1.96,0.734-3.675c6.348,2.802,4.76,15.554,1.471,16.17102+ c-2.136-3.209-5.993-2.727-5.146,0.735c-0.14,0.834-0.737,0.408-0.735,0c-0.625-0.135-0.693,0.287-0.734,0.735103+ c-1.435-0.313,1.202-2.1-2.205-1.47c-1.091,0.321,0.29,0.94,0,2.205c-0.654-0.452-1.314-0.888-1.47,0104+ c-2.832-0.827,2.832-2.849,0-3.675c0.478-1.248,1.689-0.459,1.47,0.735c2.779,0.629,2.601-3.291,1.47-4.41105+ c-2.063,0.009,1.75,2.005-1.47,1.47c0.021-3.163,3.064-3.306,3.675-5.88c1.293,0.177,1.676,1.265,1.47,2.94106+ c-2.87-3.025-2.131,1.497-2.205,2.94c3.162-2,4.191-4.506,1.471-7.35c-0.687,0.539-1.114,1.336-1.471,2.205107+ c-1.046-0.898-1.67-2.805-0.734-3.675c-0.592,0.389-1.193,0.767-2.205,0.735c1.973,2.973-1.039,1.283-2.205,2.205108+ c4.338,2.115-0.647,1.666,1.47,5.88c-1.889-0.35-2.072,4.546-3.675,6.615c1.061,1.145,2.96,1.45,2.205,4.41109+ c-1.043-0.063-2.081-0.122-2.205,0.735c-1.309-0.539-0.106-1.336,0-2.205c-1.952,0.253-2.48,1.929-2.94,3.675110+ c2.514-3.24,0.045,1.961,1.471,4.41c2.166-0.773,2.555-3.325,3.675-5.145c1.678,0.576-2.923,5.305,0.735,5.88111+ c-1.456,0.995-2.859,2.042-2.205,5.145c0.854,0.12,1.308-0.162,1.47-0.735c1.53,1.72-3.937,3.109-4.41,0.735112+ c-1.748-1.476,0.817,0.325,1.47,0.735c1.279-3.729-3.189-1.71-2.939-4.41c1.303,0.167,3.681-0.741,2.939,1.47113+ c2.614-2.189-1.638-3.703-4.409-2.94c-2.379-0.846,1.974-0.832,2.939-0.735c0.507-1.976-1.52-1.42-2.205-2.205114+ c-0.15,1.46-1.334,2.01-1.47-1.47c0.735,0,1.47,0,2.205,0c0-0.98,0-1.96,0-2.94c-2.796-1.081-0.145,3.285-2.94,2.205115+ c1.225-1.46-0.066-0.935,0-2.94c3.064,0.369,3.242-2.148,6.615-1.47c-4.934-5.145-12.385,5.58-8.82,12.495116+ c-0.586,1.913-1.228-2.097-1.47-2.94c-0.596,0.14-0.732,0.738-1.47,0.735c-0.908,2.378,2.378,0.562,1.47,2.94117+ c-2.304-0.344-2.072,1.848-2.94,2.94c-0.485-4.088,2.15-2.542,0-7.35c4.121-0.981,1.96-5.823,3.676-4.41118+ c0.535-2.005-1.461-1.479-1.471-2.94c-0.164,1.064-2.053,2.823-2.939,5.145c-2.035,1.313,0.66-2.51,0.734-3.675119+ c-1.935,0.453-0.96,1.458-2.939,2.94c-0.987-0.185,0.263-3.894-2.205-4.41c-3.403,2.081,0.535,3.419-2.94,5.88120+ c2.597-0.085,1.178,1.798,2.205,1.47c0.748,1.517-3.451,4.364-5.145,5.88c-1.891,0.395,4.393-2.66,3.675-5.88121+ c-1.359,0.111-0.451,2.489-1.47,2.94c-0.799-0.182-0.499-1.461-1.47-1.47c-1.661,0.411,0.891,1.146-0.735,2.205122+ c-1.61,1.757,0.645-1.78-0.735-2.205c-1.054,0.906-1.393,2.527-1.47,4.41c-1.476-0.25-2.3,0.15-2.205,1.47123+ c-1.771,0.301-1.598-1.342-3.675-0.735c-0.136-0.625,0.286-0.693,0.734-0.735c0-0.49,0-0.98,0-1.47124+ c0.715,0.02,0.571,0.899,0.735,1.47c1.87-0.089,2.851-1.069,2.94-2.94c-2.971,3.455-4.581-0.72-4.41-3.675125+ c8.53-7.15,17.914-13.445,25.725-21.315c2.509,0.826-0.231,2.849,1.471,3.675c-0.299,1.416-2.85,0.581-2.205,2.94126+ c1.593-1.589,1.712-1.057,4.409-2.205c-2.733-3.893-3.063-8.246,3.676-10.29c-3.24,2.513,1.96,0.044,4.409,1.47127+ c0.631-2.345-1.156-2.273-1.47-3.675c-2.246-0.531-2.679,0.751-4.41,0.735c2.628-7.415-2.069,2.665-4.409,4.41128+ c-2.036,1.518-5.892,2.234-5.881,4.41c-1.059-0.166-0.256-2.193-1.47-2.205c-0.064-2.514,4.475-0.425,4.41-2.94129+ c-0.202-2.579-2.738,1.844-2.94-0.735c-1.049,5.431-4.216-5.936,0.735-2.94c0.711-4.173-2.864-0.627-3.675-2.205130+ c0.546,3.658-0.06,7.504-1.47,11.76c0.166,0.936,2.193,0.963,2.204,0c0.917,0.014-2.027,4.567-2.939,2.94131+ c-0.119,0.854,0.162,1.308,0.735,1.47c-2.996,1.442-3.296,0.729-4.41,3.675c-3.43-1.062-0.599,0.121-2.94,1.47132+ c-0.861-0.119-0.62-1.34-0.734-2.205c-1.857,1.39,0.678,2.577-0.735,4.41c-0.843-0.882-1.863-0.287-0.735,0133+ c-0.081,1.799-2.43,0.156-2.205-0.735c-2.006,0.664,2.236,1.644,0,2.94c-3.391-2.171-1.608-0.146-3.675,1.47134+ c-0.442-2.944-3.201-7.413-5.88-10.29c-1.689,3.547,6.799,5.9,4.41,10.29c-0.799-0.182-0.499-1.461-1.47-1.47135+ c-0.134,1.604,0.602,2.338,2.204,2.205c-0.979,4.41-7.415,3.365-7.35,8.82c-5.05-1.6-1.421-3.929-2.205-8.085136+ c-1.059,0.412-1.793,1.146-2.205,2.205c2.701,3.553-0.494,8.366-2.94,11.025c-0.904-0.321-1.509-0.94-1.47-2.205137+ c0.049,6.452-14.079,6.938-17.64,14.7c-4.031-1.282-3.27,3.562-5.145,0.735c0.364,1.05-2.512,3.711-4.41,2.205138+ c0,1.715,0,3.43,0,5.145c4.073-5.424,15.954-11.495,21.315-15.435c0.616,0.365,2.889-2.625,4.41-0.735139+ c0.839-2.63,5.369-4.042,8.085-8.085c-1.408,0.708,0.074,3.432-1.47,7.35c0.119,0.862,1.34,0.62,2.205,0.735140+ c-1.146-3.052,0.62-3.602-0.735-7.35c2.9-1.754,4.255-5.056,8.085-5.88c0.322,2.527-0.29,4.12-0.734,5.88141+ c0.912,3.335,2.137-1.27,3.675,0.735c-2.104,0.17-6.468,8.646-10.29,11.76c-2.046-0.404,1.032-5.932-2.94-4.41142+ c0.326,0.654,0.646,1.314,1.47,1.47c-0.205,1.737-1.963-0.843-2.94-0.735c0.009,1.46,2.005,0.935,1.47,2.94143+ c-2.859,1.306-4.711,3.619-8.085,4.41c-1.377-1.399-0.08-1.847,0-3.675c-2.508,0.432-1.813,4.066-3.675,5.145144+ c2.263,0.547,1.413-2.018,3.675-1.47c-1.159,1.781-2.629,3.25-4.41,4.41c0.441,1.328,3.77-0.57,3.675-2.205145+ c1.091,0.321-0.29,0.94,0,2.205c3.011-2.271,3.416-2.657,4.41-4.41c2.603,0.082-1.562,2.43,0.735,2.205146+ c-0.639,1.109-1.101-0.202-2.94,0.735c0.942,1.906,3.499,0.33,3.675,1.47c1.508,1.702-3.734-1.223-5.145,0147+ c1.96,1.39,5.419,2.093,6.615,2.205c-0.026-0.089-7.406,4.91-8.085,6.615c0.12-0.854-0.163-1.308-0.735-1.47148+ c0.216-1.532,1.989,1.09,2.205-1.47c-0.394-1.515-3.477-0.175-1.47-2.205c-2.228,1.376-2.064,0.579-4.41,1.47149+ c0.55,1.388,2.194,0.51,0.735,2.205c1.25,0.27,1.387-0.573,1.47-1.47c0.998,0.228,0.61,1.84,0.735,2.94150+ c-1.059-0.822-1.793-0.792-2.205,0.735c-0.414-1.596-0.542-1.116-4.41-1.47c0.228,0.998,1.84,0.61,2.94,0.735151+ c-1.983,2.152-2.853,0.632-5.145,0c0.478,0.748,1.69,0.76,1.47,2.205c-2.622-1.308-3.733,0.313-6.615-0.735152+ c-5.281,2.179-0.556,5.58-5.145,2.94c0.052,2.062-1.489,0.169-3.675,2.205c-1.996-0.669,0.749-2.576,0.735-3.675153+ c-2.034,0.092-2.523,1.403-1.47-0.735c-0.735,0-1.47,0-2.205,0c1.05,3.5,1.045,3.487,2.205,6.615c0.98,0,1.96,0,2.94,0154+ c2.247,1.136-3.188,0.647-4.41,0.735c0.389-0.591,0.767-1.193,0.735-2.205c-2.604,2.202-3.459,3.854-6.615,5.145155+ C101.729,132.744,103.628,129.698,105.132,129.892z M196.272,68.152c0.639-1.076,1.101-2.33,2.94-2.205156+ c-0.125,1.84,1.129,2.301,2.205,2.94c-0.536-2.005,1.46-1.479,1.47-2.94c-2.413,1.24-3.241-0.39-5.146-1.47157+ C197.78,65.825,193.976,66.966,196.272,68.152z M180.838,68.887c-0.301,2.15-2.516,2.385-3.676,3.675158+ c0.372,1.833,1.391,3.02,2.205,4.41c-0.956-2.902,2.697-1.779,0.735-3.675c2.033-0.091,2.523-1.403,1.47,0.735159+ c1.84,0.125,2.301-1.129,2.94-2.205C179.934,71.64,182.191,71.764,180.838,68.887z M174.957,72.562160+ c0.971,1.839-2.905,2.301-0.734,2.94c-0.707-0.002,0.481,2.963,3.675-0.735C176.398,74.551,176.456,72.778,174.957,72.562z161+ M184.513,71.092c0.436-2.345-1.38-2.273,0-3.675C181.553,66.699,181.553,71.81,184.513,71.092z M150.703,83.587162+ c3.646,0.031,1.324-2.756,0-3.675C148.651,76.459,152.112,83.266,150.703,83.587z M141.147,90.202163+ c-0.234,0.9,0.118,4.54,0.735,2.205c-0.402-1.068,0.859-3.799-0.735-3.675c-0.176,0.798-1.21,1.765-1.47,0.735164+ c0.408,0.002,0.834-0.595,0-0.735C138.316,90.013,139.867,91.563,141.147,90.202z M149.967,96.082165+ c0.604,2.797-2.454,2.765-0.735,5.145c0.216-1.499,1.989-1.441,2.205-2.94c-0.57-0.165-1.45-0.021-1.47-0.735166+ C150.709,97.543,150.892,96.264,149.967,96.082z M131.592,115.192c-1.375,0.203,1.547-5.177-0.735-5.88167+ c-0.155,0.888-0.815,0.452-1.47,0c-0.663,1.715-5.102,1.631-7.35,3.675c0.125,1.1-0.263,2.713,0.735,2.94c0-0.735,0-1.47,0-2.205168+ c1.88-1.423,4.617,0.982,2.94-1.47c1.012,0.032,1.614-0.346,2.205-0.735c-0.509,1.296-0.812,2.276,0,2.94169+ c0.356-0.869,0.784-1.667,1.47-2.205c-0.002,0.737,0.595,0.875,0.735,1.47c-1.715,0.41-1.715,2.211,0,0.735170+ c-1.156,1.538-1.748,2.762-0.735,3.675C129.604,116.633,131.376,116.691,131.592,115.192z M119.833,115.927171+ c-1.107,1.099-0.22,4.19-2.94,3.675c1.514-2.97-7.9,3.836-8.085-1.47c-0.458,1.993-3.071,1.83-2.94,4.41172+ c1.483-1.572,6.2-1.275,8.085,0.735c-1.516-0.646-2.784,2.423-1.47,2.205c0.913-1.538,2.138-2.762,3.675-3.675173+ c-4.265,4.662,5.502-0.267,1.47-1.47c1.611-0.661,4.083-4.677,5.145-1.47c-0.825,0.075-1.144-1.069-1.47,0174+ c0.924,0.301,1.502,0.948,1.47,2.205c1.878-0.082,2.573-1.347,3.675-2.205C123.449,117.17,123.415,117.041,119.833,115.927z175+ M178.633,48.307c1.1-0.125,2.712,0.262,2.939-0.735c-1.019-0.291-2.082-4.172-2.939-2.205176+ C180.527,45.544,177.623,46.631,178.633,48.307z M172.753,54.187c-1.59-0.616-2.508-1.903-5.146-1.47177+ C167.963,55.016,171.16,56.697,172.753,54.187z M163.933,57.127c-0.57,0.165-1.45,0.02-1.47,0.735178+ c2.007,2.019,2.93,1.296,4.409,2.94c0.082-1.388,2.431-0.51,2.205-2.205c-2.074,0.793-3.622-3.844-5.88-2.205179+ C163.646,56.434,164.067,56.502,163.933,57.127z M138.942,69.622c0.87-0.935,2.776-0.312,3.675,0.735180+ c-1.068,0.402-3.799-0.859-3.675,0.735c2.005-0.535,1.479,1.461,2.94,1.47c1.168-1.501,2.261-5.995,0-4.41181+ C143.881,69.625,136.646,67.545,138.942,69.622z M139.678,71.827c-0.431,1.529-1.545,2.375-2.205,3.675182+ c2.125,1.667,4.05-1.55,1.47,0C138.786,73.352,143.09,73.117,139.678,71.827z M146.292,76.237c2.824,1.12,1.403-8.217,0.735-5.88183+ C147.349,72.884,146.737,74.477,146.292,76.237z M120.567,83.587c-1.049-0.286-1.24-0.882-2.205,0184+ c-0.347,1.433,1.979,3.759,2.205,2.205c-1.213,0.475,2.511-5.403-0.735-2.94C120.281,82.894,120.703,82.962,120.567,83.587z185+ M131.592,82.117c-0.688,0.621-1.57,4.685,0,5.145c-0.392-1.059,2.864-1.794,0.735-2.205186+ C130.582,87.59,133.903,82.247,131.592,82.117z M127.183,96.082c-3.341-0.443-0.694-7.005-2.205-5.88187+ C123.392,92.253,125.284,97.864,127.183,96.082z M102.192,112.987c-1.499-0.216-1.441-1.989-2.94-2.205188+ c-0.646,2.361,2.423,1.007,2.205,2.94c-2.754,1.301-1.651,6.64-5.145,8.82c4.625-0.031,2.284-7.026,7.35-6.615189+ c-0.967-2.181-0.65-3.625,1.47-4.41c0.009,0.971,1.289,0.672,1.47,1.47c-1.516-0.646-2.784,2.423-1.47,2.205190+ c0.517-2.467,4.225-1.217,4.41-2.205c-0.856-0.124-0.798-1.162-0.735-2.205c-1.309-0.439-3.053,2.154-3.675,0191+ c0.57-0.165,1.45-0.021,1.47-0.735C104.117,110.011,103.414,111.758,102.192,112.987z M94.842,115.927192+ c0.042-0.448,0.11-0.87,0.735-0.735c0.165,0.57,0.02,1.45,0.735,1.47c-0.649-2.422,3.599-3.673,1.47-5.145193+ C98.161,113.905,93.23,114.739,94.842,115.927z M80.877,119.602c3.09-0.095,3.954-2.417,6.615-2.94194+ C84.711,115.294,83.058,118.278,80.877,119.602z M86.757,121.807c2.345,0.436,2.273-1.379,3.675,0c0.367-2.313-1.603-2.874,0-4.41195+ C87.913,117.572,88.968,121.323,86.757,121.807z M66.913,142.387c-0.449,0.042-0.87,0.11-0.735,0.735196+ c1.718-0.227,3.037-1.439,4.41,0c-1.831-1.845-1.914-5.436-3.675-7.35C67.708,138.377,67.816,141.08,66.913,142.387z197+ M63.237,146.062c1.901-2.899,0.251-5.01,1.47-8.82C63.007,138.465,62.123,142.961,63.237,146.062z"/>198+ <path fill-rule="evenodd" clip-rule="evenodd" d="M170.548,84.322c2.603,0.246,1.807,2.022,4.409,0.735199+ c-1.325,5.079-1.02,2.865-4.409,5.88c0-1.225,0-2.45,0-3.675c0.715,0.02,0.57,0.899,0.734,1.47200+ c0.596-0.14,0.733-0.737,1.471-0.735c0.093-1.318-0.9-1.55-0.735-2.94c-2.268,1.652-4.007,3.833-6.615,5.145201+ C162.736,94.102,169.12,84.865,170.548,84.322z"/>202+ <path fill-rule="evenodd" clip-rule="evenodd" d="M172.753,90.202c1.125,0.015-0.368,3.467-0.735,4.41203+ c-0.986-0.483-1.369-1.571-1.47-2.94C171.805,91.704,172.451,91.126,172.753,90.202z"/>204+ <path fill-rule="evenodd" clip-rule="evenodd" d="M210.237,68.887c-0.539-0.687-1.336-1.114-2.205-1.47205+ c-1.469,4.521-1.293-1.97-2.939,1.47c-0.998-0.228-0.61-1.84-0.735-2.94c2.126,2.123,3.351-2.483,3.675,0.735206+ c0.596-0.14,0.732-0.737,1.471-0.735c-1.067-2.118-4.146-2.225-5.146-4.41c2.46,0.022,4.254,3.056,9.555,2.205207+ c-1.172,0.542,0.168,3.598-2.205,2.94c-0.207-1.187,0.695-1.266,0.735-2.205c-2.218-0.208-2.085,5.689-1.47,5.88208+ c-0.088,1.198-3.135-0.701-2.94-2.205C208.624,68.541,209.226,68.919,210.237,68.887z"/>209+ <path fill-rule="evenodd" clip-rule="evenodd" d="M230.082,66.682c0.458,1.758,0.228,3.461,0.735,6.615210+ c-2.193,1.978-4.702-0.186-6.615-0.735C224.827,69.267,226.787,67.307,230.082,66.682z"/>211+ <path fill-rule="evenodd" clip-rule="evenodd" d="M235.963,78.442c1.295,0.665,1.214,2.706,2.939,2.94212+ c1.318,0.094,1.551-0.899,2.94-0.735c-0.623-2.154-2.366,0.439-3.675,0c0.093-1.318-0.9-1.55-0.735-2.94213+ c4.72,0.203,9.964,2.318,6.615,8.085c2.408-0.286,2.282-3.107,3.675-4.41c-0.613,1.982-0.522,6.032-2.205,7.35214+ c0.497-0.389-3.614-3.934-1.47,0c-2.24-0.861-5.022,0.625-3.676-2.94c-1.078,2.326-2.949,1.144-2.939-1.47215+ c-1.423,1.027-4.009,0.891-3.675,3.675c-2.792,1.129-3.468-4.995-3.676,0c-1.075-0.639-2.329-1.101-2.204-2.94216+ c2.42-0.474,6.061-5.208,7.35-2.205C237.045,81.821,236.524,80.32,235.963,78.442z"/>217+ <path fill-rule="evenodd" clip-rule="evenodd" d="M212.442,76.237c0.747,0.478,0.76,1.69,2.205,1.47218+ c-1.888,2.663-0.785,5.386,0,8.82c-0.687-0.416-1.113-2.043-1.47-0.735C211.199,82.283,214.195,79.971,212.442,76.237z"/>219+ <path fill-rule="evenodd" clip-rule="evenodd" d="M256.543,79.912c1.641,3.357,2.67,10.924,0.734,20.58220+ c-1.971-0.969-1.221-4.659-2.205-6.615c1.861,2.816,2.767-7.364,0-9.555C254.721,82.01,256.119,81.449,256.543,79.912z"/>221+ <path fill-rule="evenodd" clip-rule="evenodd" d="M201.418,85.792c1.976-0.203,2.094,5.177,0.734,5.88222+ c0.539,0.687,1.337,1.114,2.205,1.47c1.912-0.891,1.347-3.425,1.47-3.675c0.01-2.062,2.006,1.75,1.471-1.47223+ c3.115,1.971-0.72,8.058-0.735,6.615c-0.861,0.119-0.62,1.34-0.735,2.205c1.435-0.229,4.399-4.063,2.94-0.735224+ c3.793-2.429-0.295-5.48,2.205-9.555c0.798,0.182,0.498,1.461,1.47,1.47c-2.21,5.055-0.619,3.366,0.735,8.82225+ c-1.223-2.658-2.667-0.107-2.94,2.205c0.605,0.308,3.026,0.941,1.47,2.94c-2.074,0.989-1.842-3.895-2.939-1.47226+ c-1.309-0.539-0.106-1.337,0-2.205c-0.14-0.595-0.737-0.733-0.735-1.47c-2.062,0.01,1.75,2.005-1.47,1.47227+ c0.571,0.654,0.79,1.66,0.735,2.94c0.854,0.12,1.308-0.162,1.47-0.735c1.736,0.205-0.843,1.963-0.735,2.94228+ c-2.296-3.259-2.716-4.097-2.939-8.82c-3.109,1.554,0.032,6.509,1.47,9.555c2.006,0.066,1.479-1.224,2.94,0229+ c-1.799-2.022,1.098-1.55,0.734,0.735c2.765,0.615,2.602-3.29,4.41-1.47c-0.612-2.328-2.144-3.736-3.675-5.145230+ c2.071-2.26,3.477,2.361,4.41,3.675c1.46-1.224,0.935,0.066,2.939,0c-1.332-2.616,1.515,1.026,3.675-1.47231+ c-0.963,3.167,3.5,0.91,2.94,3.675c0.687-0.539,1.113-1.336,1.47-2.205c4.768,1.51,5.927,4.398,11.025,4.41232+ c0.687-0.539,1.113-1.336,1.47-2.205c-1.25-0.27-1.387,0.573-1.47,1.47c-2.604-0.082,1.562-2.43-0.735-2.205233+ c-0.641-1.543,3.74,1.065,1.471-0.735c1.627-1.607,0.648,1.393,1.47,2.205c1.537-0.913,2.763-2.137,3.675-3.675234+ c-0.65-2.014-3.261,1.435-1.47-1.47c-2.217,0.968-6.297,0.074-8.085,1.47c-2.091-0.98,0.566-3.269,0.734-4.41235+ c3.769-0.073,7.66,3.583,9.556,2.94c1.544,3.973-5.429,4.615-5.88,7.35c-4.734,0.324-7.626-1.194-9.556-3.675236+ c-2.109,3.28,0.611,11.391-1.47,14.7c-3.381-0.928-1.588-4.182-1.47-7.35c-1.044-0.063-2.082-0.122-2.205,0.735237+ c1.636-0.632,2.483,3.563-1.471,2.94c1.803-0.979-1.324-2.218,0.735-2.94c-0.182-0.798-1.461-0.499-1.47-1.47238+ c-0.546,0.071-0.546,2.869,0,2.94c-0.722,1.188-1.961,1.692-2.94,0.735c2.205-0.957,1.339-3.145,0-4.41239+ c-1.492-0.225,0.15,2.124,0.735,2.205c-2.854,2.326-2.703-4.619-5.88-4.41c2.38,3.048,1.534,3.766,3.675,5.88240+ c-0.217,1.532-1.989-1.09-2.205,1.47c0.853-0.587-0.962-5.455-2.205-5.145c-1.068-0.326,0.075-0.646,0-1.47241+ c-2.144-1.081-2.144,3.286,0,2.205c-1.832,1.354-5.572,0.797-6.615,2.94c3.111,0.081,0.013,1.377-0.734,0242+ c0.32-0.904,0.94-1.509,2.205-1.47c-0.669-2.011-2.576,1.304-3.676-0.735c-0.063,1.043-0.121,2.081,0.735,2.205243+ c0.225,2.297-2.123-1.868-2.205,0.735c-0.383-0.195,1.037-4.801,1.47-6.615c-3.607-0.668-2.799,3.081-5.88,2.94244+ c2.114-2.009,5.844-5.637,8.085-5.145C202.495,96.475,201.962,93.26,201.418,85.792z"/>245+ <path fill-rule="evenodd" clip-rule="evenodd" d="M227.143,118.867c0.181,5.081-2.342,7.458-4.41,10.29246+ c-1.114,0.542,3.288-5.311,3.675-8.085c0.125-1.839-1.129-2.301-2.205-2.94C224.924,115.878,226.163,118.977,227.143,118.867z"/>247+ <path fill-rule="evenodd" clip-rule="evenodd" d="M251.397,98.287c1.53-1.818-5.091-1.737-7.35-2.205248+ c3.146-1.916,6.013-4.558,3.675-8.085c2.915,1.98,2.307,4.2,6.615,3.675c0.413,2.863-2.324,2.576-2.94,4.41249+ c0.664,1.296,1.645,2.276,2.94,2.94c-1.007,1.16-3.481-0.601-5.881,1.47c-2.561-0.216,0.063-1.989-1.47-2.205250+ c-1.992,0.665,0.619,2.706,1.47,2.94c-1.638,1.827-4.189-1.648-4.409-3.675C246.281,98.013,250.379,96.611,251.397,98.287z"/>251+ <path fill-rule="evenodd" clip-rule="evenodd" d="M220.527,95.347c0.925,0.182,0.741,1.461,0,1.47252+ c1.374,1.076,3.492,1.408,2.94,4.41C222.186,99.674,218.793,97.618,220.527,95.347z"/>253+ <path fill-rule="evenodd" clip-rule="evenodd" d="M217.588,93.142c-0.822,1.059-0.793,1.793,0.734,2.205254+ c-2.169-0.701-1.332,3.871-2.939,0.735c-0.998,0.228-0.61,1.84-0.735,2.94c6.66-0.831-3.216,3.206-0.735-5.145255+ c1.024-2.366,0.32,3.561,2.205,0.735c0.207-1.187-0.694-1.265-0.734-2.205C216.167,89.905,215.611,94.452,217.588,93.142z"/>256+ <path fill-rule="evenodd" clip-rule="evenodd" d="M192.598,91.672c1.71,1.103,1.121,1.797,0.734,3.675257+ c-1.721-2.255-0.713-0.571-2.204,0.735C190.006,98.108,191.473,92.079,192.598,91.672z"/>258+ <path fill-rule="evenodd" clip-rule="evenodd" d="M167.607,101.227c1.772-1.412,2.918-3.452,4.41-5.145259+ c1.542,2.311-1.77,6.046-4.41,6.615c-0.66-2.151-0.66-2.258,0-4.41c-0.625-0.135-0.693,0.287-0.735,0.735260+ c-1.99-1.516,1.681-0.643,1.471-1.47C170.178,98.06,166.979,99.513,167.607,101.227z"/>261+ <path fill-rule="evenodd" clip-rule="evenodd" d="M163.933,106.372c1.091,0.321-0.29,0.94,0,2.205262+ c2.444-1.23,1.972-5.378,5.88-5.145c-0.187,3.243-2.987,3.873-3.675,6.615c-1.059-1.626-1.794,0.925-2.205-0.735263+ c-1.362,1.333-1.827,3.563-3.675,4.41C159.598,111.107,162.779,108.16,163.933,106.372z"/>264+ <path fill-rule="evenodd" clip-rule="evenodd" d="M177.162,102.697c-0.049,1.222,1.658,1.974,2.205,4.41265+ c-1.796,1.808-3.187-0.543-5.88,0C173.194,104.119,176.615,104.845,177.162,102.697z"/>266+ <path fill-rule="evenodd" clip-rule="evenodd" d="M200.683,104.167c-1.456-0.933-2.859,0.44-2.205-3.675267+ c0.861,0.119,0.62,1.34,0.735,2.205c0.861-0.119,0.619-1.34,0.734-2.205c3.201,3.407-0.348,6.558-2.205,7.35268+ C196.005,109.11,199.516,104.705,200.683,104.167z"/>269+ <path fill-rule="evenodd" clip-rule="evenodd" d="M152.173,104.167c1.606,0.108,1.578,1.852,1.47,3.675270+ c-1.666,0.723-2.671-0.252-2.94,2.94c-1.35-1.1-1.833-3.068-3.675-3.675c0.417-0.686,2.043-1.113,0.735-1.47271+ c-0.363-0.964,3.647-0.323,2.94,1.47C152.062,106.997,151.153,104.618,152.173,104.167z"/>272+ <path fill-rule="evenodd" clip-rule="evenodd" d="M186.718,105.637c1.341,0.571-0.44,0.79-1.471,0.735273+ c0.021,0.715,0.9,0.57,1.471,0.735c-1.615,3.041-3.447,5.863-5.88,8.085c1.829,1.342,1.746-0.518,2.205,1.47274+ c-0.178,1.895-1.265-1.009-2.94,0c0.756,2.841,1.937,2.899,0.735,5.145c2.016-0.388,3.072-2.837,3.675,0275+ c2.201-0.484-0.703-1.571,0-2.94c0.654,0.571,1.659,0.79,2.939,0.735c-0.173-2.031-4.146-0.263-3.675-2.94276+ c1.84,1.064,2.887,1.78,5.146,0.735c-2.236-1.281,2.006-2.831,0-1.47c0.182,0.798,1.461,0.499,1.47,1.47277+ c2.299-3.745,5.449-0.806,4.41-7.35c-1.043-0.063-2.082-0.121-2.205,0.735c-0.408-3.128,3.24-0.956,5.88,0278+ c0.191,2.151-1.662,2.258-1.47,4.41c-4.872-0.175-1.821,2.456-2.205,4.41c-0.625,0.135-0.693-0.287-0.735-0.735279+ c-0.794,10.327-26.139,2.21-27.93,13.965c-5.521,0.604-6.028,6.222-8.82,9.555c-0.753-3.056,0.68-0.647-0.735-5.88280+ c-0.625-0.135-0.693,0.287-0.734,0.735c-2.417-1.09,2.181-1.144,2.205-2.205c2.141,1.031-1.304,2.532-0.735,4.41281+ c1.813-0.434,4.178-4.095,2.94-5.145c0.851-0.322,2.929-0.702,2.939-3.675c3.299,0.604,3.282-2.108,5.146-2.94282+ c-0.021-0.715-0.9-0.57-1.471-0.735c0.835-2.402,2.459,0.182,2.94-2.94c0.654,0.326,1.314,0.645,1.47,1.47283+ c1.607-0.108,1.578-1.852,1.471-3.675c0.653,0.326,1.314,0.646,1.47,1.47c3.038-3.467,0.999-3.431,5.88-3.675284+ c-0.722-2.06-1.961,1.067-2.94-0.735c0.417-0.687,2.044-1.114,0.735-1.47c1.51,0.194,0.623-1.673,2.94-2.205285+ c0.207-1.187-0.695-1.265-0.735-2.205c0.703-0.936,1.501,1.805,2.205-1.47c-0.411-1.661-1.146,0.891-2.205-0.735286+ C184.604,110.043,183.415,108.328,186.718,105.637z"/>287+ <path fill-rule="evenodd" clip-rule="evenodd" d="M158.053,115.927c1.875-1.998,1.856,4.014-0.735,3.675288+ c0.776,1.183,2.913-1.197,1.47,2.205c2.148-0.547,1.423-3.968,4.41-3.675c0.852,1.088,0.852,1.853,0,2.94289+ c1.461-0.009,0.935-2.005,2.94-1.47c0.325,0.654,0.646,1.314,1.47,1.47c1.19,5.533-7.574,5.169-5.145,0.735290+ c-4.624,2.237-5.797,7.923-7.351,13.23c-3.857-1.697,1.651-8.464-2.939-8.82c0.011-2.684,2.089-3.301,2.939-5.145291+ c2.254,0.722-0.845,1.961-0.734,2.94C157.269,124.97,157.297,117.272,158.053,115.927z M158.053,122.542292+ c-0.945,0.829-3.58,3.692-2.205,4.41C155.947,125.279,160.271,124.104,158.053,122.542z"/>293+ <path fill-rule="evenodd" clip-rule="evenodd" d="M146.292,118.867c-1.627,2.401,1.289-0.182,1.47,2.94294+ c1.091-0.321-0.29-0.94,0-2.205c1.293,0.177,1.675,1.265,1.47,2.94c-1.87,0.8-2.85-3.442-2.94,0c-0.654-0.452-1.314-0.888-1.47,0295+ c-0.834-0.14-0.408-0.737,0-0.735c0.094-1.318-0.899-1.55-0.735-2.94c-0.099,2.661-2.252,2.474-0.735-0.735296+ C144.006,118.703,145.012,118.922,146.292,118.867z"/>297+ <path fill-rule="evenodd" clip-rule="evenodd" d="M147.027,126.217c-2.746,0.786-2.095-1.825-4.41-1.47298+ c2.307-1.646,2.204,1.484,5.88,0c0.135-0.625-0.287-0.693-0.735-0.735c0.119-0.861,1.34-0.62,2.205-0.735299+ C149.303,124.573,148.323,125.553,147.027,126.217z"/>300+ <path fill-rule="evenodd" clip-rule="evenodd" d="M150.703,124.012c1.047,1.875-0.541,5.018,2.205,5.145301+ c0.203,3.927-3.142-0.253-2.94,3.675c0.639,2.171,1.1-1.706,2.94-0.735c-1.577,2.097,0.49,7.84-3.675,7.35c0-1.715,0-3.43,0-5.145302+ c-3.898,2.016,0.009,9.898-6.615,11.76c0.085,2.09,5.114-0.567,2.94-0.735c0.14-0.834,0.737-0.408,0.735,0303+ c0.625,0.135,0.693-0.287,0.735-0.735c-0.328,3.397-6.316,2.948-7.35,8.085c-1.152-0.26,0.643-1.294-0.735-1.47304+ c3.993-2.054,2.354-5.377,4.41-8.82c-2.3,2.979-7.474,7.924-5.145,11.025c-0.665,1.295-2.706,1.214-2.94,2.939305+ c-1.986-1.1,1.273-3.067,2.205-3.675c-1.903-0.945-1.414-2.416-0.735-4.41c-2.21,1.22-1.396,5.463-4.41,5.88306+ c-0.113,2.697,3.764,2.816,0.735,4.409c-1.543-0.205,1.065-1.963-0.735-2.939c-2.354,1.954-2.1,3.67-3.675,5.145307+ c0.14,0.835,0.737,0.408,0.735,0c1.309,0.539,0.106,1.337,0,2.205c-0.49,0-0.98,0-1.47,0c2.45-12.494,11.829-18.062,18.375-26.46308+ c-0.993,0.722-1.469,1.961-2.205,2.94c-0.644-3.111,5.124-6.133,5.88-10.29c-1.686-1.899-3.332,1.904-5.88-0.735309+ c-1.359,0.111-0.451,2.489-1.47,2.94c-3.668-1-3.68,2.417-10.29,0.735c3.521-2.188,0.104-1.269-0.735-3.675310+ c-0.692-1.587,2.19,1.703,3.675-0.735c0.093,1.318-0.9,1.55-0.735,2.94c2.874-3.932,10.509-1.78,16.17-3.675311+ C149.037,125.82,149.037,125.144,150.703,124.012z"/>312+ <path fill-rule="evenodd" clip-rule="evenodd" d="M88.228,125.482c4.012,0.636-3.248,6.923,0.735,7.35313+ c-0.242,1.718-0.883,3.037-1.47,4.41C84.94,132.513,87.434,130.002,88.228,125.482z"/>314+ <path fill-rule="evenodd" clip-rule="evenodd" d="M116.893,128.422c0.508,0.983,1.96-0.363,3.675,0.735c0,1.225,0,2.45,0,3.675315+ c-0.715-0.02-0.57-0.9-0.735-1.47c-0.965,0.882-1.156,0.287-2.205,0c0.26-0.965,1.294-1.156,1.47-2.205316+ c-1.829-0.114-2.275,1.154-3.675,1.47c-1.769-0.442,2.188-1.137,0.735-3.675C117,127.211,118.021,128.246,116.893,128.422z"/>317+ <path fill-rule="evenodd" clip-rule="evenodd" d="M124.978,127.687c2.152,0.661,2.258,0.661,4.41,0318+ c-1.096-0.157-0.959,4.072,1.47,2.94c1.091,0.321-0.29,0.94,0,2.205c-2.347-2.365-4.171,0.786-7.35-2.205319+ C123.517,129.167,125.513,129.692,124.978,127.687z"/>320+ <path fill-rule="evenodd" clip-rule="evenodd" d="M202.152,136.507c0.275,2.907,3.908-1.138,3.675,2.94321+ c1.695,0.225,0.816-2.123,2.205-2.205c1.166-1.502-1.186,4.812-4.41,3.675c0.507-1.977-1.519-1.42-2.204-2.205322+ c1.105-3.549,2.412-6.897,2.939-11.025c2.25,1.826-0.88,4.461,0,7.35c2.643-1.767,3.063-5.757,6.615-6.615323+ c-0.83,0.885-2.098,1.332-1.47,3.675c-1.499-1.477-1.441,0.325-2.94,0.735c1.749,0.501,2.271,4.078-0.735,3.675324+ c0.571-0.654,0.791-1.66,0.735-2.94C205.083,136.163,204.159,134.745,202.152,136.507z"/>325+ <path fill-rule="evenodd" clip-rule="evenodd" d="M219.058,136.507c1.376-0.704-2.154,5.418-2.94,7.35326+ C213.548,140.76,217.194,137.612,219.058,136.507z"/>327+ <path fill-rule="evenodd" clip-rule="evenodd" d="M197.742,137.242c1.502,2.578-5.185,1.526-2.205,4.41328+ c1.848,1.377-1.222,0.081-2.205,0c1.78-1.466,0.739-1.16,1.471-3.675C196.643,138.069,197.104,139.38,197.742,137.242z"/>329+ <path fill-rule="evenodd" clip-rule="evenodd" d="M154.378,137.977c1.123,1.651-3.711,3.611-4.411,5.88330+ C144.878,143.354,153.333,142.019,154.378,137.977z"/>331+ <path fill-rule="evenodd" clip-rule="evenodd" d="M203.622,146.062c0.235,1.705-0.118,2.822-0.734,3.675332+ c0.625,0.135,0.693-0.287,0.734-0.735c-0.768,4.558-3.626-5.897-5.145-3.675c-1.759-1.102,1.164-3.678,2.94-3.675333+ c-0.141-0.595-0.738-0.732-0.735-1.47c-0.752,0.718-1.487,1.453-2.205,2.205c-0.625,0.135-0.693-0.287-0.735-0.735334+ c0.136-0.625-0.286-0.693-0.734-0.735c0.461-1.499,3.713-0.207,2.939-2.94C203.798,139.573,199.335,145.898,203.622,146.062z"/>335+ <path fill-rule="evenodd" clip-rule="evenodd" d="M205.827,149.737c0.515,2.262,0.515,1.413,0,3.675336+ c1.67-0.536,2.198-2.212,2.94-3.675c0.639,3.084-5.657,9.218-7.35,8.085c0.382,1.087,1.087,1.853,1.47,2.939337+ c0.965-0.26,1.156-1.294,2.205-1.47c1.034-1.25-2.403,4.648-5.146,4.41c1.156-0.56,1.099-2.332,2.94-2.205338+ c-0.835-0.705-2.458-4.309-2.94-2.94c0.008-2.459,3.756-7.502,5.88-10.29c-1.441-0.07-1.323-2.201-2.939-5.145339+ c0.654-0.326,1.314-0.646,1.47-1.47c0.308,0.906,0.941,2.034,2.94,2.94c0.021-1.988,1.634-0.024,2.939-2.94340+ c0.739,0.315,0.03,5.372-2.939,4.41C208.061,146.757,207.969,149.849,205.827,149.737z"/>341+ <path fill-rule="evenodd" clip-rule="evenodd" d="M191.128,144.592c2.271,1.88,3.943-1.985,5.145-1.47342+ c1.982,2.27-2.469,4.359-3.675,5.88c-2.304-0.508-0.958-1.96-0.735-3.675c-1.694-0.225-0.816,2.123-2.205,2.205343+ C188.102,149.324,190.522,145.226,191.128,144.592z"/>344+ <path fill-rule="evenodd" clip-rule="evenodd" d="M189.657,150.472c-0.362-0.964,3.647-0.323,2.94,1.47345+ c1.389-0.551,0.51-2.194,2.205-0.735c0.374-0.934,1.395-4.076,4.41-4.41c0.822,4.695-2.131,7.315-4.41,9.555346+ c-0.017-1.731,1.266-2.164,0.734-4.409c-0.997,0.227-0.609,1.84-0.734,2.939c-1.527-0.411-1.558-1.146-0.735-2.205347+ c-2.361-0.452-1.007,2.646-2.939,0.735c-2.671,2.188-3.962,4.627-7.351,4.41c0.69-2.981,3.169-5.582,5.88-4.41348+ C190.85,153.938,190.85,149.946,189.657,150.472z"/>349+ <path fill-rule="evenodd" clip-rule="evenodd" d="M197.742,161.497c-1.842,0.127-1.784-1.646-2.939-2.205350+ c-1.337,0.851-0.664,3.716-3.675,3.675c1.133,1.79,5.077,0.236,5.88-0.734c-0.354,3.983-11.766,2.225-12.495,2.939351+ c0.118,0.861,1.34,0.62,2.205,0.735c2.378,0.846-1.974,0.832-2.94,0.734c-0.967-3.192-0.65-2.217,1.47-2.939352+ c0.218-1.933-2.852-0.579-2.204-2.94c1.707,0.498,1.967,2.442,3.675,2.94c5.322-4.528,11.612-5.481,13.965-13.965353+ c0.625-0.135,0.693,0.287,0.735,0.735c-0.136,0.625,0.286,0.693,0.734,0.735C200.91,153.552,197.779,156.027,197.742,161.497z"/>354+ <path fill-rule="evenodd" clip-rule="evenodd" d="M213.912,147.532c3.728-0.668-7.716,10.658-8.085,10.29355+ c-0.692-0.693,18.229-18.229,2.94-2.94c1.044-1.044,1.567-2.663,2.939-2.939C211.719,149.749,213.618,149.443,213.912,147.532z"/>356+ <path fill-rule="evenodd" clip-rule="evenodd" d="M255.072,80.647c-2.489,0.451-5.676,0.204-5.145,3.675357+ c-1.826-2.835,0.356-7.951,1.47-10.29C254.542,74.317,254.898,77.391,255.072,80.647z"/>358+ <path fill-rule="evenodd" clip-rule="evenodd" d="M224.938,77.707c0.69-3.513,2.378,0.297,2.94,2.94359+ c-0.478,0.748-1.69,0.76-1.471,2.205c-1.319-1.996-9.06-7.74-2.205-8.82C223.266,75.969,224.971,75.586,224.938,77.707z"/>360+ </g>361+</g>362+<g>363+ <path d="M18.655,159.962v39.241c0,1.453,0.049,2.668,0.15,3.645c0.1,0.979,0.275,1.668,0.526,2.068364+ c0.25,0.351,0.613,0.613,1.09,0.789c0.476,0.176,1.165,0.289,2.067,0.338l3.608,0.15v2.256c-1.955-0.051-3.822-0.102-5.601-0.15365+ c-1.779-0.051-3.546-0.076-5.3-0.076c-0.501,0-1.015,0-1.541,0s-1.065,0-1.616,0c-1.304,0.05-2.606,0.088-3.909,0.113366+ c-1.304,0.024-2.657,0.063-4.06,0.113v-2.256l3.608-0.226c0.902,0,1.603-0.087,2.105-0.263c0.5-0.176,0.852-0.438,1.052-0.789367+ c0.25-0.4,0.425-1.09,0.526-2.068c0.1-0.977,0.15-2.166,0.15-3.57v-33.828c0-1.402-0.05-2.58-0.15-3.533368+ c-0.101-0.951-0.276-1.627-0.526-2.029c-0.201-0.4-0.552-0.676-1.052-0.826c-0.502-0.15-1.203-0.25-2.105-0.301l-3.082-0.301369+ v-2.256c0.65,0.051,1.327,0.088,2.029,0.113c0.702,0.025,1.403,0.037,2.105,0.037c1.353,0.051,2.769,0.088,4.248,0.113370+ c1.478,0.025,2.943,0.037,4.397,0.037c1.503,0,2.981-0.012,4.435-0.037c1.453-0.025,2.906-0.063,4.36-0.113371+ c0.701,0,1.428-0.012,2.18-0.037c0.752-0.025,1.478-0.037,2.18-0.037c0.1,0,0.212,0,0.338,0c0.125,0,0.237,0,0.338,0372+ c5.212,0,8.845,1.014,10.9,3.044c2.054,2.03,3.232,4.272,3.533,6.728c0,0.252,0.012,0.502,0.038,0.752373+ c0.024,0.252,0.037,0.502,0.037,0.752c0,4.059-1.503,7.305-4.51,9.734c-3.007,2.432-6.314,3.998-9.923,4.699374+ c-0.05,0.05-0.088,0.074-0.113,0.074c-0.025,0-0.063,0-0.112,0l17.064,22.176c0.551,0.803,1.227,1.316,2.029,1.541375+ c0.801,0.227,1.653,0.39,2.556,0.489v2.181c-0.301,0-0.614-0.014-0.939-0.038c-0.326-0.026-0.639-0.038-0.939-0.038376+ c-0.602-0.051-1.191-0.088-1.767-0.112c-0.577-0.026-1.165-0.038-1.767-0.038c-0.451,0-0.891,0.012-1.315,0.038377+ c-0.427,0.024-0.84,0.038-1.24,0.038c-0.15,0-0.289,0.012-0.414,0.037c-0.125,0.024-0.263,0.037-0.413,0.037378+ c-0.301,0-0.59,0.012-0.865,0.038c-0.276,0.024-0.563,0.038-0.864,0.038c-0.251-0.301-0.501-0.627-0.752-0.979379+ c-0.251-0.35-0.501-0.676-0.751-0.977c-0.101-0.15-0.201-0.275-0.301-0.376c-0.101-0.1-0.176-0.2-0.226-0.301380+ c-0.201-0.25-0.389-0.488-0.564-0.714c-0.176-0.226-0.338-0.438-0.488-0.639l-13.832-18.643c-0.351-0.451-0.727-0.902-1.127-1.354381+ c-0.402-0.451-0.802-0.902-1.203-1.354c-0.251-0.35-0.514-0.676-0.789-0.977c-0.276-0.301-0.539-0.602-0.79-0.902l0.451-0.978382+ c0.35,0.101,0.701,0.15,1.053,0.15c0.35,0,0.701,0,1.052,0c0.5,0,1.002-0.012,1.503-0.038c0.5-0.024,1.002-0.062,1.503-0.112383+ c0.25-0.05,0.5-0.087,0.752-0.112c0.25-0.025,0.5-0.063,0.751-0.113c2.656-0.451,4.949-1.628,6.878-3.533384+ c1.929-1.904,2.894-4.234,2.894-6.99c0-3.959-1.191-6.665-3.571-8.119c-2.381-1.453-4.999-2.205-7.855-2.256385+ c-0.101,0-0.188,0-0.263,0s-0.139,0-0.188,0c-1.704,0-3.146,0.088-4.322,0.264c-1.178,0.176-2.293,0.389-3.345,0.639V159.962z"/>386+ <path d="M72.028,172.967c4.108,0.051,7.518,1.305,10.224,3.759c2.706,2.456,4.06,5.814,4.06,10.073c0,0.502,0,1.015,0,1.541387+ s-0.051,1.065-0.15,1.616c-1.104,0.2-2.23,0.364-3.383,0.489c-1.153,0.125-2.281,0.238-3.383,0.338388+ c-1.153,0.051-2.293,0.102-3.421,0.15c-1.127,0.051-2.268,0.075-3.42,0.075H61.579c0,4.438,1.115,8.015,3.346,10.733389+ c2.229,2.718,5.649,4.075,10.261,4.075c1.754,0,3.346-0.35,4.773-1.052c1.429-0.701,2.819-1.453,4.172-2.256390+ c0.101-0.049,0.176-0.087,0.226-0.112c0.05-0.024,0.101-0.063,0.15-0.112l0.978,0.676l-1.504,2.557391+ c-0.101,0.25-0.45,0.551-1.052,0.901s-1.329,0.752-2.181,1.202c-0.853,0.352-1.792,0.689-2.818,1.016392+ c-1.028,0.325-2.067,0.588-3.12,0.789c-0.501,0.1-0.99,0.176-1.466,0.226c-0.477,0.05-0.939,0.075-1.391,0.075393+ c-5.664,0-9.974-1.616-12.93-4.849c-2.958-3.232-4.436-7.379-4.436-12.44c0-3.658,0.477-6.627,1.429-8.908394+ c0.951-2.28,2.28-4.098,3.984-5.451c0.701-0.551,1.453-1.102,2.255-1.653c0.801-0.551,1.604-1.002,2.405-1.353395+ c0.701-0.351,1.391-0.65,2.067-0.902c0.677-0.25,1.341-0.476,1.992-0.677c0.551-0.15,1.09-0.263,1.616-0.339396+ c0.526-0.074,1.09-0.112,1.691-0.112V172.967z M71.652,175.447c-2.757,0.051-5.111,1.053-7.066,3.008397+ c-1.954,1.954-2.906,4.836-2.856,8.645c0,0.15,0,0.301,0,0.451s0,0.301,0,0.451c1.654,0.201,3.308,0.326,4.962,0.375398+ c1.653,0.051,3.257,0.076,4.811,0.076c1.453,0,2.856-0.025,4.21-0.076c1.354-0.049,2.655-0.1,3.909-0.15399+ c0-3.507-0.652-6.502-1.955-8.982c-1.304-2.48-3.308-3.721-6.014-3.721V175.447z"/>400+ <path d="M118.183,203.262l-7.818,4.961c-0.401,0.301-0.89,0.514-1.466,0.64c-0.576,0.124-1.141,0.212-1.691,0.263401+ c-0.101,0-0.2,0-0.301,0s-0.2,0-0.3,0c-0.051,0-0.113,0-0.188,0s-0.163,0-0.263,0c-5.213-0.302-8.921-1.908-11.126-4.821402+ c-2.206-2.913-3.434-6.103-3.684-9.567c-0.051-0.251-0.075-0.514-0.075-0.791c0-0.276,0-0.565,0-0.866403+ c0-3.817,0.701-6.905,2.105-9.267c1.402-2.36,3.131-4.193,5.187-5.499l6.314-4.144c0.551-0.25,1.303-0.5,2.255-0.752404+ c0.952-0.25,1.929-0.4,2.932-0.451c0.101,0,0.188,0,0.264,0s0.138,0,0.188,0c1.854,0,3.671,0.214,5.45,0.639405+ c1.778,0.427,3.496,1.041,5.149,1.842l3.684-2.405l1.429,0.827c-0.402,0.809-0.715,1.703-0.94,2.688s-0.389,1.981-0.488,2.992406+ c-0.101,0.857-0.176,1.703-0.226,2.535c-0.051,0.834-0.075,1.604-0.075,2.31v37.06c0,1.002,0.024,1.88,0.075,2.631407+ c0.05,0.752,0.15,1.328,0.301,1.729c0.15,0.351,0.425,0.602,0.827,0.752c0.4,0.15,0.927,0.25,1.578,0.301l3.458,0.226v2.255408+ c-0.451,0-0.915-0.013-1.391-0.038c-0.477-0.025-0.966-0.037-1.466-0.037c-0.952-0.051-1.968-0.088-3.045-0.113409+ c-1.078-0.025-2.243-0.037-3.495-0.037c-0.952,0-1.879,0.012-2.781,0.037s-1.805,0.038-2.706,0.038410+ c-0.201,0-0.414,0.012-0.64,0.038c-0.226,0.024-0.464,0.037-0.714,0.037c-0.552,0-1.116,0.012-1.691,0.037411+ c-0.576,0.025-1.165,0.038-1.767,0.038v-2.255l4.36-0.226c0.65-0.051,1.177-0.15,1.578-0.301c0.4-0.15,0.677-0.401,0.827-0.752412+ c0.15-0.401,0.25-0.978,0.301-1.729c0.05-0.751,0.075-1.629,0.075-2.631V203.262z M118.183,199.188v-19.672413+ c-1.003-0.904-2.131-1.582-3.383-2.035c-1.253-0.451-2.507-0.729-3.759-0.83c-0.401-0.049-0.802-0.087-1.202-0.113414+ c-0.402-0.023-0.803-0.037-1.203-0.037c-0.401,0-0.815,0.025-1.24,0.075c-0.427,0.051-0.84,0.126-1.24,0.228415+ c-2.105,0.502-4.022,1.721-5.751,3.654c-1.729,1.936-2.594,4.861-2.594,8.781c0,0.252,0,0.516,0,0.792s0.024,0.539,0.075,0.79416+ c0.15,3.518,1.09,6.747,2.819,9.686c1.729,2.94,4.647,4.41,8.758,4.41c0.25,0,0.525-0.012,0.826-0.038417+ c0.301-0.024,0.576-0.088,0.827-0.188c1.053-0.251,2.079-0.666,3.082-1.243c1.002-0.578,1.829-1.193,2.48-1.847418+ c0.451-0.401,0.814-0.816,1.091-1.244c0.274-0.428,0.413-0.791,0.413-1.094V199.188z"/>419+ <path d="M168.549,200.545c0,1.055,0.025,1.959,0.074,2.713c0.051,0.754,0.15,1.331,0.301,1.732c0.15,0.352,0.426,0.602,0.828,0.752420+ c0.4,0.15,0.926,0.252,1.578,0.301l3.082,0.15v2.256c-0.301,0-0.613-0.014-0.939-0.038c-0.326-0.026-0.664-0.038-1.016-0.038421+ c-0.5-0.051-0.99-0.088-1.465-0.112c-0.477-0.026-0.965-0.038-1.467-0.038c-0.201,0-0.412,0-0.639,0c-0.225,0-0.439,0-0.639,0422+ c-0.703,0-1.416,0.012-2.143,0.038c-0.727,0.024-1.441,0.062-2.143,0.112c-0.352,0-0.689,0.012-1.014,0.038423+ c-0.328,0.024-0.666,0.038-1.016,0.038c0-0.102,0-0.188,0-0.264s0.025-0.162,0.074-0.264c0.051-0.951,0.102-1.928,0.15-2.932424+ c0.051-1.002,0.076-2.129,0.076-3.383l-5.037,4.586c-1.053,1.004-2.268,1.742-3.645,2.218c-1.381,0.476-2.97,0.714-4.775,0.714425+ c-4.811,0-7.769-1.152-8.87-3.457c-1.103-2.305-1.68-4.861-1.729-7.668c0-0.25,0-0.514,0-0.789s0-0.564,0-0.865v-12.704426+ c0-1.152-0.038-2.13-0.113-2.932s-0.214-1.353-0.413-1.653c-0.201-0.301-0.515-0.514-0.939-0.64427+ c-0.427-0.124-1.041-0.188-1.842-0.188h-2.781v-2.254c0.1,0.05,0.199,0.063,0.3,0.037s0.176-0.037,0.226-0.037428+ c1.754-0.2,3.445-0.514,5.074-0.94c1.628-0.425,3.094-0.89,4.398-1.391c0.3-0.1,0.601-0.212,0.901-0.339429+ c0.301-0.124,0.576-0.236,0.827-0.338l0.677,0.226v22.229c0,3.014,0.5,5.299,1.503,6.857c1.002,1.557,3.232,2.336,6.691,2.336430+ c1.904,0,3.684-0.639,5.338-1.918c1.652-1.277,2.855-2.668,3.607-4.172c0.199-0.451,0.35-0.889,0.451-1.314431+ c0.1-0.426,0.15-0.84,0.15-1.241v-12.328c0-1.152-0.037-2.13-0.113-2.932c-0.074-0.802-0.213-1.353-0.412-1.653432+ c-0.201-0.301-0.516-0.514-0.941-0.64c-0.426-0.124-1.039-0.188-1.842-0.188h-2.781v-2.254c0.1,0.05,0.201,0.063,0.301,0.037433+ s0.176-0.037,0.227-0.037c1.754-0.2,3.445-0.514,5.074-0.94c1.627-0.425,3.094-0.89,4.396-1.391c0.301-0.1,0.602-0.212,0.902-0.339434+ c0.301-0.124,0.576-0.236,0.828-0.338l0.676,0.226V200.545z"/>435+ <path d="M195.461,172.967c4.107,0.051,7.518,1.305,10.223,3.759c2.707,2.456,4.061,5.814,4.061,10.073c0,0.502,0,1.015,0,1.541436+ s-0.051,1.065-0.15,1.616c-1.104,0.2-2.23,0.364-3.383,0.489c-1.154,0.125-2.281,0.238-3.383,0.338437+ c-1.154,0.051-2.293,0.102-3.422,0.15c-1.127,0.051-2.268,0.075-3.42,0.075h-10.975c0,4.438,1.115,8.015,3.346,10.733438+ c2.229,2.718,5.648,4.075,10.26,4.075c1.754,0,3.346-0.35,4.773-1.052c1.43-0.701,2.82-1.453,4.172-2.256439+ c0.102-0.049,0.176-0.087,0.227-0.112c0.049-0.024,0.1-0.063,0.15-0.112l0.977,0.676l-1.504,2.557440+ c-0.1,0.25-0.449,0.551-1.051,0.901s-1.33,0.752-2.182,1.202c-0.852,0.352-1.791,0.689-2.818,1.016441+ c-1.027,0.325-2.066,0.588-3.119,0.789c-0.502,0.1-0.99,0.176-1.467,0.226s-0.939,0.075-1.391,0.075442+ c-5.664,0-9.973-1.616-12.93-4.849s-4.436-7.379-4.436-12.44c0-3.658,0.477-6.627,1.43-8.908c0.951-2.28,2.279-4.098,3.984-5.451443+ c0.701-0.551,1.453-1.102,2.254-1.653c0.801-0.551,1.604-1.002,2.406-1.353c0.701-0.351,1.391-0.65,2.066-0.902444+ c0.678-0.25,1.342-0.476,1.992-0.677c0.551-0.15,1.09-0.263,1.617-0.339c0.525-0.074,1.09-0.112,1.691-0.112V172.967z445+ M195.084,175.447c-2.756,0.051-5.111,1.053-7.066,3.008c-1.953,1.954-2.906,4.836-2.855,8.645c0,0.15,0,0.301,0,0.451446+ s0,0.301,0,0.451c1.654,0.201,3.307,0.326,4.961,0.375c1.654,0.051,3.258,0.076,4.811,0.076c1.453,0,2.857-0.025,4.211-0.076447+ c1.354-0.049,2.654-0.1,3.908-0.15c0-3.507-0.652-6.502-1.955-8.982s-3.307-3.721-6.014-3.721V175.447z"/>448+ <path d="M215.154,197.474h2.256v3.082c0,2.005,0.789,3.509,2.367,4.511c1.58,1.002,3.32,1.604,5.225,1.804449+ c0.35,0.05,0.701,0.088,1.053,0.112c0.35,0.026,0.701,0.038,1.053,0.038c2.355,0,4.41-0.64,6.164-1.921450+ c1.754-1.279,2.631-2.926,2.631-4.936c0-1.205-0.313-2.258-0.939-3.162c-0.627-0.905-1.516-1.508-2.668-1.81451+ c-1.004-0.251-2.08-0.515-3.232-0.79c-1.154-0.276-2.307-0.565-3.459-0.867c-0.752-0.201-1.492-0.414-2.217-0.641452+ c-0.727-0.225-1.441-0.465-2.143-0.717c-1.805-0.701-3.32-1.668-4.549-2.899s-1.842-3.001-1.842-5.312453+ c0-4.068,1.479-6.918,4.436-8.551s6.189-2.449,9.697-2.449c1.754,0,3.445,0.176,5.074,0.526s3.17,0.802,4.623,1.353454+ c-0.102,1.354-0.176,2.732-0.225,4.135c-0.051,1.404-0.102,2.857-0.15,4.36l-2.105-0.075v-1.729c0-1.854-0.865-3.309-2.594-4.36455+ s-3.621-1.628-5.676-1.729c-0.1,0-0.188,0-0.262,0c-0.076,0-0.139,0-0.189,0c-2.506,0-4.271,0.453-5.299,1.357456+ s-1.666,1.908-1.916,3.013c-0.051,0.302-0.09,0.591-0.113,0.866c-0.025,0.277-0.037,0.565-0.037,0.866457+ c0,1.608,0.65,2.876,1.953,3.806c1.303,0.929,3.383,1.645,6.24,2.146c4.459,0.754,7.768,1.81,9.922,3.164458+ c2.154,1.355,3.232,3.516,3.232,6.479c0,4.118-1.729,7.245-5.186,9.38c-3.459,2.133-7.268,3.201-11.428,3.201459+ c-0.801,0-1.604-0.025-2.404-0.075c-0.803-0.05-1.58-0.15-2.33-0.301c-0.953-0.101-1.906-0.276-2.857-0.526460+ c-0.953-0.251-1.93-0.525-2.932-0.826c0.301-1.303,0.5-2.656,0.602-4.06c0.1-1.403,0.174-2.831,0.225-4.285461+ c0-0.351,0-0.701,0-1.052s0-0.701,0-1.053V197.474z"/>462+ <path d="M245.6,179.808v-1.579l5.863-2.631v-5.262c0-0.951-0.025-1.917-0.074-2.895c-0.051-0.977-0.127-1.966-0.227-2.969463+ c0.701-0.199,1.365-0.426,1.992-0.677c0.627-0.25,1.215-0.501,1.768-0.751c0.551-0.251,1.051-0.501,1.502-0.752464+ c0.451-0.25,0.828-0.477,1.129-0.678l0.902,0.752c-0.102,0.803-0.201,1.629-0.301,2.48c-0.102,0.854-0.178,1.705-0.227,2.557465+ c-0.102,1.003-0.176,1.992-0.225,2.969c-0.051,0.978-0.076,1.893-0.076,2.744v2.781l10.299-0.451l-0.676,4.061h-9.623v19.695466+ c0,1.754,0.301,3.07,0.902,3.945c0.602,0.878,1.678,1.316,3.232,1.316c0.752,0,1.439-0.1,2.066-0.301467+ c0.627-0.199,1.166-0.451,1.617-0.752c0.15-0.049,0.287-0.113,0.414-0.188c0.123-0.076,0.236-0.138,0.338-0.188l0.977,1.202468+ l-3.607,3.984c-0.201,0.25-0.59,0.438-1.166,0.564c-0.576,0.125-1.191,0.213-1.842,0.263c-0.301,0.05-0.613,0.075-0.939,0.075469+ s-0.639,0-0.939,0c-2.006,0-3.734-0.552-5.188-1.654c-1.453-1.102-2.18-3.182-2.18-6.238v-21.725L245.6,179.808z"/>470+ <path d="M271.533,197.474h2.256v3.082c0,2.005,0.789,3.509,2.367,4.511c1.58,1.002,3.32,1.604,5.225,1.804471+ c0.35,0.05,0.701,0.088,1.053,0.112c0.35,0.026,0.701,0.038,1.053,0.038c2.355,0,4.41-0.64,6.164-1.921472+ c1.754-1.279,2.631-2.926,2.631-4.936c0-1.205-0.313-2.258-0.939-3.162c-0.627-0.905-1.516-1.508-2.668-1.81473+ c-1.004-0.251-2.08-0.515-3.232-0.79c-1.154-0.276-2.307-0.565-3.459-0.867c-0.752-0.201-1.492-0.414-2.217-0.641474+ c-0.727-0.225-1.441-0.465-2.143-0.717c-1.805-0.701-3.32-1.668-4.549-2.899s-1.842-3.001-1.842-5.312475+ c0-4.068,1.479-6.918,4.436-8.551s6.189-2.449,9.697-2.449c1.754,0,3.445,0.176,5.074,0.526s3.17,0.802,4.623,1.353476+ c-0.102,1.354-0.176,2.732-0.225,4.135c-0.051,1.404-0.102,2.857-0.15,4.36l-2.105-0.075v-1.729c0-1.854-0.865-3.309-2.594-4.36477+ s-3.621-1.628-5.676-1.729c-0.1,0-0.188,0-0.262,0c-0.076,0-0.139,0-0.189,0c-2.506,0-4.271,0.453-5.299,1.357478+ s-1.666,1.908-1.916,3.013c-0.051,0.302-0.09,0.591-0.113,0.866c-0.025,0.277-0.037,0.565-0.037,0.866479+ c0,1.608,0.65,2.876,1.953,3.806c1.303,0.929,3.383,1.645,6.24,2.146c4.459,0.754,7.768,1.81,9.922,3.164480+ c2.154,1.355,3.232,3.516,3.232,6.479c0,4.118-1.729,7.245-5.186,9.38c-3.459,2.133-7.268,3.201-11.428,3.201481+ c-0.801,0-1.604-0.025-2.404-0.075c-0.803-0.05-1.58-0.15-2.33-0.301c-0.953-0.101-1.906-0.276-2.857-0.526482+ c-0.953-0.251-1.93-0.525-2.932-0.826c0.301-1.303,0.5-2.656,0.602-4.06c0.1-1.403,0.174-2.831,0.225-4.285483+ c0-0.351,0-0.701,0-1.052s0-0.701,0-1.053V197.474z"/>484+</g>485+<g>486+</g>487+</svg>modified:requests/packages/chardet/__init__.py+1 added-1 removed
13 unmodified lines14 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA15 # 02110-1301 USA16 ######################### END LICENSE BLOCK #########################17 18-__version__ = "2.2.1"18+__version__ = "2.3.0"19 from sys import version_info20 21 22 def detect(aBuf):10 unmodified linesmodified:requests/packages/chardet/chardetect.py+49 added-15 removed
10 unmodified lines11 12 If no paths are provided, it takes its input from stdin.13 14 """15+16+from __future__ import absolute_import, print_function, unicode_literals17+18+import argparse19+import sys20 from io import open16-from sys import argv, stdin21 22+from chardet import __version__23 from chardet.universaldetector import UniversalDetector24 25 21-def description_of(file, name='stdin'):22- """Return a string describing the probable encoding of a file."""26+def description_of(lines, name='stdin'):27+ """28+ Return a string describing the probable encoding of a file or29+ list of strings.30+31+ :param lines: The lines to get the encoding of.32+ :type lines: Iterable of bytes33+ :param name: Name of file or collection of lines34+ :type name: str35+ """36 u = UniversalDetector()24- for line in file:37+ for line in lines:38 u.feed(line)39 u.close()40 result = u.result41 if result['encoding']:29- return '%s: %s with confidence %s' % (name,30- result['encoding'],31- result['confidence'])42+ return '{0}: {1} with confidence {2}'.format(name, result['encoding'],43+ result['confidence'])44 else:33- return '%s: no result' % name45+ return '{0}: no result'.format(name)46 47 36-def main():37- if len(argv) <= 1:38- print(description_of(stdin))39- else:40- for path in argv[1:]:41- with open(path, 'rb') as f:42- print(description_of(f, path))48+def main(argv=None):49+ '''50+ Handles command line arguments and gets things started.51 52+ :param argv: List of arguments, as if specified on the command-line.53+ If None, ``sys.argv[1:]`` is used instead.54+ :type argv: list of str55+ '''56+ # Get command line arguments57+ parser = argparse.ArgumentParser(58+ description="Takes one or more file paths and reports their detected \59+ encodings",60+ formatter_class=argparse.ArgumentDefaultsHelpFormatter,61+ conflict_handler='resolve')62+ parser.add_argument('input',63+ help='File whose encoding we would like to determine.',64+ type=argparse.FileType('rb'), nargs='*',65+ default=[sys.stdin])66+ parser.add_argument('--version', action='version',67+ version='%(prog)s {0}'.format(__version__))68+ args = parser.parse_args(argv)69 70+ for f in args.input:71+ if f.isatty():72+ print("You are running chardetect interactively. Press " +73+ "CTRL-D twice at the start of a blank line to signal the " +74+ "end of your input. If you want help, run chardetect " +75+ "--help\n", file=sys.stderr)76+ print(description_of(f, f.name))77+78+79 if __name__ == '__main__':80 main()modified:requests/packages/chardet/jpcntx.py+8 added
175 unmodified lines176 def get_order(self, aBuf):177 return -1, 1178 179 class SJISContextAnalysis(JapaneseContextAnalysis):180+ def __init__(self):181+ self.charset_name = "SHIFT_JIS"182+183+ def get_charset_name(self):184+ return self.charset_name185+186 def get_order(self, aBuf):187 if not aBuf:188 return -1, 1189 # find out current char's byte length190 first_char = wrap_ord(aBuf[0])191 if ((0x81 <= first_char <= 0x9F) or (0xE0 <= first_char <= 0xFC)):192 charLen = 2193+ if (first_char == 0x87) or (0xFA <= first_char <= 0xFC):194+ self.charset_name = "CP932"195 else:196 charLen = 1197 198 # return its order if it is hiragana29 unmodified linesmodified:requests/packages/chardet/latin1prober.py+3 added-3 removed
127 unmodified lines128 total = sum(self._mFreqCounter)129 if total < 0.01:130 confidence = 0.0131 else:132- confidence = ((self._mFreqCounter[3] / total)133- - (self._mFreqCounter[1] * 20.0 / total))132+ confidence = ((self._mFreqCounter[3] - self._mFreqCounter[1] * 20.0)133+ / total)134 if confidence < 0.0:135 confidence = 0.0136 # lower the confidence of latin1 so that other more accurate137 # detector can take priority.138- confidence = confidence * 0.5138+ confidence = confidence * 0.73139 return confidencemodified:requests/packages/chardet/mbcssm.py+3 added-6 removed
351 unmodified lines352 2,2,2,2,2,2,2,2, # 60 - 67353 2,2,2,2,2,2,2,2, # 68 - 6f354 2,2,2,2,2,2,2,2, # 70 - 77355 2,2,2,2,2,2,2,1, # 78 - 7f356- 3,3,3,3,3,3,3,3, # 80 - 87356+ 3,3,3,3,3,2,2,3, # 80 - 87357 3,3,3,3,3,3,3,3, # 88 - 8f358 3,3,3,3,3,3,3,3, # 90 - 97359 3,3,3,3,3,3,3,3, # 98 - 9f360 #0xa0 is illegal in sjis encoding, but some pages does7 unmodified lines368 2,2,2,2,2,2,2,2, # d0 - d7369 2,2,2,2,2,2,2,2, # d8 - df370 3,3,3,3,3,3,3,3, # e0 - e7371 3,3,3,3,3,4,4,4, # e8 - ef372- 4,4,4,4,4,4,4,4, # f0 - f7373- 4,4,4,4,4,0,0,0 # f8 - ff374-)372+ 3,3,3,3,3,3,3,3, # f0 - f7373+ 3,3,3,3,3,0,0,0) # f8 - ff374 375 376 SJIS_st = (377 eError,eStart,eStart, 3,eError,eError,eError,eError,#00-07191 unmodified lines569 'classFactor': 16,570 'stateTable': UTF8_st,571 'charLenTable': UTF8CharLenTable,572 'name': 'UTF-8'}574-575-# flake8: noqamodified:requests/packages/chardet/sjisprober.py+1 added-1 removed
45 unmodified lines46 MultiByteCharSetProber.reset(self)47 self._mContextAnalyzer.reset()48 49 def get_charset_name(self):50- return "SHIFT_JIS"50+ return self._mContextAnalyzer.get_charset_name()51 52 def feed(self, aBuf):53 aLen = len(aBuf)54 for i in range(0, aLen):37 unmodified linesmodified:requests/packages/chardet/universaldetector.py+2 added-2 removed
69 unmodified lines70 return71 72 if not self._mGotData:73 # If the data starts with BOM, we know it is UTF74- if aBuf[:3] == codecs.BOM:74+ if aBuf[:3] == codecs.BOM_UTF8:75 # EF BB BF UTF-8 with BOM76- self.result = {'encoding': "UTF-8", 'confidence': 1.0}76+ self.result = {'encoding': "UTF-8-SIG", 'confidence': 1.0}77 elif aBuf[:4] == codecs.BOM_UTF32_LE:78 # FF FE 00 00 UTF-32, little-endian BOM79 self.result = {'encoding': "UTF-32LE", 'confidence': 1.0}80 elif aBuf[:4] == codecs.BOM_UTF32_BE:90 unmodified linesadded:requests/packages/urllib3/contrib/appengine.py+223 added
1+from __future__ import absolute_import2+import logging3+import os4+import warnings5+6+from ..exceptions import (7+ HTTPError,8+ HTTPWarning,9+ MaxRetryError,10+ ProtocolError,11+ TimeoutError,12+ SSLError13+)14+15+from ..packages.six import BytesIO16+from ..request import RequestMethods17+from ..response import HTTPResponse18+from ..util.timeout import Timeout19+from ..util.retry import Retry20+21+try:22+ from google.appengine.api import urlfetch23+except ImportError:24+ urlfetch = None25+26+27+log = logging.getLogger(__name__)28+29+30+class AppEnginePlatformWarning(HTTPWarning):31+ pass32+33+34+class AppEnginePlatformError(HTTPError):35+ pass36+37+38+class AppEngineManager(RequestMethods):39+ """40+ Connection manager for Google App Engine sandbox applications.41+42+ This manager uses the URLFetch service directly instead of using the43+ emulated httplib, and is subject to URLFetch limitations as described in44+ the App Engine documentation here:45+46+ https://cloud.google.com/appengine/docs/python/urlfetch47+48+ Notably it will raise an AppEnginePlatformError if:49+ * URLFetch is not available.50+ * If you attempt to use this on GAEv2 (Managed VMs), as full socket51+ support is available.52+ * If a request size is more than 10 megabytes.53+ * If a response size is more than 32 megabtyes.54+ * If you use an unsupported request method such as OPTIONS.55+56+ Beyond those cases, it will raise normal urllib3 errors.57+ """58+59+ def __init__(self, headers=None, retries=None, validate_certificate=True):60+ if not urlfetch:61+ raise AppEnginePlatformError(62+ "URLFetch is not available in this environment.")63+64+ if is_prod_appengine_mvms():65+ raise AppEnginePlatformError(66+ "Use normal urllib3.PoolManager instead of AppEngineManager"67+ "on Managed VMs, as using URLFetch is not necessary in "68+ "this environment.")69+70+ warnings.warn(71+ "urllib3 is using URLFetch on Google App Engine sandbox instead "72+ "of sockets. To use sockets directly instead of URLFetch see "73+ "https://urllib3.readthedocs.org/en/latest/contrib.html.",74+ AppEnginePlatformWarning)75+76+ RequestMethods.__init__(self, headers)77+ self.validate_certificate = validate_certificate78+79+ self.retries = retries or Retry.DEFAULT80+81+ def __enter__(self):82+ return self83+84+ def __exit__(self, exc_type, exc_val, exc_tb):85+ # Return False to re-raise any potential exceptions86+ return False87+88+ def urlopen(self, method, url, body=None, headers=None,89+ retries=None, redirect=True, timeout=Timeout.DEFAULT_TIMEOUT,90+ **response_kw):91+92+ retries = self._get_retries(retries, redirect)93+94+ try:95+ response = urlfetch.fetch(96+ url,97+ payload=body,98+ method=method,99+ headers=headers or {},100+ allow_truncated=False,101+ follow_redirects=(102+ redirect and103+ retries.redirect != 0 and104+ retries.total),105+ deadline=self._get_absolute_timeout(timeout),106+ validate_certificate=self.validate_certificate,107+ )108+ except urlfetch.DeadlineExceededError as e:109+ raise TimeoutError(self, e)110+111+ except urlfetch.InvalidURLError as e:112+ if 'too large' in str(e):113+ raise AppEnginePlatformError(114+ "URLFetch request too large, URLFetch only "115+ "supports requests up to 10mb in size.", e)116+ raise ProtocolError(e)117+118+ except urlfetch.DownloadError as e:119+ if 'Too many redirects' in str(e):120+ raise MaxRetryError(self, url, reason=e)121+ raise ProtocolError(e)122+123+ except urlfetch.ResponseTooLargeError as e:124+ raise AppEnginePlatformError(125+ "URLFetch response too large, URLFetch only supports"126+ "responses up to 32mb in size.", e)127+128+ except urlfetch.SSLCertificateError as e:129+ raise SSLError(e)130+131+ except urlfetch.InvalidMethodError as e:132+ raise AppEnginePlatformError(133+ "URLFetch does not support method: %s" % method, e)134+135+ http_response = self._urlfetch_response_to_http_response(136+ response, **response_kw)137+138+ # Check for redirect response139+ if (http_response.get_redirect_location() and140+ retries.raise_on_redirect and redirect):141+ raise MaxRetryError(self, url, "too many redirects")142+143+ # Check if we should retry the HTTP response.144+ if retries.is_forced_retry(method, status_code=http_response.status):145+ retries = retries.increment(146+ method, url, response=http_response, _pool=self)147+ log.info("Forced retry: %s" % url)148+ retries.sleep()149+ return self.urlopen(150+ method, url,151+ body=body, headers=headers,152+ retries=retries, redirect=redirect,153+ timeout=timeout, **response_kw)154+155+ return http_response156+157+ def _urlfetch_response_to_http_response(self, urlfetch_resp, **response_kw):158+159+ if is_prod_appengine():160+ # Production GAE handles deflate encoding automatically, but does161+ # not remove the encoding header.162+ content_encoding = urlfetch_resp.headers.get('content-encoding')163+164+ if content_encoding == 'deflate':165+ del urlfetch_resp.headers['content-encoding']166+167+ return HTTPResponse(168+ # In order for decoding to work, we must present the content as169+ # a file-like object.170+ body=BytesIO(urlfetch_resp.content),171+ headers=urlfetch_resp.headers,172+ status=urlfetch_resp.status_code,173+ **response_kw174+ )175+176+ def _get_absolute_timeout(self, timeout):177+ if timeout is Timeout.DEFAULT_TIMEOUT:178+ return 5 # 5s is the default timeout for URLFetch.179+ if isinstance(timeout, Timeout):180+ if timeout.read is not timeout.connect:181+ warnings.warn(182+ "URLFetch does not support granular timeout settings, "183+ "reverting to total timeout.", AppEnginePlatformWarning)184+ return timeout.total185+ return timeout186+187+ def _get_retries(self, retries, redirect):188+ if not isinstance(retries, Retry):189+ retries = Retry.from_int(190+ retries, redirect=redirect, default=self.retries)191+192+ if retries.connect or retries.read or retries.redirect:193+ warnings.warn(194+ "URLFetch only supports total retries and does not "195+ "recognize connect, read, or redirect retry parameters.",196+ AppEnginePlatformWarning)197+198+ return retries199+200+201+def is_appengine():202+ return (is_local_appengine() or203+ is_prod_appengine() or204+ is_prod_appengine_mvms())205+206+207+def is_appengine_sandbox():208+ return is_appengine() and not is_prod_appengine_mvms()209+210+211+def is_local_appengine():212+ return ('APPENGINE_RUNTIME' in os.environ and213+ 'Development/' in os.environ['SERVER_SOFTWARE'])214+215+216+def is_prod_appengine():217+ return ('APPENGINE_RUNTIME' in os.environ and218+ 'Google App Engine/' in os.environ['SERVER_SOFTWARE'] and219+ not is_prod_appengine_mvms())220+221+222+def is_prod_appengine_mvms():223+ return os.environ.get('GAE_VM', False) == 'true'modified:requests/packages/urllib3/contrib/ntlmpool.py+1 added-6 removed
1-# urllib3/contrib/ntlmpool.py2-# Copyright 2008-2013 Andrey Petrov and contributors (see CONTRIBUTORS.txt)3-#4-# This module is part of urllib3 and is released under5-# the MIT License: http://www.opensource.org/licenses/mit-license.php6-1 """2 NTLM authenticating pool, contributed by erikcederstran3 4 Issue #10, see: http://code.google.com/p/urllib3/issues/detail?id=105 """6+from __future__ import absolute_import7 8 try:9 from http.client import HTTPSConnection10 except ImportError:105 unmodified linesmodified:requests/packages/urllib3/contrib/pyopenssl.py+152 added-188 removed
1-'''SSL with SNI-support for Python 2.1+'''SSL with SNI_-support for Python 2. Follow these instructions if you would2+like to verify SSL certificates in Python 2. Note, the default libraries do3+*not* do certificate checking; you need to do additional work to validate4+certificates yourself.5 6 This needs the following packages installed:7 8 * pyOpenSSL (tested with 0.13)9 * ndg-httpsclient (tested with 0.3.2)10 * pyasn1 (tested with 0.1.6)11 9-To activate it call :func:`~urllib3.contrib.pyopenssl.inject_into_urllib3`.10-This can be done in a ``sitecustomize`` module, or at any other time before11-your application begins using ``urllib3``, like this::12+You can install them with the following command:13 14+ pip install pyopenssl ndg-httpsclient pyasn115+16+To activate certificate checking, call17+:func:`~urllib3.contrib.pyopenssl.inject_into_urllib3` from your Python code18+before you begin making HTTP requests. This can be done in a ``sitecustomize``19+module, or at any other time before your application begins using ``urllib3``,20+like this::21+22 try:23 import urllib3.contrib.pyopenssl24 urllib3.contrib.pyopenssl.inject_into_urllib3()25 except ImportError:26 pass27 28 Now you can use :mod:`urllib3` as you normally would, and it will support SNI29 when the required modules are installed.30+31+Activating this module also has the positive side effect of disabling SSL/TLS32+compression in Python 2 (see `CRIME attack`_).33+34+If you want to configure the default list of supported cipher suites, you can35+set the ``urllib3.contrib.pyopenssl.DEFAULT_SSL_CIPHER_LIST`` variable.36+37+Module Variables38+----------------39+40+:var DEFAULT_SSL_CIPHER_LIST: The list of supported SSL/TLS cipher suites.41+42+.. _sni: https://en.wikipedia.org/wiki/Server_Name_Indication43+.. _crime attack: https://en.wikipedia.org/wiki/CRIME_(security_exploit)44+45 '''46+from __future__ import absolute_import47 48+try:23-from ndg.httpsclient.ssl_peer_verification import SUBJ_ALT_NAME_SUPPORT24-from ndg.httpsclient.subj_alt_name import SubjectAltName49+ from ndg.httpsclient.ssl_peer_verification import SUBJ_ALT_NAME_SUPPORT50+ from ndg.httpsclient.subj_alt_name import SubjectAltName as BaseSubjectAltName51+except SyntaxError as e:52+ raise ImportError(e)53+54 import OpenSSL.SSL55 from pyasn1.codec.der import decoder as der_decoder27-from socket import _fileobject56+from pyasn1.type import univ, constraint57+from socket import _fileobject, timeout, error as SocketError58 import ssl59 import select30-from cStringIO import StringIO60 61 from .. import connection62 from .. import util63 4 unmodified lines68 69 # Map from urllib3 to PyOpenSSL compatible parameter-values.70 _openssl_versions = {71 ssl.PROTOCOL_SSLv23: OpenSSL.SSL.SSLv23_METHOD,43- ssl.PROTOCOL_SSLv3: OpenSSL.SSL.SSLv3_METHOD,72 ssl.PROTOCOL_TLSv1: OpenSSL.SSL.TLSv1_METHOD,73 }74+75+if hasattr(ssl, 'PROTOCOL_TLSv1_1') and hasattr(OpenSSL.SSL, 'TLSv1_1_METHOD'):76+ _openssl_versions[ssl.PROTOCOL_TLSv1_1] = OpenSSL.SSL.TLSv1_1_METHOD77+78+if hasattr(ssl, 'PROTOCOL_TLSv1_2') and hasattr(OpenSSL.SSL, 'TLSv1_2_METHOD'):79+ _openssl_versions[ssl.PROTOCOL_TLSv1_2] = OpenSSL.SSL.TLSv1_2_METHOD80+81+try:82+ _openssl_versions.update({ssl.PROTOCOL_SSLv3: OpenSSL.SSL.SSLv3_METHOD})83+except AttributeError:84+ pass85+86 _openssl_verify = {87 ssl.CERT_NONE: OpenSSL.SSL.VERIFY_NONE,88 ssl.CERT_OPTIONAL: OpenSSL.SSL.VERIFY_PEER,49- ssl.CERT_REQUIRED: OpenSSL.SSL.VERIFY_PEER50- + OpenSSL.SSL.VERIFY_FAIL_IF_NO_PEER_CERT,89+ ssl.CERT_REQUIRED:90+ OpenSSL.SSL.VERIFY_PEER + OpenSSL.SSL.VERIFY_FAIL_IF_NO_PEER_CERT,91 }92 93+DEFAULT_SSL_CIPHER_LIST = util.ssl_.DEFAULT_CIPHERS94 95+# OpenSSL will only write 16K at a time96+SSL_WRITE_BLOCKSIZE = 1638497+98 orig_util_HAS_SNI = util.HAS_SNI99 orig_connection_ssl_wrap_socket = connection.ssl_wrap_socket100 101 10 unmodified lines112 connection.ssl_wrap_socket = orig_connection_ssl_wrap_socket113 util.HAS_SNI = orig_util_HAS_SNI114 115 72-### Note: This is a slightly bug-fixed version of same from ndg-httpsclient.116+# Note: This is a slightly bug-fixed version of same from ndg-httpsclient.117+class SubjectAltName(BaseSubjectAltName):118+ '''ASN.1 implementation for subjectAltNames support'''119+120+ # There is no limit to how many SAN certificates a certificate may have,121+ # however this needs to have some limit so we'll set an arbitrarily high122+ # limit.123+ sizeSpec = univ.SequenceOf.sizeSpec + \124+ constraint.ValueSizeConstraint(1, 1024)125+126+127+# Note: This is a slightly bug-fixed version of same from ndg-httpsclient.128 def get_subj_alt_name(peer_cert):129 # Search through extensions130 dns_name = []131 if not SUBJ_ALT_NAME_SUPPORT:22 unmodified lines154 155 return dns_name156 157 103-class fileobject(_fileobject):104-105- def read(self, size=-1):106- # Use max, disallow tiny reads in a loop as they are very inefficient.107- # We never leave read() with any leftover data from a new recv() call108- # in our internal buffer.109- rbufsize = max(self._rbufsize, self.default_bufsize)110- # Our use of StringIO rather than lists of string objects returned by111- # recv() minimizes memory usage and fragmentation that occurs when112- # rbufsize is large compared to the typical return value of recv().113- buf = self._rbuf114- buf.seek(0, 2) # seek end115- if size < 0:116- # Read until EOF117- self._rbuf = StringIO() # reset _rbuf. we consume it via buf.118- while True:119- try:120- data = self._sock.recv(rbufsize)121- except OpenSSL.SSL.WantReadError:122- continue123- if not data:124- break125- buf.write(data)126- return buf.getvalue()127- else:128- # Read until size bytes or EOF seen, whichever comes first129- buf_len = buf.tell()130- if buf_len >= size:131- # Already have size bytes in our buffer? Extract and return.132- buf.seek(0)133- rv = buf.read(size)134- self._rbuf = StringIO()135- self._rbuf.write(buf.read())136- return rv137-138- self._rbuf = StringIO() # reset _rbuf. we consume it via buf.139- while True:140- left = size - buf_len141- # recv() will malloc the amount of memory given as its142- # parameter even though it often returns much less data143- # than that. The returned data string is short lived144- # as we copy it into a StringIO and free it. This avoids145- # fragmentation issues on many platforms.146- try:147- data = self._sock.recv(left)148- except OpenSSL.SSL.WantReadError:149- continue150- if not data:151- break152- n = len(data)153- if n == size and not buf_len:154- # Shortcut. Avoid buffer data copies when:155- # - We have no data in our buffer.156- # AND157- # - Our call to recv returned exactly the158- # number of bytes we were asked to read.159- return data160- if n == left:161- buf.write(data)162- del data # explicit free163- break164- assert n <= left, "recv(%d) returned %d bytes" % (left, n)165- buf.write(data)166- buf_len += n167- del data # explicit free168- #assert buf_len == buf.tell()169- return buf.getvalue()170-171- def readline(self, size=-1):172- buf = self._rbuf173- buf.seek(0, 2) # seek end174- if buf.tell() > 0:175- # check if we already have it in our buffer176- buf.seek(0)177- bline = buf.readline(size)178- if bline.endswith('\n') or len(bline) == size:179- self._rbuf = StringIO()180- self._rbuf.write(buf.read())181- return bline182- del bline183- if size < 0:184- # Read until \n or EOF, whichever comes first185- if self._rbufsize <= 1:186- # Speed up unbuffered case187- buf.seek(0)188- buffers = [buf.read()]189- self._rbuf = StringIO() # reset _rbuf. we consume it via buf.190- data = None191- recv = self._sock.recv192- while True:193- try:194- while data != "\n":195- data = recv(1)196- if not data:197- break198- buffers.append(data)199- except OpenSSL.SSL.WantReadError:200- continue201- break202- return "".join(buffers)203-204- buf.seek(0, 2) # seek end205- self._rbuf = StringIO() # reset _rbuf. we consume it via buf.206- while True:207- try:208- data = self._sock.recv(self._rbufsize)209- except OpenSSL.SSL.WantReadError:210- continue211- if not data:212- break213- nl = data.find('\n')214- if nl >= 0:215- nl += 1216- buf.write(data[:nl])217- self._rbuf.write(data[nl:])218- del data219- break220- buf.write(data)221- return buf.getvalue()222- else:223- # Read until size bytes or \n or EOF seen, whichever comes first224- buf.seek(0, 2) # seek end225- buf_len = buf.tell()226- if buf_len >= size:227- buf.seek(0)228- rv = buf.read(size)229- self._rbuf = StringIO()230- self._rbuf.write(buf.read())231- return rv232- self._rbuf = StringIO() # reset _rbuf. we consume it via buf.233- while True:234- try:235- data = self._sock.recv(self._rbufsize)236- except OpenSSL.SSL.WantReadError:237- continue238- if not data:239- break240- left = size - buf_len241- # did we just receive a newline?242- nl = data.find('\n', 0, left)243- if nl >= 0:244- nl += 1245- # save the excess data to _rbuf246- self._rbuf.write(data[nl:])247- if buf_len:248- buf.write(data[:nl])249- break250- else:251- # Shortcut. Avoid data copy through buf when returning252- # a substring of our first recv().253- return data[:nl]254- n = len(data)255- if n == size and not buf_len:256- # Shortcut. Avoid data copy through buf when257- # returning exactly all of our first recv().258- return data259- if n >= left:260- buf.write(data[:left])261- self._rbuf.write(data[left:])262- break263- buf.write(data)264- buf_len += n265- #assert buf_len == buf.tell()266- return buf.getvalue()267-268-158 class WrappedSocket(object):270- '''API-compatibility wrapper for Python OpenSSL's Connection-class.'''159+ '''API-compatibility wrapper for Python OpenSSL's Connection-class.160 161+ Note: _makefile_refs, _drop() and _reuse() are needed for the garbage162+ collector of pypy.163+ '''164+272- def __init__(self, connection, socket):165+ def __init__(self, connection, socket, suppress_ragged_eofs=True):166 self.connection = connection167 self.socket = socket168+ self.suppress_ragged_eofs = suppress_ragged_eofs169+ self._makefile_refs = 0170 171 def fileno(self):172 return self.socket.fileno()173 174 def makefile(self, mode, bufsize=-1):280- return fileobject(self.connection, mode, bufsize)175+ self._makefile_refs += 1176+ return _fileobject(self, mode, bufsize, close=True)177 178+ def recv(self, *args, **kwargs):179+ try:180+ data = self.connection.recv(*args, **kwargs)181+ except OpenSSL.SSL.SysCallError as e:182+ if self.suppress_ragged_eofs and e.args == (-1, 'Unexpected EOF'):183+ return b''184+ else:185+ raise SocketError(e)186+ except OpenSSL.SSL.ZeroReturnError as e:187+ if self.connection.get_shutdown() == OpenSSL.SSL.RECEIVED_SHUTDOWN:188+ return b''189+ else:190+ raise191+ except OpenSSL.SSL.WantReadError:192+ rd, wd, ed = select.select(193+ [self.socket], [], [], self.socket.gettimeout())194+ if not rd:195+ raise timeout('The read operation timed out')196+ else:197+ return self.recv(*args, **kwargs)198+ else:199+ return data200+201 def settimeout(self, timeout):202 return self.socket.settimeout(timeout)203 204+ def _send_until_done(self, data):205+ while True:206+ try:207+ return self.connection.send(data)208+ except OpenSSL.SSL.WantWriteError:209+ _, wlist, _ = select.select([], [self.socket], [],210+ self.socket.gettimeout())211+ if not wlist:212+ raise timeout()213+ continue214+215 def sendall(self, data):286- return self.connection.sendall(data)216+ total_sent = 0217+ while total_sent < len(data):218+ sent = self._send_until_done(data[total_sent:total_sent + SSL_WRITE_BLOCKSIZE])219+ total_sent += sent220 221+ def shutdown(self):222+ # FIXME rethrow compatible exceptions should we ever use this223+ self.connection.shutdown()224+225 def close(self):226+ if self._makefile_refs < 1:227+ try:289- return self.connection.shutdown()228+ return self.connection.close()229+ except OpenSSL.SSL.Error:230+ return231+ else:232+ self._makefile_refs -= 1233 234 def getpeercert(self, binary_form=False):235 x509 = self.connection.get_peer_certificate()236 14 unmodified lines251 for value in get_subj_alt_name(x509)252 ]253 }254 255+ def _reuse(self):256+ self._makefile_refs += 1257 258+ def _drop(self):259+ if self._makefile_refs < 1:260+ self.close()261+ else:262+ self._makefile_refs -= 1263+264+265 def _verify_callback(cnx, x509, err_no, err_depth, return_code):266 return err_no == 0267 268 269 def ssl_wrap_socket(sock, keyfile=None, certfile=None, cert_reqs=None,270 ca_certs=None, server_hostname=None,319- ssl_version=None):271+ ssl_version=None, ca_cert_dir=None):272 ctx = OpenSSL.SSL.Context(_openssl_versions[ssl_version])273 if certfile:274+ keyfile = keyfile or certfile # Match behaviour of the normal python ssl library275 ctx.use_certificate_file(certfile)276 if keyfile:277 ctx.use_privatekey_file(keyfile)278 if cert_reqs != ssl.CERT_NONE:279 ctx.set_verify(_openssl_verify[cert_reqs], _verify_callback)327- if ca_certs:280+ if ca_certs or ca_cert_dir:281 try:329- ctx.load_verify_locations(ca_certs, None)282+ ctx.load_verify_locations(ca_certs, ca_cert_dir)283 except OpenSSL.SSL.Error as e:284 raise ssl.SSLError('bad ca_certs: %r' % ca_certs, e)285+ else:286+ ctx.set_default_verify_paths()287 288+ # Disable TLS compression to migitate CRIME attack (issue #309)289+ OP_NO_COMPRESSION = 0x20000290+ ctx.set_options(OP_NO_COMPRESSION)291+292+ # Set list of supported ciphersuites.293+ ctx.set_cipher_list(DEFAULT_SSL_CIPHER_LIST)294+295 cnx = OpenSSL.SSL.Connection(ctx, sock)296 cnx.set_tlsext_host_name(server_hostname)297 cnx.set_connect_state()298 while True:299 try:300 cnx.do_handshake()301 except OpenSSL.SSL.WantReadError:340- select.select([sock], [], [])302+ rd, _, _ = select.select([sock], [], [], sock.gettimeout())303+ if not rd:304+ raise timeout('select timed out')305 continue306 except OpenSSL.SSL.Error as e:343- raise ssl.SSLError('bad handshake', e)307+ raise ssl.SSLError('bad handshake: %r' % e)308 break309 310 return WrappedSocket(cnx, sock)modified:requests/packages/urllib3/packages/ssl_match_hostname/__init__.py+1 added-1 removed
5 unmodified lines6 # Backport of the function from a pypi module7 from backports.ssl_match_hostname import CertificateError, match_hostname8 except ImportError:9 # Our vendored copy10- from _implementation import CertificateError, match_hostname10+ from ._implementation import CertificateError, match_hostname11 12 # Not needed, but documenting what we provide.13 __all__ = ('CertificateError', 'match_hostname')added:requests/packages/urllib3/packages/ssl_match_hostname/.gitignore+1 added
1+envmodified:requests/packages/urllib3/packages/__init__.py+1 added
1 from __future__ import absolute_import2 3 from . import ssl_match_hostname4 5+__all__ = ('ssl_match_hostname', )modified:requests/packages/urllib3/packages/ordered_dict.py-1 removed
1 # Backport of OrderedDict() class that runs on Python 2.4, 2.5, 2.6, 2.7 and pypy.2 # Passes Python2.7's test suite and incorporates all the latest updates.3 # Copyright 2009 Raymond Hettinger, released under the MIT License.4 # http://code.activestate.com/recipes/576693/5-5 try:6 from thread import get_ident as _get_ident7 except ImportError:8 from dummy_thread import get_ident as _get_ident251 unmodified linesadded:requests/packages/urllib3/util/__init__.py+44 added
1+from __future__ import absolute_import2+# For backwards compatibility, provide imports that used to be here.3+from .connection import is_connection_dropped4+from .request import make_headers5+from .response import is_fp_closed6+from .ssl_ import (7+ SSLContext,8+ HAS_SNI,9+ assert_fingerprint,10+ resolve_cert_reqs,11+ resolve_ssl_version,12+ ssl_wrap_socket,13+)14+from .timeout import (15+ current_time,16+ Timeout,17+)18+19+from .retry import Retry20+from .url import (21+ get_host,22+ parse_url,23+ split_first,24+ Url,25+)26+27+__all__ = (28+ 'HAS_SNI',29+ 'SSLContext',30+ 'Retry',31+ 'Timeout',32+ 'Url',33+ 'assert_fingerprint',34+ 'current_time',35+ 'is_connection_dropped',36+ 'is_fp_closed',37+ 'get_host',38+ 'parse_url',39+ 'make_headers',40+ 'resolve_cert_reqs',41+ 'resolve_ssl_version',42+ 'split_first',43+ 'ssl_wrap_socket',44+)added:requests/packages/urllib3/util/connection.py+101 added
1+from __future__ import absolute_import2+import socket3+try:4+ from select import poll, POLLIN5+except ImportError: # `poll` doesn't exist on OSX and other platforms6+ poll = False7+ try:8+ from select import select9+ except ImportError: # `select` doesn't exist on AppEngine.10+ select = False11+12+13+def is_connection_dropped(conn): # Platform-specific14+ """15+ Returns True if the connection is dropped and should be closed.16+17+ :param conn:18+ :class:`httplib.HTTPConnection` object.19+20+ Note: For platforms like AppEngine, this will always return ``False`` to21+ let the platform handle connection recycling transparently for us.22+ """23+ sock = getattr(conn, 'sock', False)24+ if sock is False: # Platform-specific: AppEngine25+ return False26+ if sock is None: # Connection already closed (such as by httplib).27+ return True28+29+ if not poll:30+ if not select: # Platform-specific: AppEngine31+ return False32+33+ try:34+ return select([sock], [], [], 0.0)[0]35+ except socket.error:36+ return True37+38+ # This version is better on platforms that support it.39+ p = poll()40+ p.register(sock, POLLIN)41+ for (fno, ev) in p.poll(0.0):42+ if fno == sock.fileno():43+ # Either data is buffered (bad), or the connection is dropped.44+ return True45+46+47+# This function is copied from socket.py in the Python 2.7 standard48+# library test suite. Added to its signature is only `socket_options`.49+def create_connection(address, timeout=socket._GLOBAL_DEFAULT_TIMEOUT,50+ source_address=None, socket_options=None):51+ """Connect to *address* and return the socket object.52+53+ Convenience function. Connect to *address* (a 2-tuple ``(host,54+ port)``) and return the socket object. Passing the optional55+ *timeout* parameter will set the timeout on the socket instance56+ before attempting to connect. If no *timeout* is supplied, the57+ global default timeout setting returned by :func:`getdefaulttimeout`58+ is used. If *source_address* is set it must be a tuple of (host, port)59+ for the socket to bind as a source address before making the connection.60+ An host of '' or port 0 tells the OS to use the default.61+ """62+63+ host, port = address64+ if host.startswith('['):65+ host = host.strip('[]')66+ err = None67+ for res in socket.getaddrinfo(host, port, 0, socket.SOCK_STREAM):68+ af, socktype, proto, canonname, sa = res69+ sock = None70+ try:71+ sock = socket.socket(af, socktype, proto)72+73+ # If provided, set socket level options before connecting.74+ # This is the only addition urllib3 makes to this function.75+ _set_socket_options(sock, socket_options)76+77+ if timeout is not socket._GLOBAL_DEFAULT_TIMEOUT:78+ sock.settimeout(timeout)79+ if source_address:80+ sock.bind(source_address)81+ sock.connect(sa)82+ return sock83+84+ except socket.error as e:85+ err = e86+ if sock is not None:87+ sock.close()88+ sock = None89+90+ if err is not None:91+ raise err92+93+ raise socket.error("getaddrinfo returns an empty list")94+95+96+def _set_socket_options(sock, options):97+ if options is None:98+ return99+100+ for opt in options:101+ sock.setsockopt(*opt)added:requests/packages/urllib3/util/request.py+72 added
1+from __future__ import absolute_import2+from base64 import b64encode3+4+from ..packages.six import b5+6+ACCEPT_ENCODING = 'gzip,deflate'7+8+9+def make_headers(keep_alive=None, accept_encoding=None, user_agent=None,10+ basic_auth=None, proxy_basic_auth=None, disable_cache=None):11+ """12+ Shortcuts for generating request headers.13+14+ :param keep_alive:15+ If ``True``, adds 'connection: keep-alive' header.16+17+ :param accept_encoding:18+ Can be a boolean, list, or string.19+ ``True`` translates to 'gzip,deflate'.20+ List will get joined by comma.21+ String will be used as provided.22+23+ :param user_agent:24+ String representing the user-agent you want, such as25+ "python-urllib3/0.6"26+27+ :param basic_auth:28+ Colon-separated username:password string for 'authorization: basic ...'29+ auth header.30+31+ :param proxy_basic_auth:32+ Colon-separated username:password string for 'proxy-authorization: basic ...'33+ auth header.34+35+ :param disable_cache:36+ If ``True``, adds 'cache-control: no-cache' header.37+38+ Example::39+40+ >>> make_headers(keep_alive=True, user_agent="Batman/1.0")41+ {'connection': 'keep-alive', 'user-agent': 'Batman/1.0'}42+ >>> make_headers(accept_encoding=True)43+ {'accept-encoding': 'gzip,deflate'}44+ """45+ headers = {}46+ if accept_encoding:47+ if isinstance(accept_encoding, str):48+ pass49+ elif isinstance(accept_encoding, list):50+ accept_encoding = ','.join(accept_encoding)51+ else:52+ accept_encoding = ACCEPT_ENCODING53+ headers['accept-encoding'] = accept_encoding54+55+ if user_agent:56+ headers['user-agent'] = user_agent57+58+ if keep_alive:59+ headers['connection'] = 'keep-alive'60+61+ if basic_auth:62+ headers['authorization'] = 'Basic ' + \63+ b64encode(b(basic_auth)).decode('utf-8')64+65+ if proxy_basic_auth:66+ headers['proxy-authorization'] = 'Basic ' + \67+ b64encode(b(proxy_basic_auth)).decode('utf-8')68+69+ if disable_cache:70+ headers['cache-control'] = 'no-cache'71+72+ return headersadded:requests/packages/urllib3/util/response.py+74 added
1+from __future__ import absolute_import2+from ..packages.six.moves import http_client as httplib3+4+from ..exceptions import HeaderParsingError5+6+7+def is_fp_closed(obj):8+ """9+ Checks whether a given file-like object is closed.10+11+ :param obj:12+ The file-like object to check.13+ """14+15+ try:16+ # Check via the official file-like-object way.17+ return obj.closed18+ except AttributeError:19+ pass20+21+ try:22+ # Check if the object is a container for another file-like object that23+ # gets released on exhaustion (e.g. HTTPResponse).24+ return obj.fp is None25+ except AttributeError:26+ pass27+28+ raise ValueError("Unable to determine whether fp is closed.")29+30+31+def assert_header_parsing(headers):32+ """33+ Asserts whether all headers have been successfully parsed.34+ Extracts encountered errors from the result of parsing headers.35+36+ Only works on Python 3.37+38+ :param headers: Headers to verify.39+ :type headers: `httplib.HTTPMessage`.40+41+ :raises urllib3.exceptions.HeaderParsingError:42+ If parsing errors are found.43+ """44+45+ # This will fail silently if we pass in the wrong kind of parameter.46+ # To make debugging easier add an explicit check.47+ if not isinstance(headers, httplib.HTTPMessage):48+ raise TypeError('expected httplib.Message, got {0}.'.format(49+ type(headers)))50+51+ defects = getattr(headers, 'defects', None)52+ get_payload = getattr(headers, 'get_payload', None)53+54+ unparsed_data = None55+ if get_payload: # Platform-specific: Python 3.56+ unparsed_data = get_payload()57+58+ if defects or unparsed_data:59+ raise HeaderParsingError(defects=defects, unparsed_data=unparsed_data)60+61+62+def is_response_to_head(response):63+ """64+ Checks, wether a the request of a response has been a HEAD-request.65+ Handles the quirks of AppEngine.66+67+ :param conn:68+ :type conn: :class:`httplib.HTTPResponse`69+ """70+ # FIXME: Can we do this somehow without accessing private httplib _method?71+ method = response._method72+ if isinstance(method, int): # Platform-specific: Appengine73+ return method == 374+ return method.upper() == 'HEAD'added:requests/packages/urllib3/util/retry.py+286 added
1+from __future__ import absolute_import2+import time3+import logging4+5+from ..exceptions import (6+ ConnectTimeoutError,7+ MaxRetryError,8+ ProtocolError,9+ ReadTimeoutError,10+ ResponseError,11+)12+from ..packages import six13+14+15+log = logging.getLogger(__name__)16+17+18+class Retry(object):19+ """ Retry configuration.20+21+ Each retry attempt will create a new Retry object with updated values, so22+ they can be safely reused.23+24+ Retries can be defined as a default for a pool::25+26+ retries = Retry(connect=5, read=2, redirect=5)27+ http = PoolManager(retries=retries)28+ response = http.request('GET', 'http://example.com/')29+30+ Or per-request (which overrides the default for the pool)::31+32+ response = http.request('GET', 'http://example.com/', retries=Retry(10))33+34+ Retries can be disabled by passing ``False``::35+36+ response = http.request('GET', 'http://example.com/', retries=False)37+38+ Errors will be wrapped in :class:`~urllib3.exceptions.MaxRetryError` unless39+ retries are disabled, in which case the causing exception will be raised.40+41+ :param int total:42+ Total number of retries to allow. Takes precedence over other counts.43+44+ Set to ``None`` to remove this constraint and fall back on other45+ counts. It's a good idea to set this to some sensibly-high value to46+ account for unexpected edge cases and avoid infinite retry loops.47+48+ Set to ``0`` to fail on the first retry.49+50+ Set to ``False`` to disable and imply ``raise_on_redirect=False``.51+52+ :param int connect:53+ How many connection-related errors to retry on.54+55+ These are errors raised before the request is sent to the remote server,56+ which we assume has not triggered the server to process the request.57+58+ Set to ``0`` to fail on the first retry of this type.59+60+ :param int read:61+ How many times to retry on read errors.62+63+ These errors are raised after the request was sent to the server, so the64+ request may have side-effects.65+66+ Set to ``0`` to fail on the first retry of this type.67+68+ :param int redirect:69+ How many redirects to perform. Limit this to avoid infinite redirect70+ loops.71+72+ A redirect is a HTTP response with a status code 301, 302, 303, 307 or73+ 308.74+75+ Set to ``0`` to fail on the first retry of this type.76+77+ Set to ``False`` to disable and imply ``raise_on_redirect=False``.78+79+ :param iterable method_whitelist:80+ Set of uppercased HTTP method verbs that we should retry on.81+82+ By default, we only retry on methods which are considered to be83+ indempotent (multiple requests with the same parameters end with the84+ same state). See :attr:`Retry.DEFAULT_METHOD_WHITELIST`.85+86+ :param iterable status_forcelist:87+ A set of HTTP status codes that we should force a retry on.88+89+ By default, this is disabled with ``None``.90+91+ :param float backoff_factor:92+ A backoff factor to apply between attempts. urllib3 will sleep for::93+94+ {backoff factor} * (2 ^ ({number of total retries} - 1))95+96+ seconds. If the backoff_factor is 0.1, then :func:`.sleep` will sleep97+ for [0.1s, 0.2s, 0.4s, ...] between retries. It will never be longer98+ than :attr:`Retry.BACKOFF_MAX`.99+100+ By default, backoff is disabled (set to 0).101+102+ :param bool raise_on_redirect: Whether, if the number of redirects is103+ exhausted, to raise a MaxRetryError, or to return a response with a104+ response code in the 3xx range.105+ """106+107+ DEFAULT_METHOD_WHITELIST = frozenset([108+ 'HEAD', 'GET', 'PUT', 'DELETE', 'OPTIONS', 'TRACE'])109+110+ #: Maximum backoff time.111+ BACKOFF_MAX = 120112+113+ def __init__(self, total=10, connect=None, read=None, redirect=None,114+ method_whitelist=DEFAULT_METHOD_WHITELIST, status_forcelist=None,115+ backoff_factor=0, raise_on_redirect=True, _observed_errors=0):116+117+ self.total = total118+ self.connect = connect119+ self.read = read120+121+ if redirect is False or total is False:122+ redirect = 0123+ raise_on_redirect = False124+125+ self.redirect = redirect126+ self.status_forcelist = status_forcelist or set()127+ self.method_whitelist = method_whitelist128+ self.backoff_factor = backoff_factor129+ self.raise_on_redirect = raise_on_redirect130+ self._observed_errors = _observed_errors # TODO: use .history instead?131+132+ def new(self, **kw):133+ params = dict(134+ total=self.total,135+ connect=self.connect, read=self.read, redirect=self.redirect,136+ method_whitelist=self.method_whitelist,137+ status_forcelist=self.status_forcelist,138+ backoff_factor=self.backoff_factor,139+ raise_on_redirect=self.raise_on_redirect,140+ _observed_errors=self._observed_errors,141+ )142+ params.update(kw)143+ return type(self)(**params)144+145+ @classmethod146+ def from_int(cls, retries, redirect=True, default=None):147+ """ Backwards-compatibility for the old retries format."""148+ if retries is None:149+ retries = default if default is not None else cls.DEFAULT150+151+ if isinstance(retries, Retry):152+ return retries153+154+ redirect = bool(redirect) and None155+ new_retries = cls(retries, redirect=redirect)156+ log.debug("Converted retries value: %r -> %r" % (retries, new_retries))157+ return new_retries158+159+ def get_backoff_time(self):160+ """ Formula for computing the current backoff161+162+ :rtype: float163+ """164+ if self._observed_errors <= 1:165+ return 0166+167+ backoff_value = self.backoff_factor * (2 ** (self._observed_errors - 1))168+ return min(self.BACKOFF_MAX, backoff_value)169+170+ def sleep(self):171+ """ Sleep between retry attempts using an exponential backoff.172+173+ By default, the backoff factor is 0 and this method will return174+ immediately.175+ """176+ backoff = self.get_backoff_time()177+ if backoff <= 0:178+ return179+ time.sleep(backoff)180+181+ def _is_connection_error(self, err):182+ """ Errors when we're fairly sure that the server did not receive the183+ request, so it should be safe to retry.184+ """185+ return isinstance(err, ConnectTimeoutError)186+187+ def _is_read_error(self, err):188+ """ Errors that occur after the request has been started, so we should189+ assume that the server began processing it.190+ """191+ return isinstance(err, (ReadTimeoutError, ProtocolError))192+193+ def is_forced_retry(self, method, status_code):194+ """ Is this method/status code retryable? (Based on method/codes whitelists)195+ """196+ if self.method_whitelist and method.upper() not in self.method_whitelist:197+ return False198+199+ return self.status_forcelist and status_code in self.status_forcelist200+201+ def is_exhausted(self):202+ """ Are we out of retries? """203+ retry_counts = (self.total, self.connect, self.read, self.redirect)204+ retry_counts = list(filter(None, retry_counts))205+ if not retry_counts:206+ return False207+208+ return min(retry_counts) < 0209+210+ def increment(self, method=None, url=None, response=None, error=None,211+ _pool=None, _stacktrace=None):212+ """ Return a new Retry object with incremented retry counters.213+214+ :param response: A response object, or None, if the server did not215+ return a response.216+ :type response: :class:`~urllib3.response.HTTPResponse`217+ :param Exception error: An error encountered during the request, or218+ None if the response was received successfully.219+220+ :return: A new ``Retry`` object.221+ """222+ if self.total is False and error:223+ # Disabled, indicate to re-raise the error.224+ raise six.reraise(type(error), error, _stacktrace)225+226+ total = self.total227+ if total is not None:228+ total -= 1229+230+ _observed_errors = self._observed_errors231+ connect = self.connect232+ read = self.read233+ redirect = self.redirect234+ cause = 'unknown'235+236+ if error and self._is_connection_error(error):237+ # Connect retry?238+ if connect is False:239+ raise six.reraise(type(error), error, _stacktrace)240+ elif connect is not None:241+ connect -= 1242+ _observed_errors += 1243+244+ elif error and self._is_read_error(error):245+ # Read retry?246+ if read is False:247+ raise six.reraise(type(error), error, _stacktrace)248+ elif read is not None:249+ read -= 1250+ _observed_errors += 1251+252+ elif response and response.get_redirect_location():253+ # Redirect retry?254+ if redirect is not None:255+ redirect -= 1256+ cause = 'too many redirects'257+258+ else:259+ # Incrementing because of a server error like a 500 in260+ # status_forcelist and a the given method is in the whitelist261+ _observed_errors += 1262+ cause = ResponseError.GENERIC_ERROR263+ if response and response.status:264+ cause = ResponseError.SPECIFIC_ERROR.format(265+ status_code=response.status)266+267+ new_retry = self.new(268+ total=total,269+ connect=connect, read=read, redirect=redirect,270+ _observed_errors=_observed_errors)271+272+ if new_retry.is_exhausted():273+ raise MaxRetryError(_pool, url, error or ResponseError(cause))274+275+ log.debug("Incremented Retry for (url='%s'): %r" % (url, new_retry))276+277+ return new_retry278+279+ def __repr__(self):280+ return ('{cls.__name__}(total={self.total}, connect={self.connect}, '281+ 'read={self.read}, redirect={self.redirect})').format(282+ cls=type(self), self=self)283+284+285+# For backwards compatibility (equivalent to pre-v1.9):286+Retry.DEFAULT = Retry(3)added:requests/packages/urllib3/util/ssl_.py+317 added
1+from __future__ import absolute_import2+import errno3+import warnings4+import hmac5+6+from binascii import hexlify, unhexlify7+from hashlib import md5, sha1, sha2568+9+from ..exceptions import SSLError, InsecurePlatformWarning, SNIMissingWarning10+11+12+SSLContext = None13+HAS_SNI = False14+create_default_context = None15+16+# Maps the length of a digest to a possible hash function producing this digest17+HASHFUNC_MAP = {18+ 32: md5,19+ 40: sha1,20+ 64: sha256,21+}22+23+24+def _const_compare_digest_backport(a, b):25+ """26+ Compare two digests of equal length in constant time.27+28+ The digests must be of type str/bytes.29+ Returns True if the digests match, and False otherwise.30+ """31+ result = abs(len(a) - len(b))32+ for l, r in zip(bytearray(a), bytearray(b)):33+ result |= l ^ r34+ return result == 035+36+37+_const_compare_digest = getattr(hmac, 'compare_digest',38+ _const_compare_digest_backport)39+40+41+try: # Test for SSL features42+ import ssl43+ from ssl import wrap_socket, CERT_NONE, PROTOCOL_SSLv2344+ from ssl import HAS_SNI # Has SNI?45+except ImportError:46+ pass47+48+49+try:50+ from ssl import OP_NO_SSLv2, OP_NO_SSLv3, OP_NO_COMPRESSION51+except ImportError:52+ OP_NO_SSLv2, OP_NO_SSLv3 = 0x1000000, 0x200000053+ OP_NO_COMPRESSION = 0x2000054+55+# A secure default.56+# Sources for more information on TLS ciphers:57+#58+# - https://wiki.mozilla.org/Security/Server_Side_TLS59+# - https://www.ssllabs.com/projects/best-practices/index.html60+# - https://hynek.me/articles/hardening-your-web-servers-ssl-ciphers/61+#62+# The general intent is:63+# - Prefer cipher suites that offer perfect forward secrecy (DHE/ECDHE),64+# - prefer ECDHE over DHE for better performance,65+# - prefer any AES-GCM over any AES-CBC for better performance and security,66+# - use 3DES as fallback which is secure but slow,67+# - disable NULL authentication, MD5 MACs and DSS for security reasons.68+DEFAULT_CIPHERS = (69+ 'ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:ECDH+HIGH:'70+ 'DH+HIGH:ECDH+3DES:DH+3DES:RSA+AESGCM:RSA+AES:RSA+HIGH:RSA+3DES:!aNULL:'71+ '!eNULL:!MD5'72+)73+74+try:75+ from ssl import SSLContext # Modern SSL?76+except ImportError:77+ import sys78+79+ class SSLContext(object): # Platform-specific: Python 2 & 3.180+ supports_set_ciphers = ((2, 7) <= sys.version_info < (3,) or81+ (3, 2) <= sys.version_info)82+83+ def __init__(self, protocol_version):84+ self.protocol = protocol_version85+ # Use default values from a real SSLContext86+ self.check_hostname = False87+ self.verify_mode = ssl.CERT_NONE88+ self.ca_certs = None89+ self.options = 090+ self.certfile = None91+ self.keyfile = None92+ self.ciphers = None93+94+ def load_cert_chain(self, certfile, keyfile):95+ self.certfile = certfile96+ self.keyfile = keyfile97+98+ def load_verify_locations(self, cafile=None, capath=None):99+ self.ca_certs = cafile100+101+ if capath is not None:102+ raise SSLError("CA directories not supported in older Pythons")103+104+ def set_ciphers(self, cipher_suite):105+ if not self.supports_set_ciphers:106+ raise TypeError(107+ 'Your version of Python does not support setting '108+ 'a custom cipher suite. Please upgrade to Python '109+ '2.7, 3.2, or later if you need this functionality.'110+ )111+ self.ciphers = cipher_suite112+113+ def wrap_socket(self, socket, server_hostname=None):114+ warnings.warn(115+ 'A true SSLContext object is not available. This prevents '116+ 'urllib3 from configuring SSL appropriately and may cause '117+ 'certain SSL connections to fail. For more information, see '118+ 'https://urllib3.readthedocs.org/en/latest/security.html'119+ '#insecureplatformwarning.',120+ InsecurePlatformWarning121+ )122+ kwargs = {123+ 'keyfile': self.keyfile,124+ 'certfile': self.certfile,125+ 'ca_certs': self.ca_certs,126+ 'cert_reqs': self.verify_mode,127+ 'ssl_version': self.protocol,128+ }129+ if self.supports_set_ciphers: # Platform-specific: Python 2.7+130+ return wrap_socket(socket, ciphers=self.ciphers, **kwargs)131+ else: # Platform-specific: Python 2.6132+ return wrap_socket(socket, **kwargs)133+134+135+def assert_fingerprint(cert, fingerprint):136+ """137+ Checks if given fingerprint matches the supplied certificate.138+139+ :param cert:140+ Certificate as bytes object.141+ :param fingerprint:142+ Fingerprint as string of hexdigits, can be interspersed by colons.143+ """144+145+ fingerprint = fingerprint.replace(':', '').lower()146+ digest_length = len(fingerprint)147+ hashfunc = HASHFUNC_MAP.get(digest_length)148+ if not hashfunc:149+ raise SSLError(150+ 'Fingerprint of invalid length: {0}'.format(fingerprint))151+152+ # We need encode() here for py32; works on py2 and p33.153+ fingerprint_bytes = unhexlify(fingerprint.encode())154+155+ cert_digest = hashfunc(cert).digest()156+157+ if not _const_compare_digest(cert_digest, fingerprint_bytes):158+ raise SSLError('Fingerprints did not match. Expected "{0}", got "{1}".'159+ .format(fingerprint, hexlify(cert_digest)))160+161+162+def resolve_cert_reqs(candidate):163+ """164+ Resolves the argument to a numeric constant, which can be passed to165+ the wrap_socket function/method from the ssl module.166+ Defaults to :data:`ssl.CERT_NONE`.167+ If given a string it is assumed to be the name of the constant in the168+ :mod:`ssl` module or its abbrevation.169+ (So you can specify `REQUIRED` instead of `CERT_REQUIRED`.170+ If it's neither `None` nor a string we assume it is already the numeric171+ constant which can directly be passed to wrap_socket.172+ """173+ if candidate is None:174+ return CERT_NONE175+176+ if isinstance(candidate, str):177+ res = getattr(ssl, candidate, None)178+ if res is None:179+ res = getattr(ssl, 'CERT_' + candidate)180+ return res181+182+ return candidate183+184+185+def resolve_ssl_version(candidate):186+ """187+ like resolve_cert_reqs188+ """189+ if candidate is None:190+ return PROTOCOL_SSLv23191+192+ if isinstance(candidate, str):193+ res = getattr(ssl, candidate, None)194+ if res is None:195+ res = getattr(ssl, 'PROTOCOL_' + candidate)196+ return res197+198+ return candidate199+200+201+def create_urllib3_context(ssl_version=None, cert_reqs=None,202+ options=None, ciphers=None):203+ """All arguments have the same meaning as ``ssl_wrap_socket``.204+205+ By default, this function does a lot of the same work that206+ ``ssl.create_default_context`` does on Python 3.4+. It:207+208+ - Disables SSLv2, SSLv3, and compression209+ - Sets a restricted set of server ciphers210+211+ If you wish to enable SSLv3, you can do::212+213+ from urllib3.util import ssl_214+ context = ssl_.create_urllib3_context()215+ context.options &= ~ssl_.OP_NO_SSLv3216+217+ You can do the same to enable compression (substituting ``COMPRESSION``218+ for ``SSLv3`` in the last line above).219+220+ :param ssl_version:221+ The desired protocol version to use. This will default to222+ PROTOCOL_SSLv23 which will negotiate the highest protocol that both223+ the server and your installation of OpenSSL support.224+ :param cert_reqs:225+ Whether to require the certificate verification. This defaults to226+ ``ssl.CERT_REQUIRED``.227+ :param options:228+ Specific OpenSSL options. These default to ``ssl.OP_NO_SSLv2``,229+ ``ssl.OP_NO_SSLv3``, ``ssl.OP_NO_COMPRESSION``.230+ :param ciphers:231+ Which cipher suites to allow the server to select.232+ :returns:233+ Constructed SSLContext object with specified options234+ :rtype: SSLContext235+ """236+ context = SSLContext(ssl_version or ssl.PROTOCOL_SSLv23)237+238+ # Setting the default here, as we may have no ssl module on import239+ cert_reqs = ssl.CERT_REQUIRED if cert_reqs is None else cert_reqs240+241+ if options is None:242+ options = 0243+ # SSLv2 is easily broken and is considered harmful and dangerous244+ options |= OP_NO_SSLv2245+ # SSLv3 has several problems and is now dangerous246+ options |= OP_NO_SSLv3247+ # Disable compression to prevent CRIME attacks for OpenSSL 1.0+248+ # (issue #309)249+ options |= OP_NO_COMPRESSION250+251+ context.options |= options252+253+ if getattr(context, 'supports_set_ciphers', True): # Platform-specific: Python 2.6254+ context.set_ciphers(ciphers or DEFAULT_CIPHERS)255+256+ context.verify_mode = cert_reqs257+ if getattr(context, 'check_hostname', None) is not None: # Platform-specific: Python 3.2258+ # We do our own verification, including fingerprints and alternative259+ # hostnames. So disable it here260+ context.check_hostname = False261+ return context262+263+264+def ssl_wrap_socket(sock, keyfile=None, certfile=None, cert_reqs=None,265+ ca_certs=None, server_hostname=None,266+ ssl_version=None, ciphers=None, ssl_context=None,267+ ca_cert_dir=None):268+ """269+ All arguments except for server_hostname, ssl_context, and ca_cert_dir have270+ the same meaning as they do when using :func:`ssl.wrap_socket`.271+272+ :param server_hostname:273+ When SNI is supported, the expected hostname of the certificate274+ :param ssl_context:275+ A pre-made :class:`SSLContext` object. If none is provided, one will276+ be created using :func:`create_urllib3_context`.277+ :param ciphers:278+ A string of ciphers we wish the client to support. This is not279+ supported on Python 2.6 as the ssl module does not support it.280+ :param ca_cert_dir:281+ A directory containing CA certificates in multiple separate files, as282+ supported by OpenSSL's -CApath flag or the capath argument to283+ SSLContext.load_verify_locations().284+ """285+ context = ssl_context286+ if context is None:287+ context = create_urllib3_context(ssl_version, cert_reqs,288+ ciphers=ciphers)289+290+ if ca_certs or ca_cert_dir:291+ try:292+ context.load_verify_locations(ca_certs, ca_cert_dir)293+ except IOError as e: # Platform-specific: Python 2.6, 2.7, 3.2294+ raise SSLError(e)295+ # Py33 raises FileNotFoundError which subclasses OSError296+ # These are not equivalent unless we check the errno attribute297+ except OSError as e: # Platform-specific: Python 3.3 and beyond298+ if e.errno == errno.ENOENT:299+ raise SSLError(e)300+ raise301+302+ if certfile:303+ context.load_cert_chain(certfile, keyfile)304+ if HAS_SNI: # Platform-specific: OpenSSL with enabled SNI305+ return context.wrap_socket(sock, server_hostname=server_hostname)306+307+ warnings.warn(308+ 'An HTTPS request has been made, but the SNI (Subject Name '309+ 'Indication) extension to TLS is not available on this platform. '310+ 'This may cause the server to present an incorrect TLS '311+ 'certificate, which can cause validation failures. For more '312+ 'information, see '313+ 'https://urllib3.readthedocs.org/en/latest/security.html'314+ '#snimissingwarning.',315+ SNIMissingWarning316+ )317+ return context.wrap_socket(sock)added:requests/packages/urllib3/util/timeout.py+242 added
1+from __future__ import absolute_import2+# The default socket timeout, used by httplib to indicate that no timeout was3+# specified by the user4+from socket import _GLOBAL_DEFAULT_TIMEOUT5+import time6+7+from ..exceptions import TimeoutStateError8+9+# A sentinel value to indicate that no timeout was specified by the user in10+# urllib311+_Default = object()12+13+14+def current_time():15+ """16+ Retrieve the current time. This function is mocked out in unit testing.17+ """18+ return time.time()19+20+21+class Timeout(object):22+ """ Timeout configuration.23+24+ Timeouts can be defined as a default for a pool::25+26+ timeout = Timeout(connect=2.0, read=7.0)27+ http = PoolManager(timeout=timeout)28+ response = http.request('GET', 'http://example.com/')29+30+ Or per-request (which overrides the default for the pool)::31+32+ response = http.request('GET', 'http://example.com/', timeout=Timeout(10))33+34+ Timeouts can be disabled by setting all the parameters to ``None``::35+36+ no_timeout = Timeout(connect=None, read=None)37+ response = http.request('GET', 'http://example.com/, timeout=no_timeout)38+39+40+ :param total:41+ This combines the connect and read timeouts into one; the read timeout42+ will be set to the time leftover from the connect attempt. In the43+ event that both a connect timeout and a total are specified, or a read44+ timeout and a total are specified, the shorter timeout will be applied.45+46+ Defaults to None.47+48+ :type total: integer, float, or None49+50+ :param connect:51+ The maximum amount of time to wait for a connection attempt to a server52+ to succeed. Omitting the parameter will default the connect timeout to53+ the system default, probably `the global default timeout in socket.py54+ <http://hg.python.org/cpython/file/603b4d593758/Lib/socket.py#l535>`_.55+ None will set an infinite timeout for connection attempts.56+57+ :type connect: integer, float, or None58+59+ :param read:60+ The maximum amount of time to wait between consecutive61+ read operations for a response from the server. Omitting62+ the parameter will default the read timeout to the system63+ default, probably `the global default timeout in socket.py64+ <http://hg.python.org/cpython/file/603b4d593758/Lib/socket.py#l535>`_.65+ None will set an infinite timeout.66+67+ :type read: integer, float, or None68+69+ .. note::70+71+ Many factors can affect the total amount of time for urllib3 to return72+ an HTTP response.73+74+ For example, Python's DNS resolver does not obey the timeout specified75+ on the socket. Other factors that can affect total request time include76+ high CPU load, high swap, the program running at a low priority level,77+ or other behaviors.78+79+ In addition, the read and total timeouts only measure the time between80+ read operations on the socket connecting the client and the server,81+ not the total amount of time for the request to return a complete82+ response. For most requests, the timeout is raised because the server83+ has not sent the first byte in the specified time. This is not always84+ the case; if a server streams one byte every fifteen seconds, a timeout85+ of 20 seconds will not trigger, even though the request will take86+ several minutes to complete.87+88+ If your goal is to cut off any request after a set amount of wall clock89+ time, consider having a second "watcher" thread to cut off a slow90+ request.91+ """92+93+ #: A sentinel object representing the default timeout value94+ DEFAULT_TIMEOUT = _GLOBAL_DEFAULT_TIMEOUT95+96+ def __init__(self, total=None, connect=_Default, read=_Default):97+ self._connect = self._validate_timeout(connect, 'connect')98+ self._read = self._validate_timeout(read, 'read')99+ self.total = self._validate_timeout(total, 'total')100+ self._start_connect = None101+102+ def __str__(self):103+ return '%s(connect=%r, read=%r, total=%r)' % (104+ type(self).__name__, self._connect, self._read, self.total)105+106+ @classmethod107+ def _validate_timeout(cls, value, name):108+ """ Check that a timeout attribute is valid.109+110+ :param value: The timeout value to validate111+ :param name: The name of the timeout attribute to validate. This is112+ used to specify in error messages.113+ :return: The validated and casted version of the given value.114+ :raises ValueError: If the type is not an integer or a float, or if it115+ is a numeric value less than zero.116+ """117+ if value is _Default:118+ return cls.DEFAULT_TIMEOUT119+120+ if value is None or value is cls.DEFAULT_TIMEOUT:121+ return value122+123+ try:124+ float(value)125+ except (TypeError, ValueError):126+ raise ValueError("Timeout value %s was %s, but it must be an "127+ "int or float." % (name, value))128+129+ try:130+ if value < 0:131+ raise ValueError("Attempted to set %s timeout to %s, but the "132+ "timeout cannot be set to a value less "133+ "than 0." % (name, value))134+ except TypeError: # Python 3135+ raise ValueError("Timeout value %s was %s, but it must be an "136+ "int or float." % (name, value))137+138+ return value139+140+ @classmethod141+ def from_float(cls, timeout):142+ """ Create a new Timeout from a legacy timeout value.143+144+ The timeout value used by httplib.py sets the same timeout on the145+ connect(), and recv() socket requests. This creates a :class:`Timeout`146+ object that sets the individual timeouts to the ``timeout`` value147+ passed to this function.148+149+ :param timeout: The legacy timeout value.150+ :type timeout: integer, float, sentinel default object, or None151+ :return: Timeout object152+ :rtype: :class:`Timeout`153+ """154+ return Timeout(read=timeout, connect=timeout)155+156+ def clone(self):157+ """ Create a copy of the timeout object158+159+ Timeout properties are stored per-pool but each request needs a fresh160+ Timeout object to ensure each one has its own start/stop configured.161+162+ :return: a copy of the timeout object163+ :rtype: :class:`Timeout`164+ """165+ # We can't use copy.deepcopy because that will also create a new object166+ # for _GLOBAL_DEFAULT_TIMEOUT, which socket.py uses as a sentinel to167+ # detect the user default.168+ return Timeout(connect=self._connect, read=self._read,169+ total=self.total)170+171+ def start_connect(self):172+ """ Start the timeout clock, used during a connect() attempt173+174+ :raises urllib3.exceptions.TimeoutStateError: if you attempt175+ to start a timer that has been started already.176+ """177+ if self._start_connect is not None:178+ raise TimeoutStateError("Timeout timer has already been started.")179+ self._start_connect = current_time()180+ return self._start_connect181+182+ def get_connect_duration(self):183+ """ Gets the time elapsed since the call to :meth:`start_connect`.184+185+ :return: Elapsed time.186+ :rtype: float187+ :raises urllib3.exceptions.TimeoutStateError: if you attempt188+ to get duration for a timer that hasn't been started.189+ """190+ if self._start_connect is None:191+ raise TimeoutStateError("Can't get connect duration for timer "192+ "that has not started.")193+ return current_time() - self._start_connect194+195+ @property196+ def connect_timeout(self):197+ """ Get the value to use when setting a connection timeout.198+199+ This will be a positive float or integer, the value None200+ (never timeout), or the default system timeout.201+202+ :return: Connect timeout.203+ :rtype: int, float, :attr:`Timeout.DEFAULT_TIMEOUT` or None204+ """205+ if self.total is None:206+ return self._connect207+208+ if self._connect is None or self._connect is self.DEFAULT_TIMEOUT:209+ return self.total210+211+ return min(self._connect, self.total)212+213+ @property214+ def read_timeout(self):215+ """ Get the value for the read timeout.216+217+ This assumes some time has elapsed in the connection timeout and218+ computes the read timeout appropriately.219+220+ If self.total is set, the read timeout is dependent on the amount of221+ time taken by the connect timeout. If the connection time has not been222+ established, a :exc:`~urllib3.exceptions.TimeoutStateError` will be223+ raised.224+225+ :return: Value to use for the read timeout.226+ :rtype: int, float, :attr:`Timeout.DEFAULT_TIMEOUT` or None227+ :raises urllib3.exceptions.TimeoutStateError: If :meth:`start_connect`228+ has not yet been called on this object.229+ """230+ if (self.total is not None and231+ self.total is not self.DEFAULT_TIMEOUT and232+ self._read is not None and233+ self._read is not self.DEFAULT_TIMEOUT):234+ # In case the connect timeout has not yet been established.235+ if self._start_connect is None:236+ return self._read237+ return max(0, min(self.total - self.get_connect_duration(),238+ self._read))239+ elif self.total is not None and self.total is not self.DEFAULT_TIMEOUT:240+ return max(0, self.total - self.get_connect_duration())241+ else:242+ return self._readadded:requests/packages/urllib3/util/url.py+217 added
1+from __future__ import absolute_import2+from collections import namedtuple3+4+from ..exceptions import LocationParseError5+6+7+url_attrs = ['scheme', 'auth', 'host', 'port', 'path', 'query', 'fragment']8+9+10+class Url(namedtuple('Url', url_attrs)):11+ """12+ Datastructure for representing an HTTP URL. Used as a return value for13+ :func:`parse_url`.14+ """15+ slots = ()16+17+ def __new__(cls, scheme=None, auth=None, host=None, port=None, path=None,18+ query=None, fragment=None):19+ if path and not path.startswith('/'):20+ path = '/' + path21+ return super(Url, cls).__new__(cls, scheme, auth, host, port, path,22+ query, fragment)23+24+ @property25+ def hostname(self):26+ """For backwards-compatibility with urlparse. We're nice like that."""27+ return self.host28+29+ @property30+ def request_uri(self):31+ """Absolute path including the query string."""32+ uri = self.path or '/'33+34+ if self.query is not None:35+ uri += '?' + self.query36+37+ return uri38+39+ @property40+ def netloc(self):41+ """Network location including host and port"""42+ if self.port:43+ return '%s:%d' % (self.host, self.port)44+ return self.host45+46+ @property47+ def url(self):48+ """49+ Convert self into a url50+51+ This function should more or less round-trip with :func:`.parse_url`. The52+ returned url may not be exactly the same as the url inputted to53+ :func:`.parse_url`, but it should be equivalent by the RFC (e.g., urls54+ with a blank port will have : removed).55+56+ Example: ::57+58+ >>> U = parse_url('http://google.com/mail/')59+ >>> U.url60+ 'http://google.com/mail/'61+ >>> Url('http', 'username:password', 'host.com', 80,62+ ... '/path', 'query', 'fragment').url63+ 'http://username:password@host.com:80/path?query#fragment'64+ """65+ scheme, auth, host, port, path, query, fragment = self66+ url = ''67+68+ # We use "is not None" we want things to happen with empty strings (or 0 port)69+ if scheme is not None:70+ url += scheme + '://'71+ if auth is not None:72+ url += auth + '@'73+ if host is not None:74+ url += host75+ if port is not None:76+ url += ':' + str(port)77+ if path is not None:78+ url += path79+ if query is not None:80+ url += '?' + query81+ if fragment is not None:82+ url += '#' + fragment83+84+ return url85+86+ def __str__(self):87+ return self.url88+89+90+def split_first(s, delims):91+ """92+ Given a string and an iterable of delimiters, split on the first found93+ delimiter. Return two split parts and the matched delimiter.94+95+ If not found, then the first part is the full input string.96+97+ Example::98+99+ >>> split_first('foo/bar?baz', '?/=')100+ ('foo', 'bar?baz', '/')101+ >>> split_first('foo/bar?baz', '123')102+ ('foo/bar?baz', '', None)103+104+ Scales linearly with number of delims. Not ideal for large number of delims.105+ """106+ min_idx = None107+ min_delim = None108+ for d in delims:109+ idx = s.find(d)110+ if idx < 0:111+ continue112+113+ if min_idx is None or idx < min_idx:114+ min_idx = idx115+ min_delim = d116+117+ if min_idx is None or min_idx < 0:118+ return s, '', None119+120+ return s[:min_idx], s[min_idx + 1:], min_delim121+122+123+def parse_url(url):124+ """125+ Given a url, return a parsed :class:`.Url` namedtuple. Best-effort is126+ performed to parse incomplete urls. Fields not provided will be None.127+128+ Partly backwards-compatible with :mod:`urlparse`.129+130+ Example::131+132+ >>> parse_url('http://google.com/mail/')133+ Url(scheme='http', host='google.com', port=None, path='/mail/', ...)134+ >>> parse_url('google.com:80')135+ Url(scheme=None, host='google.com', port=80, path=None, ...)136+ >>> parse_url('/foo?bar')137+ Url(scheme=None, host=None, port=None, path='/foo', query='bar', ...)138+ """139+140+ # While this code has overlap with stdlib's urlparse, it is much141+ # simplified for our needs and less annoying.142+ # Additionally, this implementations does silly things to be optimal143+ # on CPython.144+145+ if not url:146+ # Empty147+ return Url()148+149+ scheme = None150+ auth = None151+ host = None152+ port = None153+ path = None154+ fragment = None155+ query = None156+157+ # Scheme158+ if '://' in url:159+ scheme, url = url.split('://', 1)160+161+ # Find the earliest Authority Terminator162+ # (http://tools.ietf.org/html/rfc3986#section-3.2)163+ url, path_, delim = split_first(url, ['/', '?', '#'])164+165+ if delim:166+ # Reassemble the path167+ path = delim + path_168+169+ # Auth170+ if '@' in url:171+ # Last '@' denotes end of auth part172+ auth, url = url.rsplit('@', 1)173+174+ # IPv6175+ if url and url[0] == '[':176+ host, url = url.split(']', 1)177+ host += ']'178+179+ # Port180+ if ':' in url:181+ _host, port = url.split(':', 1)182+183+ if not host:184+ host = _host185+186+ if port:187+ # If given, ports must be integers.188+ if not port.isdigit():189+ raise LocationParseError(url)190+ port = int(port)191+ else:192+ # Blank ports are cool, too. (rfc3986#section-3.2.3)193+ port = None194+195+ elif not host and url:196+ host = url197+198+ if not path:199+ return Url(scheme, auth, host, port, path, query, fragment)200+201+ # Fragment202+ if '#' in path:203+ path, fragment = path.split('#', 1)204+205+ # Query206+ if '?' in path:207+ path, query = path.split('?', 1)208+209+ return Url(scheme, auth, host, port, path, query, fragment)210+211+212+def get_host(url):213+ """214+ Deprecated. Use :func:`.parse_url` instead.215+ """216+ p = parse_url(url)217+ return p.scheme or 'http', p.hostname, p.portmodified:requests/packages/urllib3/__init__.py+47 added-12 removed
1-# urllib3/__init__.py2-# Copyright 2008-2013 Andrey Petrov and contributors (see CONTRIBUTORS.txt)3-#4-# This module is part of urllib3 and is released under5-# the MIT License: http://www.opensource.org/licenses/mit-license.php6-1 """2 urllib3 - Thread-safe connection pooling and re-using.3 """4 11-__author__ = 'Andrey Petrov (andrey.petrov@shazow.net)'12-__license__ = 'MIT'13-__version__ = 'dev'5+from __future__ import absolute_import6+import warnings7 15-8 from .connectionpool import (9 HTTPConnectionPool,10 HTTPSConnectionPool,11 connection_from_url2 unmodified lines14 from . import exceptions15 from .filepost import encode_multipart_formdata16 from .poolmanager import PoolManager, ProxyManager, proxy_from_url17 from .response import HTTPResponse26-from .util import make_headers, get_host, Timeout18+from .util.request import make_headers19+from .util.url import get_host20+from .util.timeout import Timeout21+from .util.retry import Retry22 23 24 # Set default logging handler to avoid "No handler found" warnings.25 import logging3 unmodified lines29 class NullHandler(logging.Handler):30 def emit(self, record):31 pass32 33+__author__ = 'Andrey Petrov (andrey.petrov@shazow.net)'34+__license__ = 'MIT'35+__version__ = '1.13'36+37+__all__ = (38+ 'HTTPConnectionPool',39+ 'HTTPSConnectionPool',40+ 'PoolManager',41+ 'ProxyManager',42+ 'HTTPResponse',43+ 'Retry',44+ 'Timeout',45+ 'add_stderr_logger',46+ 'connection_from_url',47+ 'disable_warnings',48+ 'encode_multipart_formdata',49+ 'get_host',50+ 'make_headers',51+ 'proxy_from_url',52+)53+54 logging.getLogger(__name__).addHandler(NullHandler())55 56+57 def add_stderr_logger(level=logging.DEBUG):58 """59 Helper for quickly adding a StreamHandler to the logger. Useful for60 debugging.6 unmodified lines67 handler = logging.StreamHandler()68 handler.setFormatter(logging.Formatter('%(asctime)s %(levelname)s %(message)s'))69 logger.addHandler(handler)70 logger.setLevel(level)54- logger.debug('Added an stderr logging handler to logger: %s' % __name__)71+ logger.debug('Added a stderr logging handler to logger: %s' % __name__)72 return handler73 74 # ... Clean up.75 del NullHandler76+77+78+# SecurityWarning's always go off by default.79+warnings.simplefilter('always', exceptions.SecurityWarning, append=True)80+# SubjectAltNameWarning's should go off once per host81+warnings.simplefilter('default', exceptions.SubjectAltNameWarning)82+# InsecurePlatformWarning's don't vary between requests, so we keep it default.83+warnings.simplefilter('default', exceptions.InsecurePlatformWarning,84+ append=True)85+# SNIMissingWarnings should go off only once.86+warnings.simplefilter('default', exceptions.SNIMissingWarning)87+88+89+def disable_warnings(category=exceptions.HTTPWarning):90+ """91+ Helper for quickly disabling all urllib3 warnings.92+ """93+ warnings.simplefilter('ignore', category)modified:requests/packages/urllib3/_collections.py+234 added-13 removed
1-# urllib3/_collections.py2-# Copyright 2008-2013 Andrey Petrov and contributors (see CONTRIBUTORS.txt)3-#4-# This module is part of urllib3 and is released under5-# the MIT License: http://www.opensource.org/licenses/mit-license.php6-7-from collections import MutableMapping1+from __future__ import absolute_import2+from collections import Mapping, MutableMapping3 try:4 from threading import RLock10-except ImportError: # Platform-specific: No threads available5+except ImportError: # Platform-specific: No threads available6 class RLock:7 def __enter__(self):8 pass9 10 def __exit__(self, exc_type, exc_value, traceback):11 pass12 13 19-try: # Python 2.7+14+try: # Python 2.7+15 from collections import OrderedDict16 except ImportError:17 from .packages.ordered_dict import OrderedDict18+from .packages.six import iterkeys, itervalues, PY319 20 25-__all__ = ['RecentlyUsedContainer']21+__all__ = ['RecentlyUsedContainer', 'HTTPHeaderDict']22 23 24 _Null = object()25 59 unmodified lines85 86 def clear(self):87 with self.lock:88 # Copy pointers to all values, then wipe the mapping93- # under Python 2, this copies the list of values twice :-|94- values = list(self._container.values())89+ values = list(itervalues(self._container))90 self._container.clear()91 92 if self.dispose_func:93 for value in values:94 self.dispose_func(value)95 96 def keys(self):97 with self.lock:103- return self._container.keys()98+ return list(iterkeys(self._container))99+100+101+class HTTPHeaderDict(MutableMapping):102+ """103+ :param headers:104+ An iterable of field-value pairs. Must not contain multiple field names105+ when compared case-insensitively.106+107+ :param kwargs:108+ Additional field-value pairs to pass in to ``dict.update``.109+110+ A ``dict`` like container for storing HTTP Headers.111+112+ Field names are stored and compared case-insensitively in compliance with113+ RFC 7230. Iteration provides the first case-sensitive key seen for each114+ case-insensitive pair.115+116+ Using ``__setitem__`` syntax overwrites fields that compare equal117+ case-insensitively in order to maintain ``dict``'s api. For fields that118+ compare equal, instead create a new ``HTTPHeaderDict`` and use ``.add``119+ in a loop.120+121+ If multiple fields that are equal case-insensitively are passed to the122+ constructor or ``.update``, the behavior is undefined and some will be123+ lost.124+125+ >>> headers = HTTPHeaderDict()126+ >>> headers.add('Set-Cookie', 'foo=bar')127+ >>> headers.add('set-cookie', 'baz=quxx')128+ >>> headers['content-length'] = '7'129+ >>> headers['SET-cookie']130+ 'foo=bar, baz=quxx'131+ >>> headers['Content-Length']132+ '7'133+ """134+135+ def __init__(self, headers=None, **kwargs):136+ super(HTTPHeaderDict, self).__init__()137+ self._container = {}138+ if headers is not None:139+ if isinstance(headers, HTTPHeaderDict):140+ self._copy_from(headers)141+ else:142+ self.extend(headers)143+ if kwargs:144+ self.extend(kwargs)145+146+ def __setitem__(self, key, val):147+ self._container[key.lower()] = (key, val)148+ return self._container[key.lower()]149+150+ def __getitem__(self, key):151+ val = self._container[key.lower()]152+ return ', '.join(val[1:])153+154+ def __delitem__(self, key):155+ del self._container[key.lower()]156+157+ def __contains__(self, key):158+ return key.lower() in self._container159+160+ def __eq__(self, other):161+ if not isinstance(other, Mapping) and not hasattr(other, 'keys'):162+ return False163+ if not isinstance(other, type(self)):164+ other = type(self)(other)165+ return (dict((k.lower(), v) for k, v in self.itermerged()) ==166+ dict((k.lower(), v) for k, v in other.itermerged()))167+168+ def __ne__(self, other):169+ return not self.__eq__(other)170+171+ if not PY3: # Python 2172+ iterkeys = MutableMapping.iterkeys173+ itervalues = MutableMapping.itervalues174+175+ __marker = object()176+177+ def __len__(self):178+ return len(self._container)179+180+ def __iter__(self):181+ # Only provide the originally cased names182+ for vals in self._container.values():183+ yield vals[0]184+185+ def pop(self, key, default=__marker):186+ '''D.pop(k[,d]) -> v, remove specified key and return the corresponding value.187+ If key is not found, d is returned if given, otherwise KeyError is raised.188+ '''189+ # Using the MutableMapping function directly fails due to the private marker.190+ # Using ordinary dict.pop would expose the internal structures.191+ # So let's reinvent the wheel.192+ try:193+ value = self[key]194+ except KeyError:195+ if default is self.__marker:196+ raise197+ return default198+ else:199+ del self[key]200+ return value201+202+ def discard(self, key):203+ try:204+ del self[key]205+ except KeyError:206+ pass207+208+ def add(self, key, val):209+ """Adds a (name, value) pair, doesn't overwrite the value if it already210+ exists.211+212+ >>> headers = HTTPHeaderDict(foo='bar')213+ >>> headers.add('Foo', 'baz')214+ >>> headers['foo']215+ 'bar, baz'216+ """217+ key_lower = key.lower()218+ new_vals = key, val219+ # Keep the common case aka no item present as fast as possible220+ vals = self._container.setdefault(key_lower, new_vals)221+ if new_vals is not vals:222+ # new_vals was not inserted, as there was a previous one223+ if isinstance(vals, list):224+ # If already several items got inserted, we have a list225+ vals.append(val)226+ else:227+ # vals should be a tuple then, i.e. only one item so far228+ # Need to convert the tuple to list for further extension229+ self._container[key_lower] = [vals[0], vals[1], val]230+231+ def extend(self, *args, **kwargs):232+ """Generic import function for any type of header-like object.233+ Adapted version of MutableMapping.update in order to insert items234+ with self.add instead of self.__setitem__235+ """236+ if len(args) > 1:237+ raise TypeError("extend() takes at most 1 positional "238+ "arguments ({0} given)".format(len(args)))239+ other = args[0] if len(args) >= 1 else ()240+241+ if isinstance(other, HTTPHeaderDict):242+ for key, val in other.iteritems():243+ self.add(key, val)244+ elif isinstance(other, Mapping):245+ for key in other:246+ self.add(key, other[key])247+ elif hasattr(other, "keys"):248+ for key in other.keys():249+ self.add(key, other[key])250+ else:251+ for key, value in other:252+ self.add(key, value)253+254+ for key, value in kwargs.items():255+ self.add(key, value)256+257+ def getlist(self, key):258+ """Returns a list of all the values for the named field. Returns an259+ empty list if the key doesn't exist."""260+ try:261+ vals = self._container[key.lower()]262+ except KeyError:263+ return []264+ else:265+ if isinstance(vals, tuple):266+ return [vals[1]]267+ else:268+ return vals[1:]269+270+ # Backwards compatibility for httplib271+ getheaders = getlist272+ getallmatchingheaders = getlist273+ iget = getlist274+275+ def __repr__(self):276+ return "%s(%s)" % (type(self).__name__, dict(self.itermerged()))277+278+ def _copy_from(self, other):279+ for key in other:280+ val = other.getlist(key)281+ if isinstance(val, list):282+ # Don't need to convert tuples283+ val = list(val)284+ self._container[key.lower()] = [key] + val285+286+ def copy(self):287+ clone = type(self)()288+ clone._copy_from(self)289+ return clone290+291+ def iteritems(self):292+ """Iterate over all header lines, including duplicate ones."""293+ for key in self:294+ vals = self._container[key.lower()]295+ for val in vals[1:]:296+ yield vals[0], val297+298+ def itermerged(self):299+ """Iterate over all headers, merging duplicate ones together."""300+ for key in self:301+ val = self._container[key.lower()]302+ yield val[0], ', '.join(val[1:])303+304+ def items(self):305+ return list(self.iteritems())306+307+ @classmethod308+ def from_httplib(cls, message): # Python 2309+ """Read headers from a Python 2 httplib message object."""310+ # python2.7 does not expose a proper API for exporting multiheaders311+ # efficiently. This function re-reads raw lines from the message312+ # object and extracts the multiheaders properly.313+ headers = []314+315+ for line in message.headers:316+ if line.startswith((' ', '\t')):317+ key, value = headers[-1]318+ headers[-1] = (key, value + '\r\n' + line.rstrip())319+ continue320+321+ key, value = line.split(':', 1)322+ headers.append((key, value.strip()))323+324+ return cls(headers)modified:requests/packages/urllib3/connection.py+219 added-50 removed
1-# urllib3/connection.py2-# Copyright 2008-2013 Andrey Petrov and contributors (see CONTRIBUTORS.txt)3-#4-# This module is part of urllib3 and is released under5-# the MIT License: http://www.opensource.org/licenses/mit-license.php6-1+from __future__ import absolute_import2+import datetime3+import os4+import sys5 import socket8-from socket import timeout as SocketTimeout6+from socket import error as SocketError, timeout as SocketTimeout7+import warnings8+from .packages import six9 10-try: # Python 311- from http.client import HTTPConnection, HTTPException10+try: # Python 311+ from http.client import HTTPConnection as _HTTPConnection12+ from http.client import HTTPException # noqa: unused in this module13 except ImportError:13- from httplib import HTTPConnection, HTTPException14+ from httplib import HTTPConnection as _HTTPConnection15+ from httplib import HTTPException # noqa: unused in this module16 15-class DummyConnection(object):16- "Used to detect a failed ConnectionCls import."17- pass18-19-try: # Compiled with SSL?17+try: # Compiled with SSL?18+ import ssl19+ BaseSSLError = ssl.SSLError20+except (ImportError, AttributeError): # Platform-specific: No SSL.21 ssl = None21- HTTPSConnection = DummyConnection22 23 class BaseSSLError(BaseException):24 pass25 26- try: # Python 327- from http.client import HTTPSConnection28- except ImportError:29- from httplib import HTTPSConnection26 31- import ssl32- BaseSSLError = ssl.SSLError27+try: # Python 3:28+ # Not a no-op, we're adding this to the namespace so it can be imported.29+ ConnectionError = ConnectionError30+except NameError: # Python 2:31+ class ConnectionError(Exception):32+ pass33 34-except (ImportError, AttributeError): # Platform-specific: No SSL.35- pass34 35 from .exceptions import (36+ NewConnectionError,37 ConnectTimeoutError,38+ SubjectAltNameWarning,39+ SystemTimeWarning,40 )41 from .packages.ssl_match_hostname import match_hostname41-from .util import (42- assert_fingerprint,42+43+from .util.ssl_ import (44 resolve_cert_reqs,45 resolve_ssl_version,46 ssl_wrap_socket,47+ assert_fingerprint,48 )49 50+51+from .util import connection52+53+port_by_scheme = {54+ 'http': 80,55+ 'https': 443,56+}57+58+RECENT_DATE = datetime.date(2014, 1, 1)59+60+61+class DummyConnection(object):62+ """Used to detect a failed ConnectionCls import."""63+ pass64+65+66+class HTTPConnection(_HTTPConnection, object):67+ """68+ Based on httplib.HTTPConnection but provides an extra constructor69+ backwards-compatibility layer between older and newer Pythons.70+71+ Additional keyword parameters are used to configure attributes of the connection.72+ Accepted parameters include:73+74+ - ``strict``: See the documentation on :class:`urllib3.connectionpool.HTTPConnectionPool`75+ - ``source_address``: Set the source address for the current connection.76+77+ .. note:: This is ignored for Python 2.6. It is only applied for 2.7 and 3.x78+79+ - ``socket_options``: Set specific options on the underlying socket. If not specified, then80+ defaults are loaded from ``HTTPConnection.default_socket_options`` which includes disabling81+ Nagle's algorithm (sets TCP_NODELAY to 1) unless the connection is behind a proxy.82+83+ For example, if you wish to enable TCP Keep Alive in addition to the defaults,84+ you might pass::85+86+ HTTPConnection.default_socket_options + [87+ (socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1),88+ ]89+90+ Or you may want to disable the defaults by passing an empty list (e.g., ``[]``).91+ """92+93+ default_port = port_by_scheme['http']94+95+ #: Disable Nagle's algorithm by default.96+ #: ``[(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1)]``97+ default_socket_options = [(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1)]98+99+ #: Whether this connection verifies the host's certificate.100+ is_verified = False101+102+ def __init__(self, *args, **kw):103+ if six.PY3: # Python 3104+ kw.pop('strict', None)105+106+ # Pre-set source_address in case we have an older Python like 2.6.107+ self.source_address = kw.get('source_address')108+109+ if sys.version_info < (2, 7): # Python 2.6110+ # _HTTPConnection on Python 2.6 will balk at this keyword arg, but111+ # not newer versions. We can still use it when creating a112+ # connection though, so we pop it *after* we have saved it as113+ # self.source_address.114+ kw.pop('source_address', None)115+116+ #: The socket options provided by the user. If no options are117+ #: provided, we use the default options.118+ self.socket_options = kw.pop('socket_options', self.default_socket_options)119+120+ # Superclass also sets self.source_address in Python 2.7+.121+ _HTTPConnection.__init__(self, *args, **kw)122+123+ def _new_conn(self):124+ """ Establish a socket connection and set nodelay settings on it.125+126+ :return: New socket connection.127+ """128+ extra_kw = {}129+ if self.source_address:130+ extra_kw['source_address'] = self.source_address131+132+ if self.socket_options:133+ extra_kw['socket_options'] = self.socket_options134+135+ try:136+ conn = connection.create_connection(137+ (self.host, self.port), self.timeout, **extra_kw)138+139+ except SocketTimeout as e:140+ raise ConnectTimeoutError(141+ self, "Connection to %s timed out. (connect timeout=%s)" %142+ (self.host, self.timeout))143+144+ except SocketError as e:145+ raise NewConnectionError(146+ self, "Failed to establish a new connection: %s" % e)147+148+ return conn149+150+ def _prepare_conn(self, conn):151+ self.sock = conn152+ # the _tunnel_host attribute was added in python 2.6.3 (via153+ # http://hg.python.org/cpython/rev/0f57b30a152f) so pythons 2.6(0-2) do154+ # not have them.155+ if getattr(self, '_tunnel_host', None):156+ # TODO: Fix tunnel so it doesn't depend on self.sock state.157+ self._tunnel()158+ # Mark this connection as not reusable159+ self.auto_open = 0160+161+ def connect(self):162+ conn = self._new_conn()163+ self._prepare_conn(conn)164+165+166+class HTTPSConnection(HTTPConnection):167+ default_port = port_by_scheme['https']168+169+ def __init__(self, host, port=None, key_file=None, cert_file=None,170+ strict=None, timeout=socket._GLOBAL_DEFAULT_TIMEOUT, **kw):171+172+ HTTPConnection.__init__(self, host, port, strict=strict,173+ timeout=timeout, **kw)174+175+ self.key_file = key_file176+ self.cert_file = cert_file177+178+ # Required property for Google AppEngine 1.9.0 which otherwise causes179+ # HTTPS requests to go out as HTTP. (See Issue #356)180+ self._protocol = 'https'181+182+ def connect(self):183+ conn = self._new_conn()184+ self._prepare_conn(conn)185+ self.sock = ssl.wrap_socket(conn, self.key_file, self.cert_file)186+187+188 class VerifiedHTTPSConnection(HTTPSConnection):189 """190 Based on httplib.HTTPSConnection but wraps the socket with191 SSL certification.192 """193 cert_reqs = None194 ca_certs = None195+ ca_cert_dir = None196 ssl_version = None197+ assert_fingerprint = None198 199 def set_cert(self, key_file=None, cert_file=None,200 cert_reqs=None, ca_certs=None,59- assert_hostname=None, assert_fingerprint=None):201+ assert_hostname=None, assert_fingerprint=None,202+ ca_cert_dir=None):203 204+ if (ca_certs or ca_cert_dir) and cert_reqs is None:205+ cert_reqs = 'CERT_REQUIRED'206+207 self.key_file = key_file208 self.cert_file = cert_file209 self.cert_reqs = cert_reqs64- self.ca_certs = ca_certs210 self.assert_hostname = assert_hostname211 self.assert_fingerprint = assert_fingerprint212+ self.ca_certs = ca_certs and os.path.expanduser(ca_certs)213+ self.ca_cert_dir = ca_cert_dir and os.path.expanduser(ca_cert_dir)214 215 def connect(self):216 # Add certificate verification70- try:71- sock = socket.create_connection(72- address=(self.host, self.port),73- timeout=self.timeout,74- )75- except SocketTimeout:76- raise ConnectTimeoutError(77- self, "Connection to %s timed out. (connect timeout=%s)" %78- (self.host, self.timeout))217+ conn = self._new_conn()218 219 resolved_cert_reqs = resolve_cert_reqs(self.cert_reqs)220 resolved_ssl_version = resolve_ssl_version(self.ssl_version)221 83- # the _tunnel_host attribute was added in python 2.6.3 (via84- # http://hg.python.org/cpython/rev/0f57b30a152f) so pythons 2.6(0-2) do85- # not have them.222+ hostname = self.host223 if getattr(self, '_tunnel_host', None):224+ # _tunnel_host was added in Python 2.6.3225+ # (See: http://hg.python.org/cpython/rev/0f57b30a152f)226+87- self.sock = sock227+ self.sock = conn228 # Calls self._set_hostport(), so self.host is229 # self._tunnel_host below.230 self._tunnel()231+ # Mark this connection as not reusable232+ self.auto_open = 0233 234+ # Override the host with the one we're requesting data from.235+ hostname = self._tunnel_host236+237+ is_time_off = datetime.date.today() < RECENT_DATE238+ if is_time_off:239+ warnings.warn((240+ 'System time is way off (before {0}). This will probably '241+ 'lead to SSL verification errors').format(RECENT_DATE),242+ SystemTimeWarning243+ )244+245 # Wrap socket using verification with the root certs in246 # trusted_root_certs94- self.sock = ssl_wrap_socket(sock, self.key_file, self.cert_file,247+ self.sock = ssl_wrap_socket(conn, self.key_file, self.cert_file,248 cert_reqs=resolved_cert_reqs,249 ca_certs=self.ca_certs,250+ ca_cert_dir=self.ca_cert_dir,97- server_hostname=self.host,251+ server_hostname=hostname,252 ssl_version=resolved_ssl_version)253 100- if resolved_cert_reqs != ssl.CERT_NONE:101- if self.assert_fingerprint:102- assert_fingerprint(self.sock.getpeercert(binary_form=True),103- self.assert_fingerprint)104- elif self.assert_hostname is not False:105- match_hostname(self.sock.getpeercert(),106- self.assert_hostname or self.host)254+ if self.assert_fingerprint:255+ assert_fingerprint(self.sock.getpeercert(binary_form=True),256+ self.assert_fingerprint)257+ elif resolved_cert_reqs != ssl.CERT_NONE \258+ and self.assert_hostname is not False:259+ cert = self.sock.getpeercert()260+ if not cert.get('subjectAltName', ()):261+ warnings.warn((262+ 'Certificate for {0} has no `subjectAltName`, falling back to check for a '263+ '`commonName` for now. This feature is being removed by major browsers and '264+ 'deprecated by RFC 2818. (See https://github.com/shazow/urllib3/issues/497 '265+ 'for details.)'.format(hostname)),266+ SubjectAltNameWarning267+ )268+ match_hostname(cert, self.assert_hostname or hostname)269 270+ self.is_verified = (resolved_cert_reqs == ssl.CERT_REQUIRED or271+ self.assert_fingerprint is not None)272 273+274 if ssl:275+ # Make a copy for testing.276+ UnverifiedHTTPSConnection = HTTPSConnection277 HTTPSConnection = VerifiedHTTPSConnection278+else:279+ HTTPSConnection = DummyConnectionmodified:requests/packages/urllib3/connectionpool.py+279 added-144 removed
1-# urllib3/connectionpool.py2-# Copyright 2008-2013 Andrey Petrov and contributors (see CONTRIBUTORS.txt)3-#4-# This module is part of urllib3 and is released under5-# the MIT License: http://www.opensource.org/licenses/mit-license.php6-1+from __future__ import absolute_import2 import errno3 import logging4+import sys5+import warnings6 7 from socket import error as SocketError, timeout as SocketTimeout8 import socket9 13-try: # Python 310+try: # Python 311 from queue import LifoQueue, Empty, Full12 except ImportError:13 from Queue import LifoQueue, Empty, Full17- import Queue as _ # Platform-specific: Windows14+ # Queue is imported for side effects on MS Windows15+ import Queue as _unused_module_Queue # noqa: unused16 17 18 from .exceptions import (19 ClosedPoolError,22- ConnectTimeoutError,20+ ProtocolError,21 EmptyPoolError,22+ HeaderParsingError,23 HostChangedError,24+ LocationValueError,25 MaxRetryError,26+ ProxyError,27+ ReadTimeoutError,28 SSLError,29 TimeoutError,28- ReadTimeoutError,29- ProxyError,30+ InsecureRequestWarning,31+ NewConnectionError,32 )33 from .packages.ssl_match_hostname import CertificateError34 from .packages import six35 from .connection import (36+ port_by_scheme,37 DummyConnection,38 HTTPConnection, HTTPSConnection, VerifiedHTTPSConnection,39 HTTPException, BaseSSLError,40 )41 from .request import RequestMethods42 from .response import HTTPResponse40-from .util import (41- assert_fingerprint,42- get_host,43- is_connection_dropped,44- Timeout,45-)43 44+from .util.connection import is_connection_dropped45+from .util.response import assert_header_parsing46+from .util.retry import Retry47+from .util.timeout import Timeout48+from .util.url import get_host, Url49 50+51 xrange = six.moves.xrange52 53 log = logging.getLogger(__name__)54 55 _Default = object()56 54-port_by_scheme = {55- 'http': 80,56- 'https': 443,57-}57 59-60-## Pool objects58+# Pool objects61-59 class ConnectionPool(object):60 """61 Base class for all connection pools, such as62 :class:`.HTTPConnectionPool` and :class:`.HTTPSConnectionPool`.2 unmodified lines65 scheme = None66 QueueCls = LifoQueue67 68 def __init__(self, host, port=None):72- # httplib doesn't like it when we include brackets in ipv6 addresses73- host = host.strip('[]')69+ if not host:70+ raise LocationValueError("No host specified.")71 72 self.host = host73 self.port = port74 75 def __str__(self):76 return '%s(host=%r, port=%r)' % (type(self).__name__,77 self.host, self.port)78 79+ def __enter__(self):80+ return self81+82+ def __exit__(self, exc_type, exc_val, exc_tb):83+ self.close()84+ # Return False to re-raise any potential exceptions85+ return False86+87+ def close():88+ """89+ Close all pooled connections and disable the pool.90+ """91+ pass92+93+94 # This is taken from http://hg.python.org/cpython/file/7aaba721ebc0/Lib/socket.py#l25295 _blocking_errnos = set([errno.EAGAIN, errno.EWOULDBLOCK])96 97+98 class HTTPConnectionPool(ConnectionPool, RequestMethods):99 """100 Thread-safe connection pool for one host.101 21 unmodified lines123 been parsed, this is always a `urllib3.util.Timeout` object.124 125 :param maxsize:126 Number of connections to save that can be reused. More than 1 is useful114- in multithreaded situations. If ``block`` is set to false, more127+ in multithreaded situations. If ``block`` is set to False, more128 connections will be created but they will not be saved once they've129 been used.130 131 :param block:6 unmodified lines138 :param headers:139 Headers to include with all requests, unless other headers are given140 explicitly.141 142+ :param retries:143+ Retry configuration to use by default with requests in this pool.144+145 :param _proxy:146 Parsed proxy URL, should not be used directly, instead, see147 :class:`urllib3.connectionpool.ProxyManager`"148 149 :param _proxy_headers:150 A dictionary with proxy headers, should not be used directly,151 instead, see :class:`urllib3.connectionpool.ProxyManager`"152+153+ :param \**conn_kw:154+ Additional parameters are used to create fresh :class:`urllib3.connection.HTTPConnection`,155+ :class:`urllib3.connection.HTTPSConnection` instances.156 """157 158 scheme = 'http'159 ConnectionCls = HTTPConnection160 161 def __init__(self, host, port=None, strict=False,162 timeout=Timeout.DEFAULT_TIMEOUT, maxsize=1, block=False,143- headers=None, _proxy=None, _proxy_headers=None):163+ headers=None, retries=None,164+ _proxy=None, _proxy_headers=None,165+ **conn_kw):166 ConnectionPool.__init__(self, host, port)167 RequestMethods.__init__(self, headers)168 169 self.strict = strict170 149- # This is for backwards compatibility and can be removed once a timeout150- # can only be set to a Timeout object171 if not isinstance(timeout, Timeout):172 timeout = Timeout.from_float(timeout)173 174+ if retries is None:175+ retries = Retry.DEFAULT176+177 self.timeout = timeout178+ self.retries = retries179 180 self.pool = self.QueueCls(maxsize)181 self.block = block182 6 unmodified lines189 190 # These are mostly for testing and debugging purposes.191 self.num_connections = 0192 self.num_requests = 0193+ self.conn_kw = conn_kw194 195+ if self.proxy:196+ # Enable Nagle's algorithm for proxies, to avoid packet fragmentation.197+ # We cannot know if the user has added default socket options, so we cannot replace the198+ # list.199+ self.conn_kw.setdefault('socket_options', [])200+201 def _new_conn(self):202 """172- Return a fresh :class:`httplib.HTTPConnection`.203+ Return a fresh :class:`HTTPConnection`.204 """205 self.num_connections += 1206 log.info("Starting new HTTP connection (%d): %s" %207 (self.num_connections, self.host))208 178- extra_params = {}179- if not six.PY3: # Python 2180- extra_params['strict'] = self.strict181-182- return self.ConnectionCls(host=self.host, port=self.port,209+ conn = self.ConnectionCls(host=self.host, port=self.port,210 timeout=self.timeout.connect_timeout,184- **extra_params)211+ strict=self.strict, **self.conn_kw)212+ return conn213 214 def _get_conn(self, timeout=None):215 """216 Get a connection. Will return a pooled connection if one is available.9 unmodified lines226 conn = None227 try:228 conn = self.pool.get(block=self.block, timeout=timeout)229 202- except AttributeError: # self.pool is None230+ except AttributeError: # self.pool is None231 raise ClosedPoolError(self, "Pool is closed.")232 233 except Empty:234 if self.block:5 unmodified lines240 # If this is a persistent connection, check if it got disconnected241 if conn and is_connection_dropped(conn):242 log.info("Resetting dropped connection: %s" % self.host)243 conn.close()244+ if getattr(conn, 'auto_open', 1) == 0:245+ # This is a proxied connection that has been mutated by246+ # httplib._tunnel() and cannot be reused (since it would247+ # attempt to bypass the proxy)248+ conn = None249 250 return conn or self._new_conn()251 252 def _put_conn(self, conn):11 unmodified lines264 If the pool is closed, then the connection will be closed and discarded.265 """266 try:267 self.pool.put(conn, block=False)235- return # Everything is dandy, done.268+ return # Everything is dandy, done.269 except AttributeError:270 # self.pool is None.271 pass272 except Full:273 # This should never happen if self.block == True241- log.warning("HttpConnectionPool is full, discarding connection: %s"242- % self.host)274+ log.warning(275+ "Connection pool is full, discarding connection: %s" %276+ self.host)277 278 # Connection never got put back into the pool, close it.279 if conn:280 conn.close()281 282+ def _validate_conn(self, conn):283+ """284+ Called right before a request is made, after the socket is created.285+ """286+ pass287+288+ def _prepare_proxy(self, conn):289+ # Nothing to do for HTTP connections.290+ pass291+292 def _get_timeout(self, timeout):293 """ Helper that always returns a :class:`urllib3.util.Timeout` """294 if timeout is _Default:295 return self.timeout.clone()4 unmodified lines300 # User passed us an int/float. This is for backwards compatibility,301 # can be removed later302 return Timeout.from_float(timeout)303 304+ def _raise_timeout(self, err, url, timeout_value):305+ """Is the error actually a timeout? Will raise a ReadTimeout or pass"""306+307+ if isinstance(err, SocketTimeout):308+ raise ReadTimeoutError(self, url, "Read timed out. (read timeout=%s)" % timeout_value)309+310+ # See the above comment about EAGAIN in Python 3. In Python 2 we have311+ # to specifically catch it and throw the timeout error312+ if hasattr(err, 'errno') and err.errno in _blocking_errnos:313+ raise ReadTimeoutError(self, url, "Read timed out. (read timeout=%s)" % timeout_value)314+315+ # Catch possible read timeouts thrown as SSL errors. If not the316+ # case, rethrow the original. We need to do this because of:317+ # http://bugs.python.org/issue10272318+ if 'timed out' in str(err) or 'did not complete (read)' in str(err): # Python 2.6319+ raise ReadTimeoutError(self, url, "Read timed out. (read timeout=%s)" % timeout_value)320+321 def _make_request(self, conn, method, url, timeout=_Default,322 **httplib_request_kw):323 """263- Perform a request on a given httplib connection object taken from our324+ Perform a request on a given urllib connection object taken from our325 pool.326 327 :param conn:328 a connection from one of our connection pools7 unmodified lines336 """337 self.num_requests += 1338 339 timeout_obj = self._get_timeout(timeout)340+ timeout_obj.start_connect()341+ conn.timeout = timeout_obj.connect_timeout342 343+ # Trigger any extra validation we need to do.344 try:281- timeout_obj.start_connect()282- conn.timeout = timeout_obj.connect_timeout283- # conn.request() calls httplib.*.request, not the method in284- # urllib3.request. It also calls makefile (recv) on the socket.285- conn.request(method, url, **httplib_request_kw)286- except SocketTimeout:287- raise ConnectTimeoutError(288- self, "Connection to %s timed out. (connect timeout=%s)" %289- (self.host, timeout_obj.connect_timeout))345+ self._validate_conn(conn)346+ except (SocketTimeout, BaseSSLError) as e:347+ # Py2 raises this as a BaseSSLError, Py3 raises it as socket timeout.348+ self._raise_timeout(err=e, url=url, timeout_value=conn.timeout)349+ raise350 351+ # conn.request() calls httplib.*.request, not the method in352+ # urllib3.request. It also calls makefile (recv) on the socket.353+ conn.request(method, url, **httplib_request_kw)354+355 # Reset the timeout for the recv() on the socket356 read_timeout = timeout_obj.read_timeout357 358 # App Engine doesn't have a sock attr295- if hasattr(conn, 'sock'):359+ if getattr(conn, 'sock', None):360 # In Python 3 socket.py will catch EAGAIN and return None when you361 # try and read into the file pointer created by http.client, which362 # instead raises a BadStatusLine exception. Instead of catching363 # the exception and assuming all BadStatusLine exceptions are read364 # timeouts, check for a zero timeout before making the request.365 if read_timeout == 0:366 raise ReadTimeoutError(303- self, url,304- "Read timed out. (read timeout=%s)" % read_timeout)367+ self, url, "Read timed out. (read timeout=%s)" % read_timeout)368 if read_timeout is Timeout.DEFAULT_TIMEOUT:369 conn.sock.settimeout(socket.getdefaulttimeout())307- else: # None or a value370+ else: # None or a value371 conn.sock.settimeout(read_timeout)372 373 # Receive the response from the server374 try:312- try: # Python 2.7+, use buffering of HTTP responses375+ try: # Python 2.7, use buffering of HTTP responses376 httplib_response = conn.getresponse(buffering=True)314- except TypeError: # Python 2.6 and older377+ except TypeError: # Python 2.6 and older378 httplib_response = conn.getresponse()316- except SocketTimeout:317- raise ReadTimeoutError(318- self, url, "Read timed out. (read timeout=%s)" % read_timeout)319-320- except BaseSSLError as e:321- # Catch possible read timeouts thrown as SSL errors. If not the322- # case, rethrow the original. We need to do this because of:323- # http://bugs.python.org/issue10272324- if 'timed out' in str(e) or \325- 'did not complete (read)' in str(e): # Python 2.6326- raise ReadTimeoutError(self, url, "Read timed out.")327-379+ except (SocketTimeout, BaseSSLError, SocketError) as e:380+ self._raise_timeout(err=e, url=url, timeout_value=read_timeout)381 raise382 330- except SocketError as e: # Platform-specific: Python 2331- # See the above comment about EAGAIN in Python 3. In Python 2 we332- # have to specifically catch it and throw the timeout error333- if e.errno in _blocking_errnos:334- raise ReadTimeoutError(335- self, url,336- "Read timed out. (read timeout=%s)" % read_timeout)337-338- raise339-383 # AppEngine doesn't have a version attr.384 http_version = getattr(conn, '_http_vsn_str', 'HTTP/?')385 log.debug("\"%s %s %s\" %s %s" % (method, url, http_version,386 httplib_response.status,387 httplib_response.length))388+389+ try:390+ assert_header_parsing(httplib_response.msg)391+ except HeaderParsingError as hpe: # Platform-specific: Python 3392+ log.warning(393+ 'Failed to parse headers (url=%s): %s',394+ self._absolute_url(url), hpe, exc_info=True)395+396 return httplib_response397 398+ def _absolute_url(self, path):399+ return Url(scheme=self.scheme, host=self.host, port=self.port, path=path).url400+401 def close(self):402 """403 Close all pooled connections and disable the pool.404 """6 unmodified lines411 if conn:412 conn.close()413 414 except Empty:361- pass # Done.415+ pass # Done.416 417 def is_same_host(self, url):418 """419 Check if the given ``url`` is a member of the same host as this12 unmodified lines432 port = None433 434 return (scheme, host, port) == (self.scheme, self.host, self.port)435 382- def urlopen(self, method, url, body=None, headers=None, retries=3,436+ def urlopen(self, method, url, body=None, headers=None, retries=None,437 redirect=True, assert_same_host=True, timeout=_Default,438 pool_timeout=None, release_conn=None, **response_kw):439 """440 Get a connection from the pool and perform an HTTP request. This is the25 unmodified lines466 If-None-Match, etc. If None, pool headers are used. If provided,467 these headers completely replace any pool-specific headers.468 469 :param retries:416- Number of retries to allow before raising a MaxRetryError exception.470+ Configure the number of retries to allow before raising a471+ :class:`~urllib3.exceptions.MaxRetryError` exception.472 473+ Pass ``None`` to retry until you receive a response. Pass a474+ :class:`~urllib3.util.retry.Retry` object for fine-grained control475+ over different types of retries.476+ Pass an integer number to retry connection errors that many times,477+ but no other types of errors. Pass zero to never retry.478+479+ If ``False``, then retries are disabled and any exception is raised480+ immediately. Also, instead of raising a MaxRetryError on redirects,481+ the redirect response will be returned.482+483+ :type retries: :class:`~urllib3.util.retry.Retry`, False, or an int.484+485 :param redirect:486 If True, automatically handle redirects (status codes 301, 302,420- 303, 307, 308). Each redirect counts as a retry.487+ 303, 307, 308). Each redirect counts as a retry. Disabling retries488+ will disable redirect, too.489 490 :param assert_same_host:491 If ``True``, will make sure that the host of the pool requests is492 consistent else will raise HostChangedError. When False, you can25 unmodified lines518 """519 if headers is None:520 headers = self.headers521 454- if retries < 0:455- raise MaxRetryError(self, url)522+ if not isinstance(retries, Retry):523+ retries = Retry.from_int(retries, redirect=redirect, default=self.retries)524 525 if release_conn is None:526 release_conn = response_kw.get('preload_content', True)527 528 # Check host529 if assert_same_host and not self.is_same_host(url):462- raise HostChangedError(self, url, retries - 1)530+ raise HostChangedError(self, url, retries)531 532 conn = None533 534 # Merge the proxy headers. Only do this in HTTP. We have to copy the2 unmodified lines537 if self.scheme == 'http':538 headers = headers.copy()539 headers.update(self.proxy_headers)540 541+ # Must keep the exception bound to a separate variable or else Python 3542+ # complains about UnboundLocalError.543+ err = None544+545 try:474- # Request a connection from the queue546+ # Request a connection from the queue.547+ timeout_obj = self._get_timeout(timeout)548 conn = self._get_conn(timeout=pool_timeout)549 550+ conn.timeout = timeout_obj.connect_timeout551+552+ is_new_proxy_conn = self.proxy is not None and not getattr(conn, 'sock', None)553+ if is_new_proxy_conn:554+ self._prepare_proxy(conn)555+477- # Make the request on the httplib connection object556+ # Make the request on the httplib connection object.557 httplib_response = self._make_request(conn, method, url,479- timeout=timeout,558+ timeout=timeout_obj,559 body=body, headers=headers)560 561 # If we're going to release the connection in ``finally:``, then562 # the request doesn't need to know about the connection. Otherwise12 unmodified lines575 # ``response.release_conn()`` is called (implicitly by576 # ``response.read()``)577 578 except Empty:500- # Timed out by queue579+ # Timed out by queue.580 raise EmptyPoolError(self, "No pool connections are available.")581 503- except BaseSSLError as e:582+ except (BaseSSLError, CertificateError) as e:583+ # Close the connection. If a connection is reused on which there584+ # was a Certificate error, the next request will certainly raise585+ # another Certificate error.586+ conn = conn and conn.close()587+ release_conn = True588 raise SSLError(e)589 506- except CertificateError as e:507- # Name mismatch508- raise SSLError(e)590+ except SSLError:591+ # Treat SSLError separately from BaseSSLError to preserve592+ # traceback.593+ conn = conn and conn.close()594+ release_conn = True595+ raise596 510- except TimeoutError as e:511- # Connection broken, discard.512- conn = None513- # Save the error off for retry logic.514- err = e597+ except (TimeoutError, HTTPException, SocketError, ProtocolError) as e:598+ # Discard the connection for these exceptions. It will be599+ # be replaced during the next _get_conn() call.600+ conn = conn and conn.close()601+ release_conn = True602 516- if retries == 0:517- raise603+ if isinstance(e, (SocketError, NewConnectionError)) and self.proxy:604+ e = ProxyError('Cannot connect to proxy.', e)605+ elif isinstance(e, (SocketError, HTTPException)):606+ e = ProtocolError('Connection aborted.', e)607 519- except (HTTPException, SocketError) as e:520- if isinstance(e, SocketError) and self.proxy is not None:521- raise ProxyError('Cannot connect to proxy. '522- 'Socket error: %s.' % e)608+ retries = retries.increment(method, url, error=e, _pool=self,609+ _stacktrace=sys.exc_info()[2])610+ retries.sleep()611 524- # Connection broken, discard. It will be replaced next _get_conn().525- conn = None526- # This is necessary so we can access e below612+ # Keep track of the error for the retry warning.613 err = e614 529- if retries == 0:530- raise MaxRetryError(self, url, e)531-615 finally:616 if release_conn:617 # Put the connection back to be reused. If the connection is618 # expired then it will be None, which will get replaced with a1 unmodified line620 self._put_conn(conn)621 622 if not conn:623 # Try again541- log.warn("Retrying (%d attempts remain) after connection "542- "broken by '%r': %s" % (retries, err, url))543- return self.urlopen(method, url, body, headers, retries - 1,624+ log.warning("Retrying (%r) after connection "625+ "broken by '%r': %s" % (retries, err, url))626+ return self.urlopen(method, url, body, headers, retries,627 redirect, assert_same_host,628 timeout=timeout, pool_timeout=pool_timeout,629 release_conn=release_conn, **response_kw)630 1 unmodified line632 redirect_location = redirect and response.get_redirect_location()633 if redirect_location:634 if response.status == 303:635 method = 'GET'636+637+ try:638+ retries = retries.increment(method, url, response=response, _pool=self)639+ except MaxRetryError:640+ if retries.raise_on_redirect:641+ # Release the connection for this response, since we're not642+ # returning it to be released manually.643+ response.release_conn()644+ raise645+ return response646+647 log.info("Redirecting %s -> %s" % (url, redirect_location))648+ return self.urlopen(649+ method, redirect_location, body, headers,554- return self.urlopen(method, redirect_location, body, headers,555- retries - 1, redirect, assert_same_host,556- timeout=timeout, pool_timeout=pool_timeout,557- release_conn=release_conn, **response_kw)650+ retries=retries, redirect=redirect,651+ assert_same_host=assert_same_host,652+ timeout=timeout, pool_timeout=pool_timeout,653+ release_conn=release_conn, **response_kw)654 655+ # Check if we should retry the HTTP response.656+ if retries.is_forced_retry(method, status_code=response.status):657+ retries = retries.increment(method, url, response=response, _pool=self)658+ retries.sleep()659+ log.info("Forced retry: %s" % url)660+ return self.urlopen(661+ method, url, body, headers,662+ retries=retries, redirect=redirect,663+ assert_same_host=assert_same_host,664+ timeout=timeout, pool_timeout=pool_timeout,665+ release_conn=release_conn, **response_kw)666+667 return response668 669 670 class HTTPSConnectionPool(HTTPConnectionPool):1 unmodified line672 Same as :class:`.HTTPConnectionPool`, but HTTPS.673 674 When Python is compiled with the :mod:`ssl` module, then675 :class:`.VerifiedHTTPSConnection` is used, which *can* verify certificates,568- instead of :class:`httplib.HTTPSConnection`.676+ instead of :class:`.HTTPSConnection`.677 678 :class:`.VerifiedHTTPSConnection` uses one of ``assert_fingerprint``,679 ``assert_hostname`` and ``host`` in this order to verify connections.680 If ``assert_hostname`` is False, no verification is done.681 574- The ``key_file``, ``cert_file``, ``cert_reqs``, ``ca_certs`` and575- ``ssl_version`` are only used if :mod:`ssl` is available and are fed into576- :meth:`urllib3.util.ssl_wrap_socket` to upgrade the connection socket577- into an SSL socket.682+ The ``key_file``, ``cert_file``, ``cert_reqs``, ``ca_certs``,683+ ``ca_cert_dir``, and ``ssl_version`` are only used if :mod:`ssl` is684+ available and are fed into :meth:`urllib3.util.ssl_wrap_socket` to upgrade685+ the connection socket into an SSL socket.686 """687 688 scheme = 'https'689 ConnectionCls = HTTPSConnection690 691 def __init__(self, host, port=None,584- strict=False, timeout=None, maxsize=1,585- block=False, headers=None,692+ strict=False, timeout=Timeout.DEFAULT_TIMEOUT, maxsize=1,693+ block=False, headers=None, retries=None,694 _proxy=None, _proxy_headers=None,695 key_file=None, cert_file=None, cert_reqs=None,696 ca_certs=None, ssl_version=None,589- assert_hostname=None, assert_fingerprint=None):697+ assert_hostname=None, assert_fingerprint=None,698+ ca_cert_dir=None, **conn_kw):699 700 HTTPConnectionPool.__init__(self, host, port, strict, timeout, maxsize,592- block, headers, _proxy, _proxy_headers)701+ block, headers, retries, _proxy, _proxy_headers,702+ **conn_kw)703+704+ if ca_certs and cert_reqs is None:705+ cert_reqs = 'CERT_REQUIRED'706+707 self.key_file = key_file708 self.cert_file = cert_file709 self.cert_reqs = cert_reqs710 self.ca_certs = ca_certs711+ self.ca_cert_dir = ca_cert_dir712 self.ssl_version = ssl_version713 self.assert_hostname = assert_hostname714 self.assert_fingerprint = assert_fingerprint715 7 unmodified lines723 conn.set_cert(key_file=self.key_file,724 cert_file=self.cert_file,725 cert_reqs=self.cert_reqs,726 ca_certs=self.ca_certs,727+ ca_cert_dir=self.ca_cert_dir,728 assert_hostname=self.assert_hostname,729 assert_fingerprint=self.assert_fingerprint)730 conn.ssl_version = self.ssl_version731 732+ return conn733+734+ def _prepare_proxy(self, conn):735+ """736+ Establish tunnel connection early, because otherwise httplib737+ would improperly set Host: header to proxy's IP:port.616- if self.proxy is not None:617- # Python 2.7+618- try:619- set_tunnel = conn.set_tunnel620- except AttributeError: # Platform-specific: Python 2.6621- set_tunnel = conn._set_tunnel738+ """739+ # Python 2.7+740+ try:741+ set_tunnel = conn.set_tunnel742+ except AttributeError: # Platform-specific: Python 2.6743+ set_tunnel = conn._set_tunnel744+745+ if sys.version_info <= (2, 6, 4) and not self.proxy_headers: # Python 2.6.4 and older746+ set_tunnel(self.host, self.port)747+ else:748 set_tunnel(self.host, self.port, self.proxy_headers)623- # Establish tunnel connection early, because otherwise httplib624- # would improperly set Host: header to proxy's IP:port.625- conn.connect()749 627- return conn750+ conn.connect()751 752 def _new_conn(self):753 """754 Return a fresh :class:`httplib.HTTPSConnection`.2 unmodified lines757 log.info("Starting new HTTPS connection (%d): %s"758 % (self.num_connections, self.host))759 760 if not self.ConnectionCls or self.ConnectionCls is DummyConnection:638- # Platform-specific: Python without ssl761 raise SSLError("Can't connect to HTTPS URL because the SSL "762 "module is not available.")763 764 actual_host = self.host1 unmodified line766 if self.proxy is not None:767 actual_host = self.proxy.host768 actual_port = self.proxy.port769 648- extra_params = {}649- if not six.PY3: # Python 2650- extra_params['strict'] = self.strict651-770 conn = self.ConnectionCls(host=actual_host, port=actual_port,771 timeout=self.timeout.connect_timeout,654- **extra_params)772+ strict=self.strict, **self.conn_kw)773 774 return self._prepare_conn(conn)775 776+ def _validate_conn(self, conn):777+ """778+ Called right before a request is made, after the socket is created.779+ """780+ super(HTTPSConnectionPool, self)._validate_conn(conn)781 782+ # Force connect early to allow us to validate the connection.783+ if not getattr(conn, 'sock', None): # AppEngine might not have `.sock`784+ conn.connect()785+786+ if not conn.is_verified:787+ warnings.warn((788+ 'Unverified HTTPS request is being made. '789+ 'Adding certificate verification is strongly advised. See: '790+ 'https://urllib3.readthedocs.org/en/latest/security.html'),791+ InsecureRequestWarning)792+793+794 def connection_from_url(url, **kw):795 """796 Given a url, return an :class:`.ConnectionPool` instance of its host.797 7 unmodified lines805 Passes additional parameters to the constructor of the appropriate806 :class:`.ConnectionPool`. Useful for specifying things like807 timeout, maxsize, headers, etc.808 674- Example: ::809+ Example::810 811 >>> conn = connection_from_url('http://google.com/')812 >>> r = conn.request('GET', '/')813 """5 unmodified linesmodified:requests/packages/urllib3/exceptions.py+95 added-15 removed
1-# urllib3/exceptions.py2-# Copyright 2008-2013 Andrey Petrov and contributors (see CONTRIBUTORS.txt)3-#4-# This module is part of urllib3 and is released under5-# the MIT License: http://www.opensource.org/licenses/mit-license.php1+from __future__ import absolute_import2+# Base Exceptions3 4 8-## Base Exceptions9-5 class HTTPError(Exception):6 "Base exception used by this module."7 pass8 9 10+class HTTPWarning(Warning):11+ "Base warning used by this module."12+ pass13+14+15 class PoolError(HTTPError):16 "Base exception for errors caused within a pool."17 def __init__(self, pool, message):18 self.pool = pool29 unmodified lines48 "Raised when automatic decoding based on Content-Type fails."49 pass50 51 52-## Leaf Exceptions52+class ProtocolError(HTTPError):53+ "Raised when something unexpected happens mid-request/response."54+ pass55 56+57+#: Renamed to ProtocolError but aliased for backwards compatibility.58+ConnectionError = ProtocolError59+60+61+# Leaf Exceptions62+63 class MaxRetryError(RequestError):55- "Raised when the maximum number of retries is exceeded."64+ """Raised when the maximum number of retries is exceeded.65 66+ :param pool: The connection pool67+ :type pool: :class:`~urllib3.connectionpool.HTTPConnectionPool`68+ :param string url: The requested Url69+ :param exceptions.Exception reason: The underlying error70+71+ """72+73 def __init__(self, pool, url, reason=None):74 self.reason = reason75 60- message = "Max retries exceeded with url: %s" % url61- if reason:62- message += " (Caused by %s: %s)" % (type(reason), reason)63- else:64- message += " (Caused by redirect)"76+ message = "Max retries exceeded with url: %s (Caused by %r)" % (77+ url, reason)78 79 RequestError.__init__(self, pool, url, message)80 81 31 unmodified lines113 "Raised when a socket timeout occurs while connecting to a server"114 pass115 116 117+class NewConnectionError(ConnectTimeoutError, PoolError):118+ "Raised when we fail to establish a new connection. Usually ECONNREFUSED."119+ pass120+121+122 class EmptyPoolError(PoolError):123 "Raised when a pool runs out of connections and no more are allowed."124 pass125 2 unmodified lines128 "Raised when a request enters a pool after the pool has been closed."129 pass130 131 114-class LocationParseError(ValueError, HTTPError):132+class LocationValueError(ValueError, HTTPError):133+ "Raised when there is something wrong with a given URL input."134+ pass135+136+137+class LocationParseError(LocationValueError):138 "Raised when get_host or similar fails to parse the URL input."139 140 def __init__(self, location):141 message = "Failed to parse: %s" % location142 HTTPError.__init__(self, message)143 144 self.location = location145+146+147+class ResponseError(HTTPError):148+ "Used as a container for an error reason supplied in a MaxRetryError."149+ GENERIC_ERROR = 'too many error responses'150+ SPECIFIC_ERROR = 'too many {status_code} error responses'151+152+153+class SecurityWarning(HTTPWarning):154+ "Warned when perfoming security reducing actions"155+ pass156+157+158+class SubjectAltNameWarning(SecurityWarning):159+ "Warned when connecting to a host with a certificate missing a SAN."160+ pass161+162+163+class InsecureRequestWarning(SecurityWarning):164+ "Warned when making an unverified HTTPS request."165+ pass166+167+168+class SystemTimeWarning(SecurityWarning):169+ "Warned when system time is suspected to be wrong"170+ pass171+172+173+class InsecurePlatformWarning(SecurityWarning):174+ "Warned when certain SSL configuration is not available on a platform."175+ pass176+177+178+class SNIMissingWarning(HTTPWarning):179+ "Warned when making a HTTPS request without SNI available."180+ pass181+182+183+class ResponseNotChunked(ProtocolError, ValueError):184+ "Response needs to be chunked in order to read it as chunks."185+ pass186+187+188+class ProxySchemeUnknown(AssertionError, ValueError):189+ "ProxyManager does not support the supplied scheme"190+ # TODO(t-8ch): Stop inheriting from AssertionError in v2.0.191+192+ def __init__(self, scheme):193+ message = "Not supported proxy scheme %s" % scheme194+ super(ProxySchemeUnknown, self).__init__(message)195+196+197+class HeaderParsingError(HTTPError):198+ "Raised by assert_header_parsing, but we convert it to a log.warning statement."199+ def __init__(self, defects, unparsed_data):200+ message = '%s, unparsed data: %r' % (defects or 'Unknown', unparsed_data)201+ super(HeaderParsingError, self).__init__(message)modified:requests/packages/urllib3/fields.py+15 added-14 removed
1-# urllib3/fields.py2-# Copyright 2008-2013 Andrey Petrov and contributors (see CONTRIBUTORS.txt)3-#4-# This module is part of urllib3 and is released under5-# the MIT License: http://www.opensource.org/licenses/mit-license.php6-1+from __future__ import absolute_import2 import email.utils3 import mimetypes4 5 from .packages import six3 unmodified lines9 """10 Guess the "Content-Type" of a file.11 12 :param filename:18- The filename to guess the "Content-Type" of using :mod:`mimetimes`.13+ The filename to guess the "Content-Type" of using :mod:`mimetypes`.14 :param default:15 If no "Content-Type" can be guessed, default to `default`.16 """17 if filename:54 unmodified lines72 def from_tuples(cls, fieldname, value):73 """74 A :class:`~urllib3.fields.RequestField` factory from old-style tuple parameters.75 81- Supports constructing :class:`~urllib3.fields.RequestField` from parameter82- of key/value strings AND key/filetuple. A filetuple is a (filename, data, MIME type)83- tuple where the MIME type is optional. For example: ::76+ Supports constructing :class:`~urllib3.fields.RequestField` from77+ parameter of key/value strings AND key/filetuple. A filetuple is a78+ (filename, data, MIME type) tuple where the MIME type is optional.79+ For example::80 81 'foo': 'bar',82 'fakefile': ('foofile.txt', 'contents of foofile'),83 'realfile': ('barfile.txt', open('realfile').read()),36 unmodified lines120 Useful for single headers that are composed of multiple items. E.g.,121 'Content-Disposition' fields.122 123 :param header_parts:128- A sequence of (k, v) typles or a :class:`dict` of (k, v) to format as129- `k1="v1"; k2="v2"; ...`.124+ A sequence of (k, v) typles or a :class:`dict` of (k, v) to format125+ as `k1="v1"; k2="v2"; ...`.126 """127 parts = []128 iterable = header_parts129 if isinstance(header_parts, dict):23 unmodified lines153 154 lines.append('\r\n')155 return '\r\n'.join(lines)156 161- def make_multipart(self, content_disposition=None, content_type=None, content_location=None):157+ def make_multipart(self, content_disposition=None, content_type=None,158+ content_location=None):159 """160 Makes this request field into a multipart request field.161 162 This method overrides "Content-Disposition", "Content-Type" and5 unmodified lines168 The 'Content-Location' of the request body.169 170 """171 self.headers['Content-Disposition'] = content_disposition or 'form-data'175- self.headers['Content-Disposition'] += '; '.join(['', self._render_parts((('name', self._name), ('filename', self._filename)))])172+ self.headers['Content-Disposition'] += '; '.join([173+ '', self._render_parts(174+ (('name', self._name), ('filename', self._filename))175+ )176+ ])177 self.headers['Content-Type'] = content_type178 self.headers['Content-Location'] = content_locationmodified:requests/packages/urllib3/filepost.py+10 added-17 removed
1-# urllib3/filepost.py2-# Copyright 2008-2013 Andrey Petrov and contributors (see CONTRIBUTORS.txt)3-#4-# This module is part of urllib3 and is released under5-# the MIT License: http://www.opensource.org/licenses/mit-license.php6-1+from __future__ import absolute_import2 import codecs8-import mimetypes3 4 from uuid import uuid45 from io import BytesIO6 24 unmodified lines31 else:32 i = iter(fields)33 34 for field in i:41- if isinstance(field, RequestField):42- yield field43- else:44- yield RequestField.from_tuples(*field)35+ if isinstance(field, RequestField):36+ yield field37+ else:38+ yield RequestField.from_tuples(*field)39 40 41 def iter_fields(fields):42 """43+ .. deprecated:: 1.644+45 Iterate over fields.46 51- .. deprecated ::47+ The addition of :class:`~urllib3.fields.RequestField` makes this function48+ obsolete. Instead, use :func:`iter_field_objects`, which returns49+ :class:`~urllib3.fields.RequestField` objects.50 53- The addition of `~urllib3.fields.RequestField` makes this function54- obsolete. Instead, use :func:`iter_field_objects`, which returns55- `~urllib3.fields.RequestField` objects, instead.56-51 Supports list of (k, v) tuples and dicts.58-52 """53 if isinstance(fields, dict):54 return ((k, v) for k, v in six.iteritems(fields))55 39 unmodified linesmodified:requests/packages/urllib3/poolmanager.py+43 added-20 removed
1-# urllib3/poolmanager.py2-# Copyright 2008-2013 Andrey Petrov and contributors (see CONTRIBUTORS.txt)3-#4-# This module is part of urllib3 and is released under5-# the MIT License: http://www.opensource.org/licenses/mit-license.php6-1+from __future__ import absolute_import2 import logging3 4 try: # Python 35 from urllib.parse import urljoin2 unmodified lines8 9 from ._collections import RecentlyUsedContainer10 from .connectionpool import HTTPConnectionPool, HTTPSConnectionPool11 from .connectionpool import port_by_scheme12+from .exceptions import LocationValueError, MaxRetryError, ProxySchemeUnknown13 from .request import RequestMethods18-from .util import parse_url14+from .util.url import parse_url15+from .util.retry import Retry16 17 18 __all__ = ['PoolManager', 'ProxyManager', 'proxy_from_url']19 5 unmodified lines25 26 log = logging.getLogger(__name__)27 28 SSL_KEYWORDS = ('key_file', 'cert_file', 'cert_reqs', 'ca_certs',32- 'ssl_version')29+ 'ssl_version', 'ca_cert_dir')30 31 32 class PoolManager(RequestMethods):33 """11 unmodified lines45 :param \**connection_pool_kw:46 Additional parameters are used to create fresh47 :class:`urllib3.connectionpool.ConnectionPool` instances.48 52- Example: ::49+ Example::50 51 >>> manager = PoolManager(num_pools=2)52 >>> r = manager.request('GET', 'http://google.com/')53 >>> r = manager.request('GET', 'http://google.com/mail')10 unmodified lines64 self.connection_pool_kw = connection_pool_kw65 self.pools = RecentlyUsedContainer(num_pools,66 dispose_func=lambda p: p.close())67 68+ def __enter__(self):69+ return self70+71+ def __exit__(self, exc_type, exc_val, exc_tb):72+ self.clear()73+ # Return False to re-raise any potential exceptions74+ return False75+76 def _new_pool(self, scheme, host, port):77 """78 Create a new :class:`ConnectionPool` based on host, port and scheme.79 26 unmodified lines106 If ``port`` isn't given, it will be derived from the ``scheme`` using107 ``urllib3.connectionpool.port_by_scheme``.108 """109 105- scheme = scheme or 'http'110+ if not host:111+ raise LocationValueError("No host specified.")112 113+ scheme = scheme or 'http'114 port = port or port_by_scheme.get(scheme, 80)108-115 pool_key = (scheme, host, port)116 117 with self.pools.lock:118 # If the scheme, host, or port doesn't match existing open4 unmodified lines123 124 # Make a fresh ConnectionPool of the desired type125 pool = self._new_pool(scheme, host, port)126 self.pools[pool_key] = pool127+128 return pool129 130 def connection_from_url(self, url):131 """35 unmodified lines167 168 # Support relative URLs for redirecting.169 redirect_location = urljoin(url, redirect_location)170 164- # RFC 2616, Section 10.3.4171+ # RFC 7231, Section 6.4.4172 if response.status == 303:173 method = 'GET'174 168- log.info("Redirecting %s -> %s" % (url, redirect_location))169- kw['retries'] = kw.get('retries', 3) - 1 # Persist retries countdown175+ retries = kw.get('retries')176+ if not isinstance(retries, Retry):177+ retries = Retry.from_int(retries, redirect=redirect)178+179+ try:180+ retries = retries.increment(method, url, response=response, _pool=conn)181+ except MaxRetryError:182+ if retries.raise_on_redirect:183+ raise184+ return response185+186+ kw['retries'] = retries187 kw['redirect'] = redirect188+189+ log.info("Redirecting %s -> %s" % (url, redirect_location))190 return self.urlopen(method, redirect_location, **kw)191 192 193 class ProxyManager(PoolManager):194 """195 Behaves just like :class:`PoolManager`, but sends all requests through196 the defined proxy, using the CONNECT method for HTTPS URLs.197 179- :param poxy_url:198+ :param proxy_url:199 The URL of the proxy to be used.200 201 :param proxy_headers:202 A dictionary contaning headers that will be sent to the proxy. In case23 unmodified lines226 proxy = parse_url(proxy_url)227 if not proxy.port:228 port = port_by_scheme.get(proxy.scheme, 80)229 proxy = proxy._replace(port=port)230+231+ if proxy.scheme not in ("http", "https"):232+ raise ProxySchemeUnknown(proxy.scheme)233+234 self.proxy = proxy235 self.proxy_headers = proxy_headers or {}213- assert self.proxy.scheme in ("http", "https"), \214- 'Not supported proxy scheme %s' % self.proxy.scheme236+237 connection_pool_kw['_proxy'] = self.proxy238 connection_pool_kw['_proxy_headers'] = self.proxy_headers239+240 super(ProxyManager, self).__init__(241 num_pools, headers, **connection_pool_kw)242 243 def connection_from_host(self, host, port=None, scheme='http'):26 unmodified lines270 if u.scheme == "http":271 # For proxied HTTPS requests, httplib sets the necessary headers272 # on the CONNECT to the proxy. For HTTP, we'll definitely273 # need to set 'Host' at the very least.251- kw['headers'] = self._set_proxy_headers(url, kw.get('headers',252- self.headers))274+ headers = kw.get('headers', self.headers)275+ kw['headers'] = self._set_proxy_headers(url, headers)276 254- return super(ProxyManager, self).urlopen(method, url, redirect, **kw)277+ return super(ProxyManager, self).urlopen(method, url, redirect=redirect, **kw)278 279 280 def proxy_from_url(url, **kw):281 return ProxyManager(proxy_url=url, **kw)modified:requests/packages/urllib3/request.py+45 added-35 removed
1-# urllib3/request.py2-# Copyright 2008-2013 Andrey Petrov and contributors (see CONTRIBUTORS.txt)3-#4-# This module is part of urllib3 and is released under5-# the MIT License: http://www.opensource.org/licenses/mit-license.php6-1+from __future__ import absolute_import2 try:3 from urllib.parse import urlencode4 except ImportError:5 from urllib import urlencode14 unmodified lines20 decides which type of request field encoding to use.21 22 Specifically,23 29- :meth:`.request_encode_url` is for sending requests whose fields are encoded30- in the URL (such as GET, HEAD, DELETE).24+ :meth:`.request_encode_url` is for sending requests whose fields are25+ encoded in the URL (such as GET, HEAD, DELETE).26 27 :meth:`.request_encode_body` is for sending requests whose fields are28 encoded in the *body* of the request using multipart or www-form-urlencoded29 (such as for POST, PUT, PATCH).15 unmodified lines45 self.headers = headers or {}46 47 def urlopen(self, method, url, body=None, headers=None,48 encode_multipart=True, multipart_boundary=None,54- **kw): # Abstract49+ **kw): # Abstract50 raise NotImplemented("Classes extending RequestMethods must implement "51 "their own ``urlopen`` method.")52 53 def request(self, method, url, fields=None, headers=None, **urlopen_kw):1 unmodified line55 Make a request using :meth:`urlopen` with the appropriate encoding of56 ``fields`` based on the ``method`` used.57 58 This is a convenience method that requires the least amount of manual64- effort. It can be used in most situations, while still having the option65- to drop down to more specific methods when necessary, such as59+ effort. It can be used in most situations, while still having the60+ option to drop down to more specific methods when necessary, such as61 :meth:`request_encode_url`, :meth:`request_encode_body`,62 or even the lowest level :meth:`urlopen`.63 """64 method = method.upper()65 66 if method in self._encode_url_methods:67 return self.request_encode_url(method, url, fields=fields,73- headers=headers,74- **urlopen_kw)68+ headers=headers,69+ **urlopen_kw)70 else:71 return self.request_encode_body(method, url, fields=fields,77- headers=headers,78- **urlopen_kw)72+ headers=headers,73+ **urlopen_kw)74 80- def request_encode_url(self, method, url, fields=None, **urlopen_kw):75+ def request_encode_url(self, method, url, fields=None, headers=None,76+ **urlopen_kw):77 """78 Make a request using :meth:`urlopen` with the ``fields`` encoded in79 the url. This is useful for request methods like GET, HEAD, DELETE, etc.80 """81+ if headers is None:82+ headers = self.headers83+84+ extra_kw = {'headers': headers}85+ extra_kw.update(urlopen_kw)86+87 if fields:88 url += '?' + urlencode(fields)87- return self.urlopen(method, url, **urlopen_kw)89 90+ return self.urlopen(method, url, **extra_kw)91+92 def request_encode_body(self, method, url, fields=None, headers=None,93 encode_multipart=True, multipart_boundary=None,94 **urlopen_kw):95 """96 Make a request using :meth:`urlopen` with the ``fields`` encoded in97 the body. This is useful for request methods like POST, PUT, PATCH, etc.98 99 When ``encode_multipart=True`` (default), then97- :meth:`urllib3.filepost.encode_multipart_formdata` is used to encode the98- payload with the appropriate content type. Otherwise100+ :meth:`urllib3.filepost.encode_multipart_formdata` is used to encode101+ the payload with the appropriate content type. Otherwise102 :meth:`urllib.urlencode` is used with the103 'application/x-www-form-urlencoded' content type.104 105 Multipart encoding must be used when posting files, and it's reasonably103- safe to use it in other times too. However, it may break request signing,104- such as with OAuth.106+ safe to use it in other times too. However, it may break request107+ signing, such as with OAuth.108 109 Supports an optional ``fields`` parameter of key/value strings AND110 key/filetuple. A filetuple is a (filename, data, MIME type) tuple where108- the MIME type is optional. For example: ::111+ the MIME type is optional. For example::112 113 fields = {114 'foo': 'bar',115 'fakefile': ('foofile.txt', 'contents of foofile'),5 unmodified lines121 122 When uploading a file, providing a filename (the first parameter of the123 tuple) is optional but recommended to best mimick behavior of browsers.124 122- Note that if ``headers`` are supplied, the 'Content-Type' header will be123- overwritten because it depends on the dynamic random boundary string125+ Note that if ``headers`` are supplied, the 'Content-Type' header will126+ be overwritten because it depends on the dynamic random boundary string127 which is used to compose the body of the request. The random boundary128 string can be explicitly set with the ``multipart_boundary`` parameter.129 """127- if encode_multipart:128- body, content_type = encode_multipart_formdata(fields or {},129- boundary=multipart_boundary)130- else:131- body, content_type = (urlencode(fields or {}),132- 'application/x-www-form-urlencoded')133-130 if headers is None:131 headers = self.headers132 137- headers_ = {'Content-Type': content_type}138- headers_.update(headers)133+ extra_kw = {'headers': {}}134 140- return self.urlopen(method, url, body=body, headers=headers_,141- **urlopen_kw)135+ if fields:136+ if 'body' in urlopen_kw:137+ raise TypeError(138+ "request got values for both 'fields' and 'body', can only specify one.")139+140+ if encode_multipart:141+ body, content_type = encode_multipart_formdata(fields, boundary=multipart_boundary)142+ else:143+ body, content_type = urlencode(fields), 'application/x-www-form-urlencoded'144+145+ extra_kw['body'] = body146+ extra_kw['headers'] = {'Content-Type': content_type}147+148+ extra_kw['headers'].update(headers)149+ extra_kw.update(urlopen_kw)150+151+ return self.urlopen(method, url, **extra_kw)modified:requests/packages/urllib3/response.py+265 added-63 removed
1-# urllib3/response.py2-# Copyright 2008-2013 Andrey Petrov and contributors (see CONTRIBUTORS.txt)3-#4-# This module is part of urllib3 and is released under5-# the MIT License: http://www.opensource.org/licenses/mit-license.php6-7-8-import logging1+from __future__ import absolute_import2+from contextlib import contextmanager3 import zlib4 import io5+from socket import timeout as SocketTimeout6+from socket import error as SocketError7 12-from .exceptions import DecodeError13-from .packages.six import string_types as basestring, binary_type14-from .util import is_fp_closed8+from ._collections import HTTPHeaderDict9+from .exceptions import (10+ ProtocolError, DecodeError, ReadTimeoutError, ResponseNotChunked11+)12+from .packages.six import string_types as basestring, binary_type, PY313+from .packages.six.moves import http_client as httplib14+from .connection import HTTPException, BaseSSLError15+from .util.response import is_fp_closed, is_response_to_head16 17 17-log = logging.getLogger(__name__)18-19-18 class DeflateDecoder(object):19 20 def __init__(self):21 self._first_try = True3 unmodified lines25 def __getattr__(self, name):26 return getattr(self._obj, name)27 28 def decompress(self, data):29+ if not data:30+ return data31+32 if not self._first_try:33 return self._obj.decompress(data)34 35 self._data += data7 unmodified lines43 finally:44 self._data = None45 46 47+class GzipDecoder(object):48+49+ def __init__(self):50+ self._obj = zlib.decompressobj(16 + zlib.MAX_WBITS)51+52+ def __getattr__(self, name):53+ return getattr(self._obj, name)54+55+ def decompress(self, data):56+ if not data:57+ return data58+ return self._obj.decompress(data)59+60+61 def _get_decoder(mode):62 if mode == 'gzip':48- return zlib.decompressobj(16 + zlib.MAX_WBITS)63+ return GzipDecoder()64 65 return DeflateDecoder()66 67 1 unmodified line69 """70 HTTP Response container.71 72 Backwards-compatible to httplib's HTTPResponse but the response ``body`` is58- loaded and decoded on-demand when the ``data`` property is accessed.73+ loaded and decoded on-demand when the ``data`` property is accessed. This74+ class is also compatible with the Python standard library's :mod:`io`75+ module, and can hence be treated as a readable object in the context of that76+ framework.77 78 Extra parameters for behaviour not present in httplib.HTTPResponse:79 80 :param preload_content:15 unmodified lines96 97 def __init__(self, body='', headers=None, status=0, version=0, reason=None,98 strict=0, preload_content=True, decode_content=True,99 original_response=None, pool=None, connection=None):100+101+ if isinstance(headers, HTTPHeaderDict):82- self.headers = headers or {}102+ self.headers = headers103+ else:104+ self.headers = HTTPHeaderDict(headers)105 self.status = status106 self.version = version107 self.reason = reason108 self.strict = strict109 self.decode_content = decode_content110 111 self._decoder = None90- self._body = body if body and isinstance(body, basestring) else None112+ self._body = None113 self._fp = None114 self._original_response = original_response115 self._fp_bytes_read = 0116 117+ if body and isinstance(body, (basestring, binary_type)):118+ self._body = body119+120 self._pool = pool121 self._connection = connection122 123 if hasattr(body, 'read'):124 self._fp = body125 126+ # Are we using the chunked-style of transfer encoding?127+ self.chunked = False128+ self.chunk_left = None129+ tr_enc = self.headers.get('transfer-encoding', '').lower()130+ # Don't incur the penalty of creating a list and then discarding it131+ encodings = (enc.strip() for enc in tr_enc.split(","))132+ if "chunked" in encodings:133+ self.chunked = True134+135+ # If requested, preload the body.136 if preload_content and not self._body:137 self._body = self.read(decode_content=decode_content)138 139 def get_redirect_location(self):32 unmodified lines172 are encoded on the wire (e.g, compressed).173 """174 return self._fp_bytes_read175 176+ def _init_decoder(self):177+ """178+ Set-up the _decoder attribute if necessar.179+ """180+ # Note: content-encoding value should be case-insensitive, per RFC 7230181+ # Section 3.2182+ content_encoding = self.headers.get('content-encoding', '').lower()183+ if self._decoder is None and content_encoding in self.CONTENT_DECODERS:184+ self._decoder = _get_decoder(content_encoding)185+186+ def _decode(self, data, decode_content, flush_decoder):187+ """188+ Decode the data passed in and potentially flush the decoder.189+ """190+ try:191+ if decode_content and self._decoder:192+ data = self._decoder.decompress(data)193+ except (IOError, zlib.error) as e:194+ content_encoding = self.headers.get('content-encoding', '').lower()195+ raise DecodeError(196+ "Received response with content-encoding: %s, but "197+ "failed to decode it." % content_encoding, e)198+199+ if flush_decoder and decode_content:200+ data += self._flush_decoder()201+202+ return data203+204+ def _flush_decoder(self):205+ """206+ Flushes the decoder. Should only be called if the decoder is actually207+ being used.208+ """209+ if self._decoder:210+ buf = self._decoder.decompress(b'')211+ return buf + self._decoder.flush()212+213+ return b''214+215+ @contextmanager216+ def _error_catcher(self):217+ """218+ Catch low-level python exceptions, instead re-raising urllib3219+ variants, so that low-level exceptions are not leaked in the220+ high-level api.221+222+ On exit, release the connection back to the pool.223+ """224+ try:225+ try:226+ yield227+228+ except SocketTimeout:229+ # FIXME: Ideally we'd like to include the url in the ReadTimeoutError but230+ # there is yet no clean way to get at it from this context.231+ raise ReadTimeoutError(self._pool, None, 'Read timed out.')232+233+ except BaseSSLError as e:234+ # FIXME: Is there a better way to differentiate between SSLErrors?235+ if 'read operation timed out' not in str(e): # Defensive:236+ # This shouldn't happen but just in case we're missing an edge237+ # case, let's avoid swallowing SSL errors.238+ raise239+240+ raise ReadTimeoutError(self._pool, None, 'Read timed out.')241+242+ except (HTTPException, SocketError) as e:243+ # This includes IncompleteRead.244+ raise ProtocolError('Connection broken: %r' % e, e)245+246+ except Exception:247+ # The response may not be closed but we're not going to use it anymore248+ # so close it now to ensure that the connection is released back to the pool.249+ if self._original_response and not self._original_response.isclosed():250+ self._original_response.close()251+252+ # Closing the response may not actually be sufficient to close253+ # everything, so if we have a hold of the connection close that254+ # too.255+ if self._connection is not None:256+ self._connection.close()257+258+ raise259+ finally:260+ if self._original_response and self._original_response.isclosed():261+ self.release_conn()262+263 def read(self, amt=None, decode_content=None, cache_content=False):264 """265 Similar to :meth:`httplib.HTTPResponse.read`, but with two additional266 parameters: ``decode_content`` and ``cache_content``.13 unmodified lines280 is useful if you want the ``.data`` property to continue working281 after having ``.read()`` the file object. (Overridden if ``amt`` is282 set.)283 """162- # Note: content-encoding value should be case-insensitive, per RFC 2616163- # Section 3.5164- content_encoding = self.headers.get('content-encoding', '').lower()165- if self._decoder is None:166- if content_encoding in self.CONTENT_DECODERS:167- self._decoder = _get_decoder(content_encoding)284+ self._init_decoder()285 if decode_content is None:286 decode_content = self.decode_content287 288 if self._fp is None:289 return290 291 flush_decoder = False292+ data = None293 176- try:294+ with self._error_catcher():295 if amt is None:296 # cStringIO doesn't like amt=None297 data = self._fp.read()298 flush_decoder = True4 unmodified lines303 # Close the connection when no data is returned304 #305 # This is redundant to what httplib/http.client _should_306 # already do. However, versions of python released before189- # December 15, 2012 (http://bugs.python.org/issue16298) do not190- # properly close the connection in all cases. There is no harm191- # in redundantly calling close.307+ # December 15, 2012 (http://bugs.python.org/issue16298) do308+ # not properly close the connection in all cases. There is309+ # no harm in redundantly calling close.310 self._fp.close()311 flush_decoder = True312 313+ if data:314 self._fp_bytes_read += len(data)315 197- try:198- if decode_content and self._decoder:199- data = self._decoder.decompress(data)200- except (IOError, zlib.error) as e:201- raise DecodeError(202- "Received response with content-encoding: %s, but "203- "failed to decode it." % content_encoding,204- e)316+ data = self._decode(data, decode_content, flush_decoder)317 206- if flush_decoder and decode_content and self._decoder:207- buf = self._decoder.decompress(binary_type())208- data += buf + self._decoder.flush()209-318 if cache_content:319 self._body = data320 213- return data321+ return data322 215- finally:216- if self._original_response and self._original_response.isclosed():217- self.release_conn()218-323 def stream(self, amt=2**16, decode_content=None):324 """325 A generator wrapper for the read() method. A call will block until326 ``amt`` bytes have been read from the connection or until the8 unmodified lines335 :param decode_content:336 If True, will attempt to decode the body based on the337 'content-encoding' header.338 """339+ if self.chunked:340+ for line in self.read_chunked(amt, decode_content=decode_content):341+ yield line342+ else:235- while not is_fp_closed(self._fp):236- data = self.read(amt=amt, decode_content=decode_content)343+ while not is_fp_closed(self._fp):344+ data = self.read(amt=amt, decode_content=decode_content)345 238- if data:239- yield data346+ if data:347+ yield data348 241-349 @classmethod350 def from_httplib(ResponseCls, r, **response_kw):351 """352 Given an :class:`httplib.HTTPResponse` instance ``r``, return a1 unmodified line354 355 Remaining parameters are passed to the HTTPResponse constructor, along356 with ``original_response=r``.357 """358+ headers = r.msg359 252- # Normalize headers between different versions of Python253- headers = {}254- for k, v in r.getheaders():255- # Python 3: Header keys are returned capitalised256- k = k.lower()360+ if not isinstance(headers, HTTPHeaderDict):361+ if PY3: # Python 3362+ headers = HTTPHeaderDict(headers.items())363+ else: # Python 2364+ headers = HTTPHeaderDict.from_httplib(headers)365 258- has_value = headers.get(k)259- if has_value: # Python 3: Repeating header keys are unmerged.260- v = ', '.join([has_value, v])261-262- headers[k] = v263-366 # HTTPResponse objects in Python 3 don't have a .strict attribute367 strict = getattr(r, 'strict', 0)266- return ResponseCls(body=r,368+ resp = ResponseCls(body=r,369 headers=headers,370 status=r.status,371 version=r.version,372 reason=r.reason,373 strict=strict,374 original_response=r,375 **response_kw)376+ return resp377 378 # Backwards-compatibility methods for httplib.HTTPResponse379 def getheaders(self):380 return self.headers22 unmodified lines403 raise IOError("HTTPResponse has no file to get a fileno from")404 elif hasattr(self._fp, "fileno"):405 return self._fp.fileno()406 else:304- raise IOError("The file-like object this HTTPResponse is wrapped "407+ raise IOError("The file-like object this HTTPResponse is wrapped "408 "around has no file descriptor")409 410 def flush(self):411 if self._fp is not None and hasattr(self._fp, 'flush'):412 return self._fp.flush()413 414 def readable(self):415+ # This method is required for `io` module compatibility.416 return True417+418+ def readinto(self, b):419+ # This method is required for `io` module compatibility.420+ temp = self.read(len(b))421+ if len(temp) == 0:422+ return 0423+ else:424+ b[:len(temp)] = temp425+ return len(temp)426+427+ def _update_chunk_length(self):428+ # First, we'll figure out length of a chunk and then429+ # we'll try to read it from socket.430+ if self.chunk_left is not None:431+ return432+ line = self._fp.fp.readline()433+ line = line.split(b';', 1)[0]434+ try:435+ self.chunk_left = int(line, 16)436+ except ValueError:437+ # Invalid chunked protocol response, abort.438+ self.close()439+ raise httplib.IncompleteRead(line)440+441+ def _handle_chunk(self, amt):442+ returned_chunk = None443+ if amt is None:444+ chunk = self._fp._safe_read(self.chunk_left)445+ returned_chunk = chunk446+ self._fp._safe_read(2) # Toss the CRLF at the end of the chunk.447+ self.chunk_left = None448+ elif amt < self.chunk_left:449+ value = self._fp._safe_read(amt)450+ self.chunk_left = self.chunk_left - amt451+ returned_chunk = value452+ elif amt == self.chunk_left:453+ value = self._fp._safe_read(amt)454+ self._fp._safe_read(2) # Toss the CRLF at the end of the chunk.455+ self.chunk_left = None456+ returned_chunk = value457+ else: # amt > self.chunk_left458+ returned_chunk = self._fp._safe_read(self.chunk_left)459+ self._fp._safe_read(2) # Toss the CRLF at the end of the chunk.460+ self.chunk_left = None461+ return returned_chunk462+463+ def read_chunked(self, amt=None, decode_content=None):464+ """465+ Similar to :meth:`HTTPResponse.read`, but with an additional466+ parameter: ``decode_content``.467+468+ :param decode_content:469+ If True, will attempt to decode the body based on the470+ 'content-encoding' header.471+ """472+ self._init_decoder()473+ # FIXME: Rewrite this method and make it a class with a better structured logic.474+ if not self.chunked:475+ raise ResponseNotChunked(476+ "Response is not chunked. "477+ "Header 'transfer-encoding: chunked' is missing.")478+479+ # Don't bother reading the body of a HEAD request.480+ if self._original_response and is_response_to_head(self._original_response):481+ self._original_response.close()482+ return483+484+ with self._error_catcher():485+ while True:486+ self._update_chunk_length()487+ if self.chunk_left == 0:488+ break489+ chunk = self._handle_chunk(amt)490+ decoded = self._decode(chunk, decode_content=decode_content,491+ flush_decoder=False)492+ if decoded:493+ yield decoded494+495+ if decode_content:496+ # On CPython and PyPy, we should never need to flush the497+ # decoder. However, on Jython we *might* need to, so498+ # lets defensively do it anyway.499+ decoded = self._flush_decoder()500+ if decoded: # Platform-specific: Jython.501+ yield decoded502+503+ # Chunk content ends with \r\n: discard it.504+ while True:505+ line = self._fp.fp.readline()506+ if not line:507+ # Some sites may not end with '\r\n'.508+ break509+ if line == b'\r\n':510+ break511+512+ # We read everything; close the "file".513+ if self._original_response:514+ self._original_response.close()deleted:requests/packages/urllib3/util.py-643 removed
1-# urllib3/util.py2-# Copyright 2008-2013 Andrey Petrov and contributors (see CONTRIBUTORS.txt)3-#4-# This module is part of urllib3 and is released under5-# the MIT License: http://www.opensource.org/licenses/mit-license.php6-7-8-from base64 import b64encode9-from binascii import hexlify, unhexlify10-from collections import namedtuple11-from hashlib import md5, sha112-from socket import error as SocketError, _GLOBAL_DEFAULT_TIMEOUT13-import time14-15-try:16- from select import poll, POLLIN17-except ImportError: # `poll` doesn't exist on OSX and other platforms18- poll = False19- try:20- from select import select21- except ImportError: # `select` doesn't exist on AppEngine.22- select = False23-24-try: # Test for SSL features25- SSLContext = None26- HAS_SNI = False27-28- import ssl29- from ssl import wrap_socket, CERT_NONE, PROTOCOL_SSLv2330- from ssl import SSLContext # Modern SSL?31- from ssl import HAS_SNI # Has SNI?32-except ImportError:33- pass34-35-from .packages import six36-from .exceptions import LocationParseError, SSLError, TimeoutStateError37-38-39-_Default = object()40-# The default timeout to use for socket connections. This is the attribute used41-# by httplib to define the default timeout42-43-44-def current_time():45- """46- Retrieve the current time, this function is mocked out in unit testing.47- """48- return time.time()49-50-51-class Timeout(object):52- """53- Utility object for storing timeout values.54-55- Example usage:56-57- .. code-block:: python58-59- timeout = urllib3.util.Timeout(connect=2.0, read=7.0)60- pool = HTTPConnectionPool('www.google.com', 80, timeout=timeout)61- pool.request(...) # Etc, etc62-63- :param connect:64- The maximum amount of time to wait for a connection attempt to a server65- to succeed. Omitting the parameter will default the connect timeout to66- the system default, probably `the global default timeout in socket.py67- <http://hg.python.org/cpython/file/603b4d593758/Lib/socket.py#l535>`_.68- None will set an infinite timeout for connection attempts.69-70- :type connect: integer, float, or None71-72- :param read:73- The maximum amount of time to wait between consecutive74- read operations for a response from the server. Omitting75- the parameter will default the read timeout to the system76- default, probably `the global default timeout in socket.py77- <http://hg.python.org/cpython/file/603b4d593758/Lib/socket.py#l535>`_.78- None will set an infinite timeout.79-80- :type read: integer, float, or None81-82- :param total:83- This combines the connect and read timeouts into one; the read timeout84- will be set to the time leftover from the connect attempt. In the85- event that both a connect timeout and a total are specified, or a read86- timeout and a total are specified, the shorter timeout will be applied.87-88- Defaults to None.89-90- :type total: integer, float, or None91-92- .. note::93-94- Many factors can affect the total amount of time for urllib3 to return95- an HTTP response. Specifically, Python's DNS resolver does not obey the96- timeout specified on the socket. Other factors that can affect total97- request time include high CPU load, high swap, the program running at a98- low priority level, or other behaviors. The observed running time for99- urllib3 to return a response may be greater than the value passed to100- `total`.101-102- In addition, the read and total timeouts only measure the time between103- read operations on the socket connecting the client and the server,104- not the total amount of time for the request to return a complete105- response. For most requests, the timeout is raised because the server106- has not sent the first byte in the specified time. This is not always107- the case; if a server streams one byte every fifteen seconds, a timeout108- of 20 seconds will not ever trigger, even though the request will109- take several minutes to complete.110-111- If your goal is to cut off any request after a set amount of wall clock112- time, consider having a second "watcher" thread to cut off a slow113- request.114- """115-116- #: A sentinel object representing the default timeout value117- DEFAULT_TIMEOUT = _GLOBAL_DEFAULT_TIMEOUT118-119- def __init__(self, total=None, connect=_Default, read=_Default):120- self._connect = self._validate_timeout(connect, 'connect')121- self._read = self._validate_timeout(read, 'read')122- self.total = self._validate_timeout(total, 'total')123- self._start_connect = None124-125- def __str__(self):126- return '%s(connect=%r, read=%r, total=%r)' % (127- type(self).__name__, self._connect, self._read, self.total)128-129-130- @classmethod131- def _validate_timeout(cls, value, name):132- """ Check that a timeout attribute is valid133-134- :param value: The timeout value to validate135- :param name: The name of the timeout attribute to validate. This is used136- for clear error messages137- :return: the value138- :raises ValueError: if the type is not an integer or a float, or if it139- is a numeric value less than zero140- """141- if value is _Default:142- return cls.DEFAULT_TIMEOUT143-144- if value is None or value is cls.DEFAULT_TIMEOUT:145- return value146-147- try:148- float(value)149- except (TypeError, ValueError):150- raise ValueError("Timeout value %s was %s, but it must be an "151- "int or float." % (name, value))152-153- try:154- if value < 0:155- raise ValueError("Attempted to set %s timeout to %s, but the "156- "timeout cannot be set to a value less "157- "than 0." % (name, value))158- except TypeError: # Python 3159- raise ValueError("Timeout value %s was %s, but it must be an "160- "int or float." % (name, value))161-162- return value163-164- @classmethod165- def from_float(cls, timeout):166- """ Create a new Timeout from a legacy timeout value.167-168- The timeout value used by httplib.py sets the same timeout on the169- connect(), and recv() socket requests. This creates a :class:`Timeout`170- object that sets the individual timeouts to the ``timeout`` value passed171- to this function.172-173- :param timeout: The legacy timeout value174- :type timeout: integer, float, sentinel default object, or None175- :return: a Timeout object176- :rtype: :class:`Timeout`177- """178- return Timeout(read=timeout, connect=timeout)179-180- def clone(self):181- """ Create a copy of the timeout object182-183- Timeout properties are stored per-pool but each request needs a fresh184- Timeout object to ensure each one has its own start/stop configured.185-186- :return: a copy of the timeout object187- :rtype: :class:`Timeout`188- """189- # We can't use copy.deepcopy because that will also create a new object190- # for _GLOBAL_DEFAULT_TIMEOUT, which socket.py uses as a sentinel to191- # detect the user default.192- return Timeout(connect=self._connect, read=self._read,193- total=self.total)194-195- def start_connect(self):196- """ Start the timeout clock, used during a connect() attempt197-198- :raises urllib3.exceptions.TimeoutStateError: if you attempt199- to start a timer that has been started already.200- """201- if self._start_connect is not None:202- raise TimeoutStateError("Timeout timer has already been started.")203- self._start_connect = current_time()204- return self._start_connect205-206- def get_connect_duration(self):207- """ Gets the time elapsed since the call to :meth:`start_connect`.208-209- :return: the elapsed time210- :rtype: float211- :raises urllib3.exceptions.TimeoutStateError: if you attempt212- to get duration for a timer that hasn't been started.213- """214- if self._start_connect is None:215- raise TimeoutStateError("Can't get connect duration for timer "216- "that has not started.")217- return current_time() - self._start_connect218-219- @property220- def connect_timeout(self):221- """ Get the value to use when setting a connection timeout.222-223- This will be a positive float or integer, the value None224- (never timeout), or the default system timeout.225-226- :return: the connect timeout227- :rtype: int, float, :attr:`Timeout.DEFAULT_TIMEOUT` or None228- """229- if self.total is None:230- return self._connect231-232- if self._connect is None or self._connect is self.DEFAULT_TIMEOUT:233- return self.total234-235- return min(self._connect, self.total)236-237- @property238- def read_timeout(self):239- """ Get the value for the read timeout.240-241- This assumes some time has elapsed in the connection timeout and242- computes the read timeout appropriately.243-244- If self.total is set, the read timeout is dependent on the amount of245- time taken by the connect timeout. If the connection time has not been246- established, a :exc:`~urllib3.exceptions.TimeoutStateError` will be247- raised.248-249- :return: the value to use for the read timeout250- :rtype: int, float, :attr:`Timeout.DEFAULT_TIMEOUT` or None251- :raises urllib3.exceptions.TimeoutStateError: If :meth:`start_connect`252- has not yet been called on this object.253- """254- if (self.total is not None and255- self.total is not self.DEFAULT_TIMEOUT and256- self._read is not None and257- self._read is not self.DEFAULT_TIMEOUT):258- # in case the connect timeout has not yet been established.259- if self._start_connect is None:260- return self._read261- return max(0, min(self.total - self.get_connect_duration(),262- self._read))263- elif self.total is not None and self.total is not self.DEFAULT_TIMEOUT:264- return max(0, self.total - self.get_connect_duration())265- else:266- return self._read267-268-269-class Url(namedtuple('Url', ['scheme', 'auth', 'host', 'port', 'path', 'query', 'fragment'])):270- """271- Datastructure for representing an HTTP URL. Used as a return value for272- :func:`parse_url`.273- """274- slots = ()275-276- def __new__(cls, scheme=None, auth=None, host=None, port=None, path=None, query=None, fragment=None):277- return super(Url, cls).__new__(cls, scheme, auth, host, port, path, query, fragment)278-279- @property280- def hostname(self):281- """For backwards-compatibility with urlparse. We're nice like that."""282- return self.host283-284- @property285- def request_uri(self):286- """Absolute path including the query string."""287- uri = self.path or '/'288-289- if self.query is not None:290- uri += '?' + self.query291-292- return uri293-294- @property295- def netloc(self):296- """Network location including host and port"""297- if self.port:298- return '%s:%d' % (self.host, self.port)299- return self.host300-301-302-def split_first(s, delims):303- """304- Given a string and an iterable of delimiters, split on the first found305- delimiter. Return two split parts and the matched delimiter.306-307- If not found, then the first part is the full input string.308-309- Example: ::310-311- >>> split_first('foo/bar?baz', '?/=')312- ('foo', 'bar?baz', '/')313- >>> split_first('foo/bar?baz', '123')314- ('foo/bar?baz', '', None)315-316- Scales linearly with number of delims. Not ideal for large number of delims.317- """318- min_idx = None319- min_delim = None320- for d in delims:321- idx = s.find(d)322- if idx < 0:323- continue324-325- if min_idx is None or idx < min_idx:326- min_idx = idx327- min_delim = d328-329- if min_idx is None or min_idx < 0:330- return s, '', None331-332- return s[:min_idx], s[min_idx+1:], min_delim333-334-335-def parse_url(url):336- """337- Given a url, return a parsed :class:`.Url` namedtuple. Best-effort is338- performed to parse incomplete urls. Fields not provided will be None.339-340- Partly backwards-compatible with :mod:`urlparse`.341-342- Example: ::343-344- >>> parse_url('http://google.com/mail/')345- Url(scheme='http', host='google.com', port=None, path='/', ...)346- >>> parse_url('google.com:80')347- Url(scheme=None, host='google.com', port=80, path=None, ...)348- >>> parse_url('/foo?bar')349- Url(scheme=None, host=None, port=None, path='/foo', query='bar', ...)350- """351-352- # While this code has overlap with stdlib's urlparse, it is much353- # simplified for our needs and less annoying.354- # Additionally, this implementations does silly things to be optimal355- # on CPython.356-357- scheme = None358- auth = None359- host = None360- port = None361- path = None362- fragment = None363- query = None364-365- # Scheme366- if '://' in url:367- scheme, url = url.split('://', 1)368-369- # Find the earliest Authority Terminator370- # (http://tools.ietf.org/html/rfc3986#section-3.2)371- url, path_, delim = split_first(url, ['/', '?', '#'])372-373- if delim:374- # Reassemble the path375- path = delim + path_376-377- # Auth378- if '@' in url:379- # Last '@' denotes end of auth part380- auth, url = url.rsplit('@', 1)381-382- # IPv6383- if url and url[0] == '[':384- host, url = url.split(']', 1)385- host += ']'386-387- # Port388- if ':' in url:389- _host, port = url.split(':', 1)390-391- if not host:392- host = _host393-394- if port:395- # If given, ports must be integers.396- if not port.isdigit():397- raise LocationParseError("Failed to parse: %s" % url)398- port = int(port)399- else:400- # Blank ports are cool, too. (rfc3986#section-3.2.3)401- port = None402-403- elif not host and url:404- host = url405-406- if not path:407- return Url(scheme, auth, host, port, path, query, fragment)408-409- # Fragment410- if '#' in path:411- path, fragment = path.split('#', 1)412-413- # Query414- if '?' in path:415- path, query = path.split('?', 1)416-417- return Url(scheme, auth, host, port, path, query, fragment)418-419-420-def get_host(url):421- """422- Deprecated. Use :func:`.parse_url` instead.423- """424- p = parse_url(url)425- return p.scheme or 'http', p.hostname, p.port426-427-428-def make_headers(keep_alive=None, accept_encoding=None, user_agent=None,429- basic_auth=None, proxy_basic_auth=None):430- """431- Shortcuts for generating request headers.432-433- :param keep_alive:434- If ``True``, adds 'connection: keep-alive' header.435-436- :param accept_encoding:437- Can be a boolean, list, or string.438- ``True`` translates to 'gzip,deflate'.439- List will get joined by comma.440- String will be used as provided.441-442- :param user_agent:443- String representing the user-agent you want, such as444- "python-urllib3/0.6"445-446- :param basic_auth:447- Colon-separated username:password string for 'authorization: basic ...'448- auth header.449-450- :param proxy_basic_auth:451- Colon-separated username:password string for 'proxy-authorization: basic ...'452- auth header.453-454- Example: ::455-456- >>> make_headers(keep_alive=True, user_agent="Batman/1.0")457- {'connection': 'keep-alive', 'user-agent': 'Batman/1.0'}458- >>> make_headers(accept_encoding=True)459- {'accept-encoding': 'gzip,deflate'}460- """461- headers = {}462- if accept_encoding:463- if isinstance(accept_encoding, str):464- pass465- elif isinstance(accept_encoding, list):466- accept_encoding = ','.join(accept_encoding)467- else:468- accept_encoding = 'gzip,deflate'469- headers['accept-encoding'] = accept_encoding470-471- if user_agent:472- headers['user-agent'] = user_agent473-474- if keep_alive:475- headers['connection'] = 'keep-alive'476-477- if basic_auth:478- headers['authorization'] = 'Basic ' + \479- b64encode(six.b(basic_auth)).decode('utf-8')480-481- if proxy_basic_auth:482- headers['proxy-authorization'] = 'Basic ' + \483- b64encode(six.b(proxy_basic_auth)).decode('utf-8')484-485- return headers486-487-488-def is_connection_dropped(conn): # Platform-specific489- """490- Returns True if the connection is dropped and should be closed.491-492- :param conn:493- :class:`httplib.HTTPConnection` object.494-495- Note: For platforms like AppEngine, this will always return ``False`` to496- let the platform handle connection recycling transparently for us.497- """498- sock = getattr(conn, 'sock', False)499- if not sock: # Platform-specific: AppEngine500- return False501-502- if not poll:503- if not select: # Platform-specific: AppEngine504- return False505-506- try:507- return select([sock], [], [], 0.0)[0]508- except SocketError:509- return True510-511- # This version is better on platforms that support it.512- p = poll()513- p.register(sock, POLLIN)514- for (fno, ev) in p.poll(0.0):515- if fno == sock.fileno():516- # Either data is buffered (bad), or the connection is dropped.517- return True518-519-520-def resolve_cert_reqs(candidate):521- """522- Resolves the argument to a numeric constant, which can be passed to523- the wrap_socket function/method from the ssl module.524- Defaults to :data:`ssl.CERT_NONE`.525- If given a string it is assumed to be the name of the constant in the526- :mod:`ssl` module or its abbrevation.527- (So you can specify `REQUIRED` instead of `CERT_REQUIRED`.528- If it's neither `None` nor a string we assume it is already the numeric529- constant which can directly be passed to wrap_socket.530- """531- if candidate is None:532- return CERT_NONE533-534- if isinstance(candidate, str):535- res = getattr(ssl, candidate, None)536- if res is None:537- res = getattr(ssl, 'CERT_' + candidate)538- return res539-540- return candidate541-542-543-def resolve_ssl_version(candidate):544- """545- like resolve_cert_reqs546- """547- if candidate is None:548- return PROTOCOL_SSLv23549-550- if isinstance(candidate, str):551- res = getattr(ssl, candidate, None)552- if res is None:553- res = getattr(ssl, 'PROTOCOL_' + candidate)554- return res555-556- return candidate557-558-559-def assert_fingerprint(cert, fingerprint):560- """561- Checks if given fingerprint matches the supplied certificate.562-563- :param cert:564- Certificate as bytes object.565- :param fingerprint:566- Fingerprint as string of hexdigits, can be interspersed by colons.567- """568-569- # Maps the length of a digest to a possible hash function producing570- # this digest.571- hashfunc_map = {572- 16: md5,573- 20: sha1574- }575-576- fingerprint = fingerprint.replace(':', '').lower()577-578- digest_length, rest = divmod(len(fingerprint), 2)579-580- if rest or digest_length not in hashfunc_map:581- raise SSLError('Fingerprint is of invalid length.')582-583- # We need encode() here for py32; works on py2 and p33.584- fingerprint_bytes = unhexlify(fingerprint.encode())585-586- hashfunc = hashfunc_map[digest_length]587-588- cert_digest = hashfunc(cert).digest()589-590- if not cert_digest == fingerprint_bytes:591- raise SSLError('Fingerprints did not match. Expected "{0}", got "{1}".'592- .format(hexlify(fingerprint_bytes),593- hexlify(cert_digest)))594-595-def is_fp_closed(obj):596- """597- Checks whether a given file-like object is closed.598-599- :param obj:600- The file-like object to check.601- """602- if hasattr(obj, 'fp'):603- # Object is a container for another file-like object that gets released604- # on exhaustion (e.g. HTTPResponse)605- return obj.fp is None606-607- return obj.closed608-609-610-if SSLContext is not None: # Python 3.2+611- def ssl_wrap_socket(sock, keyfile=None, certfile=None, cert_reqs=None,612- ca_certs=None, server_hostname=None,613- ssl_version=None):614- """615- All arguments except `server_hostname` have the same meaning as for616- :func:`ssl.wrap_socket`617-618- :param server_hostname:619- Hostname of the expected certificate620- """621- context = SSLContext(ssl_version)622- context.verify_mode = cert_reqs623- if ca_certs:624- try:625- context.load_verify_locations(ca_certs)626- # Py32 raises IOError627- # Py33 raises FileNotFoundError628- except Exception as e: # Reraise as SSLError629- raise SSLError(e)630- if certfile:631- # FIXME: This block needs a test.632- context.load_cert_chain(certfile, keyfile)633- if HAS_SNI: # Platform-specific: OpenSSL with enabled SNI634- return context.wrap_socket(sock, server_hostname=server_hostname)635- return context.wrap_socket(sock)636-637-else: # Python 3.1 and earlier638- def ssl_wrap_socket(sock, keyfile=None, certfile=None, cert_reqs=None,639- ca_certs=None, server_hostname=None,640- ssl_version=None):641- return wrap_socket(sock, keyfile=keyfile, certfile=certfile,642- ca_certs=ca_certs, cert_reqs=cert_reqs,643- ssl_version=ssl_version)modified:requests/packages/__init__.py+34 added-1 removed
1+'''2+Debian and other distributions "unbundle" requests' vendored dependencies, and3+rewrite all imports to use the global versions of ``urllib3`` and ``chardet``.4+The problem with this is that not only requests itself imports those5+dependencies, but third-party code outside of the distros' control too.6+7+In reaction to these problems, the distro maintainers replaced8+``requests.packages`` with a magical "stub module" that imports the correct9+modules. The implementations were varying in quality and all had severe10+problems. For example, a symlink (or hardlink) that links the correct modules11+into place introduces problems regarding object identity, since you now have12+two modules in `sys.modules` with the same API, but different identities::13+14+ requests.packages.urllib3 is not urllib315+16+With version ``2.5.2``, requests started to maintain its own stub, so that17+distro-specific breakage would be reduced to a minimum, even though the whole18+issue is not requests' fault in the first place. See19+https://github.com/kennethreitz/requests/pull/2375 for the corresponding pull20+request.21+'''22+23 from __future__ import absolute_import24+import sys25 26+try:3-from . import urllib327+ from . import urllib328+except ImportError:29+ import urllib330+ sys.modules['%s.urllib3' % __name__] = urllib331+32+try:33+ from . import chardet34+except ImportError:35+ import chardet36+ sys.modules['%s.chardet' % __name__] = chardetmodified:requests/packages/README.rst+5 added-2 removed
1 If you are planning to submit a pull request to requests with any changes in 2-this library do not go any further. These are independent libraries which we 3-vendor into requests. Any changes necessary to these libraries must be made in 2+this library do not go any further. These are independent libraries which we3+vendor into requests. Any changes necessary to these libraries must be made in4 them and submitted as separate pull requests to those libraries.5 6 urllib3 pull requests go here: https://github.com/shazow/urllib37 8 chardet pull requests go here: https://github.com/chardet/chardet9+10+See https://github.com/kennethreitz/requests/pull/1812#issuecomment-3085431611+for the reasoning behind this.modified:requests/__init__.py+14 added-8 removed
4 unmodified lines5 # / ( (- (/ (/ (- _) / _)6 # /7 8 """9-requests HTTP library9+Requests HTTP library10 ~~~~~~~~~~~~~~~~~~~~~11 12 Requests is an HTTP library, written in Python, for human beings. Basic GET13 usage:14 15 >>> import requests16- >>> r = requests.get('http://python.org')16+ >>> r = requests.get('https://www.python.org')17 >>> r.status_code18 20019 >>> 'Python is a programming language' in r.content20 True21 22 ... or POST:23 24 >>> payload = dict(key1='value1', key2='value2')25- >>> r = requests.post("http://httpbin.org/post", data=payload)25+ >>> r = requests.post('http://httpbin.org/post', data=payload)26 >>> print(r.text)27 {28 ...29 "form": {5 unmodified lines35 36 The other HTTP methods are supported - see `requests.api`. Full documentation37 is at <http://python-requests.org>.38 39-:copyright: (c) 2014 by Kenneth Reitz.39+:copyright: (c) 2015 by Kenneth Reitz.40 :license: Apache 2.0, see LICENSE for more details.41 42 """43 44 __title__ = 'requests'45-__version__ = '2.2.0'46-__build__ = 0x02020045+__version__ = '2.9.0'46+__build__ = 0x02090047 __author__ = 'Kenneth Reitz'48 __license__ = 'Apache 2.0'49-__copyright__ = 'Copyright 2014 Kenneth Reitz'49+__copyright__ = 'Copyright 2015 Kenneth Reitz'50 51 # Attempt to enable urllib3's SNI support, if possible52 try:53 from .packages.urllib3.contrib import pyopenssl7 unmodified lines61 from .sessions import session, Session62 from .status_codes import codes63 from .exceptions import (64 RequestException, Timeout, URLRequired,65- TooManyRedirects, HTTPError, ConnectionError65+ TooManyRedirects, HTTPError, ConnectionError,66+ FileModeWarning,67 )68 69 # Set default logging handler to avoid "No handler found" warnings.70 import logging4 unmodified lines75 def emit(self, record):76 pass77 78 logging.getLogger(__name__).addHandler(NullHandler())79+80+import warnings81+82+# FileModeWarnings go off per the default.83+warnings.simplefilter('default', FileModeWarning, append=True)modified:requests/adapters.py+112 added-59 removed
6 unmodified lines7 This module contains the transport adapters that Requests uses to define8 and maintain connections.9 """10 11+import os.path12 import socket13 14 from .models import Response15 from .packages.urllib3.poolmanager import PoolManager, proxy_from_url16 from .packages.urllib3.response import HTTPResponse17 from .packages.urllib3.util import Timeout as TimeoutSauce18+from .packages.urllib3.util.retry import Retry17-from .compat import urlparse, basestring, urldefrag, unquote19+from .compat import urlparse, basestring20 from .utils import (DEFAULT_CA_BUNDLE_PATH, get_encoding_from_headers,19- except_on_missing_scheme, get_auth_from_url)21+ prepend_scheme_if_needed, get_auth_from_url, urldefragauth,22+ select_proxy)23 from .structures import CaseInsensitiveDict21-from .packages.urllib3.exceptions import MaxRetryError22-from .packages.urllib3.exceptions import TimeoutError23-from .packages.urllib3.exceptions import SSLError as _SSLError24+from .packages.urllib3.exceptions import ClosedPoolError25+from .packages.urllib3.exceptions import ConnectTimeoutError26 from .packages.urllib3.exceptions import HTTPError as _HTTPError27+from .packages.urllib3.exceptions import MaxRetryError28+from .packages.urllib3.exceptions import NewConnectionError29 from .packages.urllib3.exceptions import ProxyError as _ProxyError30+from .packages.urllib3.exceptions import ProtocolError31+from .packages.urllib3.exceptions import ReadTimeoutError32+from .packages.urllib3.exceptions import SSLError as _SSLError33+from .packages.urllib3.exceptions import ResponseError34 from .cookies import extract_cookies_to_jar27-from .exceptions import ConnectionError, Timeout, SSLError, ProxyError35+from .exceptions import (ConnectionError, ConnectTimeout, ReadTimeout, SSLError,36+ ProxyError, RetryError)37 from .auth import _basic_auth_str38 39 DEFAULT_POOLBLOCK = False40 DEFAULT_POOLSIZE = 1041 DEFAULT_RETRIES = 042+DEFAULT_POOL_TIMEOUT = None43 44 45 class BaseAdapter(object):46 """The Base Transport Adapter"""18 unmodified lines65 66 :param pool_connections: The number of urllib3 connection pools to cache.67 :param pool_maxsize: The maximum number of connections to save in the pool.68 :param int max_retries: The maximum number of retries each connection59- should attempt. Note, this applies only to failed connections and60- timeouts, never to requests where the server returns a response.69+ should attempt. Note, this applies only to failed DNS lookups, socket70+ connections and connection timeouts, never to requests where data has71+ made it to the server. By default, Requests does not retry failed72+ connections. If you need granular control over the conditions under73+ which we retry a request, import urllib3's ``Retry`` class and pass74+ that instead.75 :param pool_block: Whether the connection pool should block for connections.76 77 Usage::78 7 unmodified lines86 87 def __init__(self, pool_connections=DEFAULT_POOLSIZE,88 pool_maxsize=DEFAULT_POOLSIZE, max_retries=DEFAULT_RETRIES,89 pool_block=DEFAULT_POOLBLOCK):76- self.max_retries = max_retries90+ if max_retries == DEFAULT_RETRIES:91+ self.max_retries = Retry(0, read=False)92+ else:93+ self.max_retries = Retry.from_int(max_retries)94 self.config = {}95 self.proxy_manager = {}96 97 super(HTTPAdapter, self).__init__()9 unmodified lines107 self.__attrs__)108 109 def __setstate__(self, state):110 # Can't handle by adding 'proxy_manager' to self.__attrs__ because94- # because self.poolmanager uses a lambda function, which isn't pickleable.111+ # self.poolmanager uses a lambda function, which isn't pickleable.112 self.proxy_manager = {}113 self.config = {}114 115 for attr, value in state.items():1 unmodified line117 118 self.init_poolmanager(self._pool_connections, self._pool_maxsize,119 block=self._pool_block)120 104- def init_poolmanager(self, connections, maxsize, block=DEFAULT_POOLBLOCK):105- """Initializes a urllib3 PoolManager. This method should not be called106- from user code, and is only exposed for use when subclassing the121+ def init_poolmanager(self, connections, maxsize, block=DEFAULT_POOLBLOCK, **pool_kwargs):122+ """Initializes a urllib3 PoolManager.123+124+ This method should not be called from user code, and is only125+ exposed for use when subclassing the126 :class:`HTTPAdapter <requests.adapters.HTTPAdapter>`.127 128 :param connections: The number of urllib3 connection pools to cache.129 :param maxsize: The maximum number of connections to save in the pool.130 :param block: Block when no free connections are available.131+ :param pool_kwargs: Extra keyword arguments used to initialize the Pool Manager.132 """133 # save these values for pickling134 self._pool_connections = connections135 self._pool_maxsize = maxsize136 self._pool_block = block137 138 self.poolmanager = PoolManager(num_pools=connections, maxsize=maxsize,119- block=block)139+ block=block, strict=True, **pool_kwargs)140 141+ def proxy_manager_for(self, proxy, **proxy_kwargs):142+ """Return urllib3 ProxyManager for the given proxy.143+144+ This method should not be called from user code, and is only145+ exposed for use when subclassing the146+ :class:`HTTPAdapter <requests.adapters.HTTPAdapter>`.147+148+ :param proxy: The proxy to return a urllib3 ProxyManager for.149+ :param proxy_kwargs: Extra keyword arguments used to configure the Proxy Manager.150+ :returns: ProxyManager151+ """152+ if not proxy in self.proxy_manager:153+ proxy_headers = self.proxy_headers(proxy)154+ self.proxy_manager[proxy] = proxy_from_url(155+ proxy,156+ proxy_headers=proxy_headers,157+ num_pools=self._pool_connections,158+ maxsize=self._pool_maxsize,159+ block=self._pool_block,160+ **proxy_kwargs)161+162+ return self.proxy_manager[proxy]163+164 def cert_verify(self, conn, url, verify, cert):165 """Verify a SSL certificate. This method should not be called from user166 code, and is only exposed for use when subclassing the167 :class:`HTTPAdapter <requests.adapters.HTTPAdapter>`.17 unmodified lines185 if not cert_loc:186 raise Exception("Could not find a suitable SSL CA certificate bundle.")187 188 conn.cert_reqs = 'CERT_REQUIRED'189+190+ if not os.path.isdir(cert_loc):146- conn.ca_certs = cert_loc191+ conn.ca_certs = cert_loc192+ else:193+ conn.ca_cert_dir = cert_loc194 else:195 conn.cert_reqs = 'CERT_NONE'196 conn.ca_certs = None197+ conn.ca_cert_dir = None198 199 if cert:200 if not isinstance(cert, basestring):201 conn.cert_file = cert[0]44 unmodified lines246 247 :param url: The URL to connect to.248 :param proxies: (optional) A Requests-style dictionary of proxies used on this request.249 """202- proxies = proxies or {}203- proxy = proxies.get(urlparse(url.lower()).scheme)250+ proxy = select_proxy(url, proxies)251 252 if proxy:206- except_on_missing_scheme(proxy)207- proxy_headers = self.proxy_headers(proxy)208-209- if not proxy in self.proxy_manager:210- self.proxy_manager[proxy] = proxy_from_url(211- proxy,212- proxy_headers=proxy_headers,213- num_pools=self._pool_connections,214- maxsize=self._pool_maxsize,215- block=self._pool_block)216-217- conn = self.proxy_manager[proxy].connection_from_url(url)253+ proxy = prepend_scheme_if_needed(proxy, 'http')254+ proxy_manager = self.proxy_manager_for(proxy)255+ conn = proxy_manager.connection_from_url(url)256 else:257 # Only scheme should be lower case258 parsed = urlparse(url)259 url = parsed.geturl()19 unmodified lines279 when subclassing the280 :class:`HTTPAdapter <requests.adapters.HTTPAdapter>`.281 282 :param request: The :class:`PreparedRequest <PreparedRequest>` being sent.245- :param proxies: A dictionary of schemes to proxy URLs.283+ :param proxies: A dictionary of schemes or schemes and hosts to proxy URLs.284 """247- proxies = proxies or {}285+ proxy = select_proxy(request.url, proxies)286 scheme = urlparse(request.url).scheme249- proxy = proxies.get(scheme)250-287 if proxy and scheme != 'https':252- url, _ = urldefrag(request.url)288+ url = urldefragauth(request.url)289 else:290 url = request.path_url291 292 return url22 unmodified lines315 when subclassing the316 :class:`HTTPAdapter <requests.adapters.HTTPAdapter>`.317 318 :param proxies: The url of the proxy being used for this request.283- :param kwargs: Optional additional keyword arguments.319 """320 headers = {}321 username, password = get_auth_from_url(proxy)322 323 if username and password:289- # Proxy auth usernames and passwords will be urlencoded, we need290- # to decode them.291- username = unquote(username)292- password = unquote(password)324 headers['Proxy-Authorization'] = _basic_auth_str(username,325 password)326 327 return headers2 unmodified lines330 """Sends PreparedRequest object. Returns Response object.331 332 :param request: The :class:`PreparedRequest <PreparedRequest>` being sent.333 :param stream: (optional) Whether to stream the request content.303- :param timeout: (optional) The timeout on the request.334+ :param timeout: (optional) How long to wait for the server to send335+ data before giving up, as a float, or a :ref:`(connect timeout,336+ read timeout) <timeouts>` tuple.337+ :type timeout: float or tuple338 :param verify: (optional) Whether to verify SSL certificates.339 :param cert: (optional) Any user-provided SSL certificate to be trusted.340 :param proxies: (optional) The proxies dictionary to apply to the request.341 """5 unmodified lines347 self.add_headers(request)348 349 chunked = not (request.body is None or 'Content-Length' in request.headers)350 317- if stream:318- timeout = TimeoutSauce(connect=timeout)351+ if isinstance(timeout, tuple):352+ try:353+ connect, read = timeout354+ timeout = TimeoutSauce(connect=connect, read=read)355+ except ValueError as e:356+ # this may raise a string formatting error.357+ err = ("Invalid timeout {0}. Pass a (connect, read) "358+ "timeout tuple, or a single float to set "359+ "both timeouts to the same value".format(timeout))360+ raise ValueError(err)361 else:362 timeout = TimeoutSauce(connect=timeout, read=timeout)363 364 try:15 unmodified lines380 else:381 if hasattr(conn, 'proxy_pool'):382 conn = conn.proxy_pool383 342- low_conn = conn._get_conn(timeout=timeout)384+ low_conn = conn._get_conn(timeout=DEFAULT_POOL_TIMEOUT)385 386 try:387 low_conn.putrequest(request.method,388 url,10 unmodified lines399 low_conn.send(i)400 low_conn.send(b'\r\n')401 low_conn.send(b'0\r\n\r\n')402 403+ # Receive the response from the server404+ try:405+ # For Python 2.7+ versions, use buffering of HTTP406+ # responses407+ r = low_conn.getresponse(buffering=True)408+ except TypeError:409+ # For compatibility with Python 2.6 versions and back361- r = low_conn.getresponse()410+ r = low_conn.getresponse()411+412 resp = HTTPResponse.from_httplib(413 r,414 pool=conn,415 connection=low_conn,4 unmodified lines420 # If we hit any problems here, clean up the connection.421 # Then, reraise so that we can handle the actual exception.422 low_conn.close()423 raise374- else:375- # All is well, return the connection to the pool.376- conn._put_conn(low_conn)424 378- except socket.error as sockerr:379- raise ConnectionError(sockerr)425+ except (ProtocolError, socket.error) as err:426+ raise ConnectionError(err, request=request)427 428 except MaxRetryError as e:382- raise ConnectionError(e)429+ if isinstance(e.reason, ConnectTimeoutError):430+ # TODO: Remove this in 3.0.0: see #2811431+ if not isinstance(e.reason, NewConnectionError):432+ raise ConnectTimeout(e, request=request)433 434+ if isinstance(e.reason, ResponseError):435+ raise RetryError(e, request=request)436+437+ raise ConnectionError(e, request=request)438+439+ except ClosedPoolError as e:440+ raise ConnectionError(e, request=request)441+442 except _ProxyError as e:443 raise ProxyError(e)444 445 except (_SSLError, _HTTPError) as e:446 if isinstance(e, _SSLError):389- raise SSLError(e)390- elif isinstance(e, TimeoutError):391- raise Timeout(e)447+ raise SSLError(e, request=request)448+ elif isinstance(e, ReadTimeoutError):449+ raise ReadTimeout(e, request=request)450 else:451 raise452 395- r = self.build_response(request, resp)396-397- if not stream:398- r.content399-400- return r453+ return self.build_response(request, resp)modified:requests/api.py+42 added-17 removed
14 unmodified lines15 16 17 def request(method, url, **kwargs):18 """Constructs and sends a :class:`Request <Request>`.19- Returns :class:`Response <Response>` object.19 20 :param method: method for the new :class:`Request` object.21 :param url: URL for the new :class:`Request` object.22 :param params: (optional) Dictionary or bytes to be sent in the query string for the :class:`Request`.23 :param data: (optional) Dictionary, bytes, or file-like object to send in the body of the :class:`Request`.24+ :param json: (optional) json data to send in the body of the :class:`Request`.25 :param headers: (optional) Dictionary of HTTP Headers to send with the :class:`Request`.26 :param cookies: (optional) Dict or CookieJar object to send with the :class:`Request`.27- :param files: (optional) Dictionary of 'name': file-like-objects (or {'name': ('filename', fileobj)}) for multipart encoding upload.27+ :param files: (optional) Dictionary of ``'name': file-like-objects`` (or ``{'name': ('filename', fileobj)}``) for multipart encoding upload.28 :param auth: (optional) Auth tuple to enable Basic/Digest/Custom HTTP Auth.29- :param timeout: (optional) Float describing the timeout of the request.29+ :param timeout: (optional) How long to wait for the server to send data30+ before giving up, as a float, or a :ref:`(connect timeout, read31+ timeout) <timeouts>` tuple.32+ :type timeout: float or tuple33 :param allow_redirects: (optional) Boolean. Set to True if POST/PUT/DELETE redirect following is allowed.34+ :type allow_redirects: bool35 :param proxies: (optional) Dictionary mapping protocol to the URL of the proxy.32- :param verify: (optional) if ``True``, the SSL cert will be verified. A CA_BUNDLE path can also be provided.36+ :param verify: (optional) whether the SSL cert will be verified. A CA_BUNDLE path can also be provided. Defaults to ``True``.37 :param stream: (optional) if ``False``, the response content will be immediately downloaded.38 :param cert: (optional) if String, path to ssl client cert file (.pem). If Tuple, ('cert', 'key') pair.39+ :return: :class:`Response <Response>` object40+ :rtype: requests.Response41 42 Usage::43 44 >>> import requests45 >>> req = requests.request('GET', 'http://httpbin.org/get')46 <Response [200]>47 """48 43- session = sessions.Session()44- return session.request(method=method, url=url, **kwargs)49+ # By using the 'with' statement we are sure the session is closed, thus we50+ # avoid leaving sockets open which can trigger a ResourceWarning in some51+ # cases, and look like a memory leak in others.52+ with sessions.Session() as session:53+ return session.request(method=method, url=url, **kwargs)54 55 47-def get(url, **kwargs):48- """Sends a GET request. Returns :class:`Response` object.56+def get(url, params=None, **kwargs):57+ """Sends a GET request.58 59 :param url: URL for the new :class:`Request` object.60+ :param params: (optional) Dictionary or bytes to be sent in the query string for the :class:`Request`.61 :param \*\*kwargs: Optional arguments that ``request`` takes.62+ :return: :class:`Response <Response>` object63+ :rtype: requests.Response64 """65 66 kwargs.setdefault('allow_redirects', True)55- return request('get', url, **kwargs)67+ return request('get', url, params=params, **kwargs)68 69 70 def options(url, **kwargs):59- """Sends a OPTIONS request. Returns :class:`Response` object.71+ """Sends a OPTIONS request.72 73 :param url: URL for the new :class:`Request` object.74 :param \*\*kwargs: Optional arguments that ``request`` takes.75+ :return: :class:`Response <Response>` object76+ :rtype: requests.Response77 """78 79 kwargs.setdefault('allow_redirects', True)80 return request('options', url, **kwargs)81 82 83 def head(url, **kwargs):70- """Sends a HEAD request. Returns :class:`Response` object.84+ """Sends a HEAD request.85 86 :param url: URL for the new :class:`Request` object.87 :param \*\*kwargs: Optional arguments that ``request`` takes.88+ :return: :class:`Response <Response>` object89+ :rtype: requests.Response90 """91 92 kwargs.setdefault('allow_redirects', False)93 return request('head', url, **kwargs)94 95 80-def post(url, data=None, **kwargs):81- """Sends a POST request. Returns :class:`Response` object.96+def post(url, data=None, json=None, **kwargs):97+ """Sends a POST request.98 99 :param url: URL for the new :class:`Request` object.100 :param data: (optional) Dictionary, bytes, or file-like object to send in the body of the :class:`Request`.101+ :param json: (optional) json data to send in the body of the :class:`Request`.102 :param \*\*kwargs: Optional arguments that ``request`` takes.103+ :return: :class:`Response <Response>` object104+ :rtype: requests.Response105 """106 88- return request('post', url, data=data, **kwargs)107+ return request('post', url, data=data, json=json, **kwargs)108 109 110 def put(url, data=None, **kwargs):92- """Sends a PUT request. Returns :class:`Response` object.111+ """Sends a PUT request.112 113 :param url: URL for the new :class:`Request` object.114 :param data: (optional) Dictionary, bytes, or file-like object to send in the body of the :class:`Request`.115 :param \*\*kwargs: Optional arguments that ``request`` takes.116+ :return: :class:`Response <Response>` object117+ :rtype: requests.Response118 """119 120 return request('put', url, data=data, **kwargs)121 122 123 def patch(url, data=None, **kwargs):103- """Sends a PATCH request. Returns :class:`Response` object.124+ """Sends a PATCH request.125 126 :param url: URL for the new :class:`Request` object.127 :param data: (optional) Dictionary, bytes, or file-like object to send in the body of the :class:`Request`.128 :param \*\*kwargs: Optional arguments that ``request`` takes.129+ :return: :class:`Response <Response>` object130+ :rtype: requests.Response131 """132 133 return request('patch', url, data=data, **kwargs)134 135 136 def delete(url, **kwargs):114- """Sends a DELETE request. Returns :class:`Response` object.137+ """Sends a DELETE request.138 139 :param url: URL for the new :class:`Request` object.140 :param \*\*kwargs: Optional arguments that ``request`` takes.141+ :return: :class:`Response <Response>` object142+ :rtype: requests.Response143 """144 145 return request('delete', url, **kwargs)modified:requests/auth.py+61 added-34 removed
9 unmodified lines10 import os11 import re12 import time13 import hashlib14-import logging14+import threading15 16 from base64 import b64encode17 18 from .compat import urlparse, str19 from .cookies import extract_cookies_to_jar20-from .utils import parse_dict_header20+from .utils import parse_dict_header, to_native_string21+from .status_codes import codes22 22-log = logging.getLogger(__name__)23-23 CONTENT_TYPE_FORM_URLENCODED = 'application/x-www-form-urlencoded'24 CONTENT_TYPE_MULTI_PART = 'multipart/form-data'25 26 27 def _basic_auth_str(username, password):28 """Returns a Basic Auth string."""29 31- return 'Basic ' + b64encode(('%s:%s' % (username, password)).encode('latin1')).strip().decode('latin1')30+ authstr = 'Basic ' + to_native_string(31+ b64encode(('%s:%s' % (username, password)).encode('latin1')).strip()32+ )33 34+ return authstr35 36+37 class AuthBase(object):38 """Base class that all auth implementations derive from"""39 40 def __call__(self, r):22 unmodified lines63 """Attaches HTTP Digest Authentication to the given Request object."""64 def __init__(self, username, password):65 self.username = username66 self.password = password64- self.last_nonce = ''65- self.nonce_count = 066- self.chal = {}67- self.pos = None67+ # Keep state in per-thread local storage68+ self._thread_local = threading.local()69 70+ def init_per_thread_state(self):71+ # Ensure state is initialized just once per-thread72+ if not hasattr(self._thread_local, 'init'):73+ self._thread_local.init = True74+ self._thread_local.last_nonce = ''75+ self._thread_local.nonce_count = 076+ self._thread_local.chal = {}77+ self._thread_local.pos = None78+ self._thread_local.num_401_calls = None79+80 def build_digest_header(self, method, url):81 71- realm = self.chal['realm']72- nonce = self.chal['nonce']73- qop = self.chal.get('qop')74- algorithm = self.chal.get('algorithm')75- opaque = self.chal.get('opaque')82+ realm = self._thread_local.chal['realm']83+ nonce = self._thread_local.chal['nonce']84+ qop = self._thread_local.chal.get('qop')85+ algorithm = self._thread_local.chal.get('algorithm')86+ opaque = self._thread_local.chal.get('opaque')87 88 if algorithm is None:89 _algorithm = 'MD5'90 else:19 unmodified lines110 111 # XXX not implemented yet112 entdig = None113 p_parsed = urlparse(url)114+ #: path is request-uri defined in RFC 2616 which should not be empty103- path = p_parsed.path115+ path = p_parsed.path or "/"116 if p_parsed.query:117 path += '?' + p_parsed.query118 119 A1 = '%s:%s:%s' % (self.username, realm, self.password)1 unmodified line121 122 HA1 = hash_utf8(A1)123 HA2 = hash_utf8(A2)124 113- if nonce == self.last_nonce:114- self.nonce_count += 1125+ if nonce == self._thread_local.last_nonce:126+ self._thread_local.nonce_count += 1127 else:116- self.nonce_count = 1117- ncvalue = '%08x' % self.nonce_count118- s = str(self.nonce_count).encode('utf-8')128+ self._thread_local.nonce_count = 1129+ ncvalue = '%08x' % self._thread_local.nonce_count130+ s = str(self._thread_local.nonce_count).encode('utf-8')131 s += nonce.encode('utf-8')132 s += time.ctime().encode('utf-8')133 s += os.urandom(8)134 135 cnonce = (hashlib.sha1(s).hexdigest()[:16])124- noncebit = "%s:%s:%s:%s:%s" % (nonce, ncvalue, cnonce, qop, HA2)136 if _algorithm == 'MD5-SESS':137 HA1 = hash_utf8('%s:%s:%s' % (HA1, nonce, cnonce))138 128- if qop is None:139+ if not qop:140 respdig = KD(HA1, "%s:%s" % (nonce, HA2))141 elif qop == 'auth' or 'auth' in qop.split(','):142+ noncebit = "%s:%s:%s:%s:%s" % (143+ nonce, ncvalue, cnonce, 'auth', HA2144+ )145 respdig = KD(HA1, noncebit)146 else:147 # XXX handle auth-int.148 return None149 136- self.last_nonce = nonce150+ self._thread_local.last_nonce = nonce151 152 # XXX should the partial digests be encoded too?153 base = 'username="%s", realm="%s", nonce="%s", uri="%s", ' \154 'response="%s"' % (self.username, realm, nonce, path, respdig)7 unmodified lines162 base += ', qop="auth", nc=%s, cnonce="%s"' % (ncvalue, cnonce)163 164 return 'Digest %s' % (base)165 166+ def handle_redirect(self, r, **kwargs):167+ """Reset num_401_calls counter on redirects."""168+ if r.is_redirect:169+ self._thread_local.num_401_calls = 1170+171 def handle_401(self, r, **kwargs):172 """Takes the given response and tries digest-auth, if needed."""173 155- if self.pos is not None:174+ if self._thread_local.pos is not None:175 # Rewind the file position indicator of the body to where176 # it was to resend the request.158- r.request.body.seek(self.pos)159- num_401_calls = getattr(self, 'num_401_calls', 1)177+ r.request.body.seek(self._thread_local.pos)178 s_auth = r.headers.get('www-authenticate', '')179 162- if 'digest' in s_auth.lower() and num_401_calls < 2:180+ if 'digest' in s_auth.lower() and self._thread_local.num_401_calls < 2:181 164- setattr(self, 'num_401_calls', num_401_calls + 1)182+ self._thread_local.num_401_calls += 1183 pat = re.compile(r'digest ', flags=re.IGNORECASE)166- self.chal = parse_dict_header(pat.sub('', s_auth, count=1))184+ self._thread_local.chal = parse_dict_header(pat.sub('', s_auth, count=1))185 186 # Consume content and release the original connection187 # to allow our new request to reuse the same one.188 r.content171- r.raw.release_conn()189+ r.close()190 prep = r.request.copy()191 extract_cookies_to_jar(prep._cookies, r.request, r.raw)192 prep.prepare_cookies(prep._cookies)193 4 unmodified lines198 _r.request = prep199 200 return _r201 184- setattr(self, 'num_401_calls', 1)202+ self._thread_local.num_401_calls = 1203 return r204 205 def __call__(self, r):206+ # Initialize per-thread state, if needed207+ self.init_per_thread_state()208 # If we have a saved nonce, skip the 401189- if self.last_nonce:209+ if self._thread_local.last_nonce:210 r.headers['Authorization'] = self.build_digest_header(r.method, r.url)211 try:192- self.pos = r.body.tell()212+ self._thread_local.pos = r.body.tell()213 except AttributeError:194- pass214+ # In the case of HTTPDigestAuth being reused and the body of215+ # the previous request was a file-like object, pos has the216+ # file position of the previous body. Ensure it's set to217+ # None.218+ self._thread_local.pos = None219 r.register_hook('response', self.handle_401)220+ r.register_hook('response', self.handle_redirect)221+ self._thread_local.num_401_calls = 1222+223 return rmodified:requests/cacert.pem+1385 added-795 removed
1-# This Source Code Form is subject to the terms of the Mozilla Public2-# License, v. 2.0. If a copy of the MPL was not distributed with this3-# file, You can obtain one at http://mozilla.org/MPL/2.0/.1 5-# Issuer: CN=GTE CyberTrust Global Root O=GTE Corporation OU=GTE CyberTrust Solutions, Inc.6-# Subject: CN=GTE CyberTrust Global Root O=GTE Corporation OU=GTE CyberTrust Solutions, Inc.7-# Label: "GTE CyberTrust Global Root"8-# Serial: 4219-# MD5 Fingerprint: ca:3d:d3:68:f1:03:5c:d0:32:fa:b8:2b:59:e8:5a:db10-# SHA1 Fingerprint: 97:81:79:50:d8:1c:96:70:cc:34:d8:09:cf:79:44:31:36:7e:f4:7411-# SHA256 Fingerprint: a5:31:25:18:8d:21:10:aa:96:4b:02:c7:b7:c6:da:32:03:17:08:94:e5:fb:71:ff:fb:66:67:d5:e6:81:0a:3612------BEGIN CERTIFICATE-----13-MIICWjCCAcMCAgGlMA0GCSqGSIb3DQEBBAUAMHUxCzAJBgNVBAYTAlVTMRgwFgYD14-VQQKEw9HVEUgQ29ycG9yYXRpb24xJzAlBgNVBAsTHkdURSBDeWJlclRydXN0IFNv15-bHV0aW9ucywgSW5jLjEjMCEGA1UEAxMaR1RFIEN5YmVyVHJ1c3QgR2xvYmFsIFJv16-b3QwHhcNOTgwODEzMDAyOTAwWhcNMTgwODEzMjM1OTAwWjB1MQswCQYDVQQGEwJV17-UzEYMBYGA1UEChMPR1RFIENvcnBvcmF0aW9uMScwJQYDVQQLEx5HVEUgQ3liZXJU18-cnVzdCBTb2x1dGlvbnMsIEluYy4xIzAhBgNVBAMTGkdURSBDeWJlclRydXN0IEds19-b2JhbCBSb290MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCVD6C28FCc6HrH20-iM3dFw4usJTQGz0O9pTAipTHBsiQl8i4ZBp6fmw8U+E3KHNgf7KXUwefU/ltWJTS21-r41tiGeA5u2ylc9yMcqlHHK6XALnZELn+aks1joNrI1CqiQBOeacPwGFVw1Yh0X422-04Wqk2kmhXBIgD8SFcd5tB8FLztimQIDAQABMA0GCSqGSIb3DQEBBAUAA4GBAG3r23-GwnpXtlR22ciYaQqPEh346B8pt5zohQDhT37qw4wxYMWM4ETCJ57NE7fQMh017l924-3PR2VX2bY1QY6fDq81yx2YtCHrnAlU66+tXifPVoYb+O7AWXX1uw16OFNMQkpw0P25-lZPvy5TYnh+dXIVtx6quTx8itc2VrbqnzPmrC3p/26------END CERTIFICATE-----27-28-# Issuer: CN=Thawte Server CA O=Thawte Consulting cc OU=Certification Services Division29-# Subject: CN=Thawte Server CA O=Thawte Consulting cc OU=Certification Services Division30-# Label: "Thawte Server CA"31-# Serial: 132-# MD5 Fingerprint: c5:70:c4:a2:ed:53:78:0c:c8:10:53:81:64:cb:d0:1d33-# SHA1 Fingerprint: 23:e5:94:94:51:95:f2:41:48:03:b4:d5:64:d2:a3:a3:f5:d8:8b:8c34-# SHA256 Fingerprint: b4:41:0b:73:e2:e6:ea:ca:47:fb:c4:2f:8f:a4:01:8a:f4:38:1d:c5:4c:fa:a8:44:50:46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KJpaPNW15yAbi8qkq43pUdniTCxZ52-qdq5snUb9kLy78fyGPmJvKP/iiMucEc=53------END CERTIFICATE-----54-55-# Issuer: CN=Thawte Premium Server CA O=Thawte Consulting cc OU=Certification Services Division56-# Subject: CN=Thawte Premium Server CA O=Thawte Consulting cc OU=Certification Services Division57-# Label: "Thawte Premium Server CA"58-# Serial: 159-# MD5 Fingerprint: 06:9f:69:79:16:66:90:02:1b:8c:8c:a2:c3:07:6f:3a60-# SHA1 Fingerprint: 62:7f:8d:78:27:65:63:99:d2:7d:7f:90:44:c9:fe:b3:f3:3e:fa:9a61-# SHA256 Fingerprint: ab:70:36:36:5c:71:54:aa:29:c2:c2:9f:5d:41:91:16:3b:16:2a:22:25:01:13:57:d5:6d:07:ff:a7:bc:1f:7262------BEGIN CERTIFICATE-----63-MIIDJzCCApCgAwIBAgIBATANBgkqhkiG9w0BAQQFADCBzjELMAkGA1UEBhMCWkEx64-FTATBgNVBAgTDFdlc3Rlcm4gQ2FwZTESMBAGA1UEBxMJQ2FwZSBUb3duMR0wGwYD65-VQQKExRUaGF3dGUgQ29uc3VsdGluZyBjYzEoMCYGA1UECxMfQ2VydGlmaWNhdGlv66-biBTZXJ2aWNlcyBEaXZpc2lvbjEhMB8GA1UEAxMYVGhhd3RlIFByZW1pdW0gU2Vy67-dmVyIENBMSgwJgYJKoZIhvcNAQkBFhlwcmVtaXVtLXNlcnZlckB0aGF3dGUuY29t68-MB4XDTk2MDgwMTAwMDAwMFoXDTIwMTIzMTIzNTk1OVowgc4xCzAJBgNVBAYTAlpB69-MRUwEwYDVQQIEwxXZXN0ZXJuIENhcGUxEjAQBgNVBAcTCUNhcGUgVG93bjEdMBsG70-A1UEChMUVGhhd3RlIENvbnN1bHRpbmcgY2MxKDAmBgNVBAsTH0NlcnRpZmljYXRp71-b24gU2VydmljZXMgRGl2aXNpb24xITAfBgNVBAMTGFRoYXd0ZSBQcmVtaXVtIFNl72-cnZlciBDQTEoMCYGCSqGSIb3DQEJARYZcHJlbWl1bS1zZXJ2ZXJAdGhhd3RlLmNv73-bTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA0jY2aovXwlue2oFBYo847kkE74-VdbQ7xwblRZH7xhINTpS9CtqBo87L+pW46+GjZ4X9560ZXUCTe/LCaIhUdib0GfQ75-ug2SBhRz1JPLlyoAnFxODLz6FVL88kRu2hFKbgifLy3j+ao6hnO2RlNYyIkFvYMR76-uHM/qgeN9EJN50CdHDcCAwEAAaMTMBEwDwYDVR0TAQH/BAUwAwEB/zANBgkqhkiG77-9w0BAQQFAAOBgQAmSCwWwlj66BZ0DKqqX1Q/8tfJeGBeXm43YyJ3Nn6yF8Q0ufUI78-hfzJATj/Tb7yFkJD57taRvvBxhEf8UqwKEbJw8RCfbz6q1lu1bdRiBHjpIUZa4JM79-pAwSremkrj/xw0llmozFyD4lt5SZu5IycQfwhl7tUCemDaYj+bvLpgcUQg==80------END CERTIFICATE-----81-2 # Issuer: O=Equifax OU=Equifax Secure Certificate Authority3 # Subject: O=Equifax OU=Equifax Secure Certificate Authority4 # Label: "Equifax Secure CA"5 # Serial: 90380411119 unmodified lines25 7qj/WsjTVbJmcVfewCHrPSqnI0kBBIZCe/zuf6IWUrVnZ9NA2zsmWLIodz2uFHdh26 1voqZiegDfqnc1zqcPGUIWVEX/r87yloqaKHee9570+sB3c427 -----END CERTIFICATE-----28 109-# Issuer: O=VeriSign, Inc. OU=Class 3 Public Primary Certification Authority110-# Subject: O=VeriSign, Inc. OU=Class 3 Public Primary Certification Authority111-# Label: "Verisign Class 3 Public Primary Certification Authority"112-# Serial: 149843929435818692848040365716851702463113-# MD5 Fingerprint: 10:fc:63:5d:f6:26:3e:0d:f3:25:be:5f:79:cd:67:67114-# SHA1 Fingerprint: 74:2c:31:92:e6:07:e4:24:eb:45:49:54:2b:e1:bb:c5:3e:61:74:e2115-# SHA256 Fingerprint: e7:68:56:34:ef:ac:f6:9a:ce:93:9a:6b:25:5b:7b:4f:ab:ef:42:93:5b:50:a2:65:ac:b5:cb:60:27:e4:4e:70116------BEGIN CERTIFICATE-----117-MIICPDCCAaUCEHC65B0Q2Sk0tjjKewPMur8wDQYJKoZIhvcNAQECBQAwXzELMAkG118-A1UEBhMCVVMxFzAVBgNVBAoTDlZlcmlTaWduLCBJbmMuMTcwNQYDVQQLEy5DbGFz119-cyAzIFB1YmxpYyBQcmltYXJ5IENlcnRpZmljYXRpb24gQXV0aG9yaXR5MB4XDTk2120-MDEyOTAwMDAwMFoXDTI4MDgwMTIzNTk1OVowXzELMAkGA1UEBhMCVVMxFzAVBgNV121-BAoTDlZlcmlTaWduLCBJbmMuMTcwNQYDVQQLEy5DbGFzcyAzIFB1YmxpYyBQcmlt122-YXJ5IENlcnRpZmljYXRpb24gQXV0aG9yaXR5MIGfMA0GCSqGSIb3DQEBAQUAA4GN123-ADCBiQKBgQDJXFme8huKARS0EN8EQNvjV69qRUCPhAwL0TPZ2RHP7gJYHyX3KqhE124-BarsAx94f56TuZoAqiN91qyFomNFx3InzPRMxnVx0jnvT0Lwdd8KkMaOIG+YD/is125-I19wKTakyYbnsZogy1Olhec9vn2a/iRFM9x2Fe0PonFkTGUugWhFpwIDAQABMA0G126-CSqGSIb3DQEBAgUAA4GBALtMEivPLCYATxQT3ab7/AoRhIzzKBxnki98tsX63/Do127-lbwdj2wsqFHMc9ikwFPwTtYmwHYBV4GSXiHx0bH/59AhWM1pF+NEHJwZRDmJXNyc128-AA9WjQKZ7aKQRUzkuxCkPfAyAw7xzvjoyVGM5mKf5p/AfbdynMk2OmufTqj/ZA1k129------END CERTIFICATE-----130-131-# Issuer: O=VeriSign, Inc. OU=Class 3 Public Primary Certification Authority - G2/(c) 1998 VeriSign, Inc. - For authorized use only/VeriSign Trust Network132-# Subject: O=VeriSign, Inc. OU=Class 3 Public Primary Certification Authority - G2/(c) 1998 VeriSign, Inc. - For authorized use only/VeriSign Trust Network133-# Label: "Verisign Class 3 Public Primary Certification Authority - G2"134-# Serial: 167285380242319648451154478808036881606135-# MD5 Fingerprint: a2:33:9b:4c:74:78:73:d4:6c:e7:c1:f3:8d:cb:5c:e9136-# SHA1 Fingerprint: 85:37:1c:a6:e5:50:14:3d:ce:28:03:47:1b:de:3a:09:e8:f8:77:0f137-# SHA256 Fingerprint: 83:ce:3c:12:29:68:8a:59:3d:48:5f:81:97:3c:0f:91:95:43:1e:da:37:cc:5e:36:43:0e:79:c7:a8:88:63:8b138------BEGIN CERTIFICATE-----139-MIIDAjCCAmsCEH3Z/gfPqB63EHln+6eJNMYwDQYJKoZIhvcNAQEFBQAwgcExCzAJ140-BgNVBAYTAlVTMRcwFQYDVQQKEw5WZXJpU2lnbiwgSW5jLjE8MDoGA1UECxMzQ2xh141-c3MgMyBQdWJsaWMgUHJpbWFyeSBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eSAtIEcy142-MTowOAYDVQQLEzEoYykgMTk5OCBWZXJpU2lnbiwgSW5jLiAtIEZvciBhdXRob3Jp143-emVkIHVzZSBvbmx5MR8wHQYDVQQLExZWZXJpU2lnbiBUcnVzdCBOZXR3b3JrMB4X144-DTk4MDUxODAwMDAwMFoXDTI4MDgwMTIzNTk1OVowgcExCzAJBgNVBAYTAlVTMRcw145-FQYDVQQKEw5WZXJpU2lnbiwgSW5jLjE8MDoGA1UECxMzQ2xhc3MgMyBQdWJsaWMg146-UHJpbWFyeSBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eSAtIEcyMTowOAYDVQQLEzEo147-YykgMTk5OCBWZXJpU2lnbiwgSW5jLiAtIEZvciBhdXRob3JpemVkIHVzZSBvbmx5148-MR8wHQYDVQQLExZWZXJpU2lnbiBUcnVzdCBOZXR3b3JrMIGfMA0GCSqGSIb3DQEB149-AQUAA4GNADCBiQKBgQDMXtERXVxp0KvTuWpMmR9ZmDCOFoUgRm1HP9SFIIThbbP4150-pO0M8RcPO/mn+SXXwc+EY/J8Y8+iR/LGWzOOZEAEaMGAuWQcRXfH2G71lSk8UOg0151-13gfqLptQ5GVj0VXXn7F+8qkBOvqlzdUMG+7AUcyM83cV5tkaWH4mx0ciU9cZwID152-AQABMA0GCSqGSIb3DQEBBQUAA4GBAFFNzb5cy5gZnBWyATl4Lk0PZ3BwmcYQWpSk153-U01UbSuvDV1Ai2TT1+7eVmGSX6bEHRBhNtMsJzzoKQm5EWR0zLVznxxIqbxhAe7i154-F6YM40AIOw7n60RzKprxaZLvcRTDOaxxp5EJb+RxBrO6WVcmeQD2+A2iMzAo1KpY155-oJ2daZH9156------END CERTIFICATE-----157-29 # Issuer: CN=GlobalSign Root CA O=GlobalSign nv-sa OU=Root CA30 # Subject: CN=GlobalSign Root CA O=GlobalSign nv-sa OU=Root CA31 # Label: "GlobalSign Root CA"32 # Serial: 483570327845970766900520451 unmodified lines84 AfvDbbnvRG15RjF+Cv6pgsH/76tuIMRQyV+dTZsXjAzlAcmgQWpzU/qlULRuJQ/785 TBj0/VLZjmmx6BEP3ojY+x1J96relc8geMJgEtslQIxq/H5COEBkEveegeGTLg==86 -----END CERTIFICATE-----87 217-# Issuer: CN=http://www.valicert.com/ O=ValiCert, Inc. OU=ValiCert Class 1 Policy Validation Authority218-# Subject: CN=http://www.valicert.com/ O=ValiCert, Inc. OU=ValiCert Class 1 Policy Validation Authority219-# Label: "ValiCert Class 1 VA"220-# Serial: 1221-# MD5 Fingerprint: 65:58:ab:15:ad:57:6c:1e:a8:a7:b5:69:ac:bf:ff:eb222-# SHA1 Fingerprint: e5:df:74:3c:b6:01:c4:9b:98:43:dc:ab:8c:e8:6a:81:10:9f:e4:8e223-# SHA256 Fingerprint: f4:c1:49:55:1a:30:13:a3:5b:c7:bf:fe:17:a7:f3:44:9b:c1:ab:5b:5a:0a:e7:4b:06:c2:3b:90:00:4c:01:04224------BEGIN CERTIFICATE-----225-MIIC5zCCAlACAQEwDQYJKoZIhvcNAQEFBQAwgbsxJDAiBgNVBAcTG1ZhbGlDZXJ0226-IFZhbGlkYXRpb24gTmV0d29yazEXMBUGA1UEChMOVmFsaUNlcnQsIEluYy4xNTAz227-BgNVBAsTLFZhbGlDZXJ0IENsYXNzIDEgUG9saWN5IFZhbGlkYXRpb24gQXV0aG9y228-aXR5MSEwHwYDVQQDExhodHRwOi8vd3d3LnZhbGljZXJ0LmNvbS8xIDAeBgkqhkiG229-9w0BCQEWEWluZm9AdmFsaWNlcnQuY29tMB4XDTk5MDYyNTIyMjM0OFoXDTE5MDYy230-NTIyMjM0OFowgbsxJDAiBgNVBAcTG1ZhbGlDZXJ0IFZhbGlkYXRpb24gTmV0d29y231-azEXMBUGA1UEChMOVmFsaUNlcnQsIEluYy4xNTAzBgNVBAsTLFZhbGlDZXJ0IENs232-YXNzIDEgUG9saWN5IFZhbGlkYXRpb24gQXV0aG9yaXR5MSEwHwYDVQQDExhodHRw233-Oi8vd3d3LnZhbGljZXJ0LmNvbS8xIDAeBgkqhkiG9w0BCQEWEWluZm9AdmFsaWNl234-cnQuY29tMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDYWYJ6ibiWuqYvaG9Y235-LqdUHAZu9OqNSLwxlBfw8068srg1knaw0KWlAdcAAxIiGQj4/xEjm84H9b9pGib+236-TunRf50sQB1ZaG6m+FiwnRqP0z/x3BkGgagO4DrdyFNFCQbmD3DD+kCmDuJWBQ8Y237-TfwggtFzVXSNdnKgHZ0dwN0/cQIDAQABMA0GCSqGSIb3DQEBBQUAA4GBAFBoPUn0238-LBwGlN+VYH+Wexf+T3GtZMjdd9LvWVXoP+iOBSoh8gfStadS/pyxtuJbdxdA6nLW239-I8sogTLDAHkY7FkXicnGah5xyf23dKUlRWnFSKsZ4UWKJWsZ7uW7EvV/96aNUcPw240-nXS3qT6gpf+2SQMT2iLM7XGCK5nPOrf1LXLI241------END CERTIFICATE-----242-243-# Issuer: CN=http://www.valicert.com/ O=ValiCert, Inc. OU=ValiCert Class 2 Policy Validation Authority244-# Subject: CN=http://www.valicert.com/ O=ValiCert, Inc. OU=ValiCert Class 2 Policy Validation Authority245-# Label: "ValiCert Class 2 VA"246-# Serial: 1247-# MD5 Fingerprint: a9:23:75:9b:ba:49:36:6e:31:c2:db:f2:e7:66:ba:87248-# SHA1 Fingerprint: 31:7a:2a:d0:7f:2b:33:5e:f5:a1:c3:4e:4b:57:e8:b7:d8:f1:fc:a6249-# SHA256 Fingerprint: 58:d0:17:27:9c:d4:dc:63:ab:dd:b1:96:a6:c9:90:6c:30:c4:e0:87:83:ea:e8:c1:60:99:54:d6:93:55:59:6b250------BEGIN CERTIFICATE-----251-MIIC5zCCAlACAQEwDQYJKoZIhvcNAQEFBQAwgbsxJDAiBgNVBAcTG1ZhbGlDZXJ0252-IFZhbGlkYXRpb24gTmV0d29yazEXMBUGA1UEChMOVmFsaUNlcnQsIEluYy4xNTAz253-BgNVBAsTLFZhbGlDZXJ0IENsYXNzIDIgUG9saWN5IFZhbGlkYXRpb24gQXV0aG9y254-aXR5MSEwHwYDVQQDExhodHRwOi8vd3d3LnZhbGljZXJ0LmNvbS8xIDAeBgkqhkiG255-9w0BCQEWEWluZm9AdmFsaWNlcnQuY29tMB4XDTk5MDYyNjAwMTk1NFoXDTE5MDYy256-NjAwMTk1NFowgbsxJDAiBgNVBAcTG1ZhbGlDZXJ0IFZhbGlkYXRpb24gTmV0d29y257-azEXMBUGA1UEChMOVmFsaUNlcnQsIEluYy4xNTAzBgNVBAsTLFZhbGlDZXJ0IENs258-YXNzIDIgUG9saWN5IFZhbGlkYXRpb24gQXV0aG9yaXR5MSEwHwYDVQQDExhodHRw259-Oi8vd3d3LnZhbGljZXJ0LmNvbS8xIDAeBgkqhkiG9w0BCQEWEWluZm9AdmFsaWNl260-cnQuY29tMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDOOnHK5avIWZJV16vY261-dA757tn2VUdZZUcOBVXc65g2PFxTXdMwzzjsvUGJ7SVCCSRrCl6zfN1SLUzm1NZ9262-WlmpZdRJEy0kTRxQb7XBhVQ7/nHk01xC+YDgkRoKWzk2Z/M/VXwbP7RfZHM047QS263-v4dk+NoS/zcnwbNDu+97bi5p9wIDAQABMA0GCSqGSIb3DQEBBQUAA4GBADt/UG9v264-UJSZSWI4OB9L+KXIPqeCgfYrx+jFzug6EILLGACOTb2oWH+heQC1u+mNr0HZDzTu265-IYEZoDJJKPTEjlbVUjP9UNV+mWwD5MlM/Mtsq2azSiGM5bUMMj4QssxsodyamEwC266-W/POuZ6lcg5Ktz885hZo+L7tdEy8W9ViH0Pd267------END CERTIFICATE-----268-269-# Issuer: CN=http://www.valicert.com/ O=ValiCert, Inc. OU=ValiCert Class 3 Policy Validation Authority270-# Subject: CN=http://www.valicert.com/ O=ValiCert, Inc. OU=ValiCert Class 3 Policy Validation Authority271-# Label: "RSA Root Certificate 1"272-# Serial: 1273-# MD5 Fingerprint: a2:6f:53:b7:ee:40:db:4a:68:e7:fa:18:d9:10:4b:72274-# SHA1 Fingerprint: 69:bd:8c:f4:9c:d3:00:fb:59:2e:17:93:ca:55:6a:f3:ec:aa:35:fb275-# SHA256 Fingerprint: bc:23:f9:8a:31:3c:b9:2d:e3:bb:fc:3a:5a:9f:44:61:ac:39:49:4c:4a:e1:5a:9e:9d:f1:31:e9:9b:73:01:9a276------BEGIN CERTIFICATE-----277-MIIC5zCCAlACAQEwDQYJKoZIhvcNAQEFBQAwgbsxJDAiBgNVBAcTG1ZhbGlDZXJ0278-IFZhbGlkYXRpb24gTmV0d29yazEXMBUGA1UEChMOVmFsaUNlcnQsIEluYy4xNTAz279-BgNVBAsTLFZhbGlDZXJ0IENsYXNzIDMgUG9saWN5IFZhbGlkYXRpb24gQXV0aG9y280-aXR5MSEwHwYDVQQDExhodHRwOi8vd3d3LnZhbGljZXJ0LmNvbS8xIDAeBgkqhkiG281-9w0BCQEWEWluZm9AdmFsaWNlcnQuY29tMB4XDTk5MDYyNjAwMjIzM1oXDTE5MDYy282-NjAwMjIzM1owgbsxJDAiBgNVBAcTG1ZhbGlDZXJ0IFZhbGlkYXRpb24gTmV0d29y283-azEXMBUGA1UEChMOVmFsaUNlcnQsIEluYy4xNTAzBgNVBAsTLFZhbGlDZXJ0IENs284-YXNzIDMgUG9saWN5IFZhbGlkYXRpb24gQXV0aG9yaXR5MSEwHwYDVQQDExhodHRw285-Oi8vd3d3LnZhbGljZXJ0LmNvbS8xIDAeBgkqhkiG9w0BCQEWEWluZm9AdmFsaWNl286-cnQuY29tMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDjmFGWHOjVsQaBalfD287-cnWTq8+epvzzFlLWLU2fNUSoLgRNB0mKOCn1dzfnt6td3zZxFJmP3MKS8edgkpfs288-2Ejcv8ECIMYkpChMMFp2bbFc893enhBxoYjHW5tBbcqwuI4V7q0zK89HBFx1cQqY289-JJgpp0lZpd34t0NiYfPT4tBVPwIDAQABMA0GCSqGSIb3DQEBBQUAA4GBAFa7AliE290-Zwgs3x/be0kz9dNnnfS0ChCzycUs4pJqcXgn8nCDQtM+z6lU9PHYkhaM0QTLS6vJ291-n0WuPIqpsHEzXcjFV9+vqDWzf4mH6eglkrh/hXqu1rweN1gqZ8mRzyqBPu3GOd/A292-PhmcGcwTTYJBtYze4D1gCCAPRX5ron+jjBXu293------END CERTIFICATE-----294-88 # Issuer: CN=VeriSign Class 3 Public Primary Certification Authority - G3 O=VeriSign, Inc. OU=VeriSign Trust Network/(c) 1999 VeriSign, Inc. - For authorized use only89 # Subject: CN=VeriSign Class 3 Public Primary Certification Authority - G3 O=VeriSign, Inc. OU=VeriSign Trust Network/(c) 1999 VeriSign, Inc. - For authorized use only90 # Label: "Verisign Class 3 Public Primary Certification Authority - G3"91 # Serial: 20668469627947231025427787018096672341556 unmodified lines148 2NU8Qh0XwRJdRTjDOPP8hS6DRkiy1yBfkjaP53kPmF6Z6PDQpLv1U70qzlmwr25/149 bLvSHgCwIe34QWKCudiyxLtGUPMxxY8BqHTr9Xgn2uf3ZkPznoM+IKrDNWCRzg==150 -----END CERTIFICATE-----151 359-# Issuer: CN=Entrust.net Secure Server Certification Authority O=Entrust.net OU=www.entrust.net/CPS incorp. by ref. (limits liab.)/(c) 1999 Entrust.net Limited360-# Subject: CN=Entrust.net Secure Server Certification Authority O=Entrust.net OU=www.entrust.net/CPS incorp. by ref. (limits liab.)/(c) 1999 Entrust.net Limited361-# Label: "Entrust.net Secure Server CA"362-# Serial: 927650371363-# MD5 Fingerprint: df:f2:80:73:cc:f1:e6:61:73:fc:f5:42:e9:c5:7c:ee364-# SHA1 Fingerprint: 99:a6:9b:e6:1a:fe:88:6b:4d:2b:82:00:7c:b8:54:fc:31:7e:15:39365-# SHA256 Fingerprint: 62:f2:40:27:8c:56:4c:4d:d8:bf:7d:9d:4f:6f:36:6e:a8:94:d2:2f:5f:34:d9:89:a9:83:ac:ec:2f:ff:ed:50366------BEGIN CERTIFICATE-----367-MIIE2DCCBEGgAwIBAgIEN0rSQzANBgkqhkiG9w0BAQUFADCBwzELMAkGA1UEBhMC368-VVMxFDASBgNVBAoTC0VudHJ1c3QubmV0MTswOQYDVQQLEzJ3d3cuZW50cnVzdC5u369-ZXQvQ1BTIGluY29ycC4gYnkgcmVmLiAobGltaXRzIGxpYWIuKTElMCMGA1UECxMc370-KGMpIDE5OTkgRW50cnVzdC5uZXQgTGltaXRlZDE6MDgGA1UEAxMxRW50cnVzdC5u371-ZXQgU2VjdXJlIFNlcnZlciBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eTAeFw05OTA1372-MjUxNjA5NDBaFw0xOTA1MjUxNjM5NDBaMIHDMQswCQYDVQQGEwJVUzEUMBIGA1UE373-ChMLRW50cnVzdC5uZXQxOzA5BgNVBAsTMnd3dy5lbnRydXN0Lm5ldC9DUFMgaW5j374-b3JwLiBieSByZWYuIChsaW1pdHMgbGlhYi4pMSUwIwYDVQQLExwoYykgMTk5OSBF375-bnRydXN0Lm5ldCBMaW1pdGVkMTowOAYDVQQDEzFFbnRydXN0Lm5ldCBTZWN1cmUg376-U2VydmVyIENlcnRpZmljYXRpb24gQXV0aG9yaXR5MIGdMA0GCSqGSIb3DQEBAQUA377-A4G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E-----394-152 # Issuer: CN=Entrust.net Certification Authority (2048) O=Entrust.net OU=www.entrust.net/CPS_2048 incorp. by ref. (limits liab.)/(c) 1999 Entrust.net Limited153 # Subject: CN=Entrust.net Certification Authority (2048) O=Entrust.net OU=www.entrust.net/CPS_2048 incorp. by ref. (limits liab.)/(c) 1999 Entrust.net Limited154 # Label: "Entrust.net Premium 2048 Secure Server CA"155 # Serial: 94606924054 unmodified lines210 ksLi4xaNmjICq44Y3ekQEe5+NauQrz4wlHrQMz2nZQ/1/I6eYs9HRCwBXbsdtTLS211 R9I4LtD+gdwyah617jzV/OeBHRnDJELqYzmp212 -----END CERTIFICATE-----213 457-# Issuer: CN=Equifax Secure Global eBusiness CA-1 O=Equifax Secure Inc.458-# Subject: CN=Equifax Secure Global eBusiness CA-1 O=Equifax Secure Inc.459-# Label: "Equifax Secure Global eBusiness CA"460-# Serial: 1461-# MD5 Fingerprint: 8f:5d:77:06:27:c4:98:3c:5b:93:78:e7:d7:7d:9b:cc462-# SHA1 Fingerprint: 7e:78:4a:10:1c:82:65:cc:2d:e1:f1:6d:47:b4:40:ca:d9:0a:19:45463-# SHA256 Fingerprint: 5f:0b:62:ea:b5:e3:53:ea:65:21:65:16:58:fb:b6:53:59:f4:43:28:0a:4a:fb:d1:04:d7:7d:10:f9:f0:4c:07464------BEGIN CERTIFICATE-----465-MIICkDCCAfmgAwIBAgIBATANBgkqhkiG9w0BAQQFADBaMQswCQYDVQQGEwJVUzEc466-MBoGA1UEChMTRXF1aWZheCBTZWN1cmUgSW5jLjEtMCsGA1UEAxMkRXF1aWZheCBT467-ZWN1cmUgR2xvYmFsIGVCdXNpbmVzcyBDQS0xMB4XDTk5MDYyMTA0MDAwMFoXDTIw468-MDYyMTA0MDAwMFowWjELMAkGA1UEBhMCVVMxHDAaBgNVBAoTE0VxdWlmYXggU2Vj469-dXJlIEluYy4xLTArBgNVBAMTJEVxdWlmYXggU2VjdXJlIEdsb2JhbCBlQnVzaW5l470-c3MgQ0EtMTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAuucXkAJlsTRVPEnC471-UdXfp9E3j9HngXNBUmCbnaEXJnitx7HoJpQytd4zjTov2/KaelpzmKNc6fuKcxtc472-58O/gGzNqfTWK8D3+ZmqY6KxRwIP1ORROhI8bIpaVIRw28HFkM9yRcuoWcDNM50/473-o5brhTMhHD4ePmBudpxnhcXIw2ECAwEAAaNmMGQwEQYJYIZIAYb4QgEBBAQDAgAH474-MA8GA1UdEwEB/wQFMAMBAf8wHwYDVR0jBBgwFoAUvqigdHJQa0S3ySPY+6j/s1dr475-aGwwHQYDVR0OBBYEFL6ooHRyUGtEt8kj2Puo/7NXa2hsMA0GCSqGSIb3DQEBBAUA476-A4GBADDiAVGqx+pf2rnQZQ8w1j7aDRRJbpGTJxQx78T3LUX47Me/okENI7SS+RkA477-Z70Br83gcfxaz2TE4JaY0KNA4gGK7ycH8WUBikQtBmV1UsCGECAhX2xrD2yuCRyv478-8qIYNMR1pHMc8Y3c7635s3a0kr/clRAevsvIO1qEYBlWlKlV479------END CERTIFICATE-----480-481-# Issuer: CN=Equifax Secure eBusiness CA-1 O=Equifax Secure Inc.482-# Subject: CN=Equifax Secure eBusiness CA-1 O=Equifax Secure Inc.483-# Label: "Equifax Secure eBusiness CA 1"484-# Serial: 4485-# MD5 Fingerprint: 64:9c:ef:2e:44:fc:c6:8f:52:07:d0:51:73:8f:cb:3d486-# SHA1 Fingerprint: da:40:18:8b:91:89:a3:ed:ee:ae:da:97:fe:2f:9d:f5:b7:d1:8a:41487-# SHA256 Fingerprint: cf:56:ff:46:a4:a1:86:10:9d:d9:65:84:b5:ee:b5:8a:51:0c:42:75:b0:e5:f9:4f:40:bb:ae:86:5e:19:f6:73488------BEGIN CERTIFICATE-----489-MIICgjCCAeugAwIBAgIBBDANBgkqhkiG9w0BAQQFADBTMQswCQYDVQQGEwJVUzEc490-MBoGA1UEChMTRXF1aWZheCBTZWN1cmUgSW5jLjEmMCQGA1UEAxMdRXF1aWZheCBT491-ZWN1cmUgZUJ1c2luZXNzIENBLTEwHhcNOTkwNjIxMDQwMDAwWhcNMjAwNjIxMDQw492-MDAwWjBTMQswCQYDVQQGEwJVUzEcMBoGA1UEChMTRXF1aWZheCBTZWN1cmUgSW5j493-LjEmMCQGA1UEAxMdRXF1aWZheCBTZWN1cmUgZUJ1c2luZXNzIENBLTEwgZ8wDQYJ494-KoZIhvcNAQEBBQADgY0AMIGJAoGBAM4vGbwXt3fek6lfWg0XTzQaDJj0ItlZ1MRo495-RvC0NcWFAyDGr0WlIVFFQesWWDYyb+JQYmT5/VGcqiTZ9J2DKocKIdMSODRsjQBu496-WqDZQu4aIZX5UkxVWsUPOE9G+m34LjXWHXzr4vCwdYDIqROsvojvOm6rXyo4YgKw497-Env+j6YDAgMBAAGjZjBkMBEGCWCGSAGG+EIBAQQEAwIABzAPBgNVHRMBAf8EBTAD498-AQH/MB8GA1UdIwQYMBaAFEp4MlIR21kWNl7fwRQ2QGpHfEyhMB0GA1UdDgQWBBRK499-eDJSEdtZFjZe38EUNkBqR3xMoTANBgkqhkiG9w0BAQQFAAOBgQB1W6ibAxHm6VZM500-zfmpTMANmvPMZWnmJXbMWbfWVMMdzZmsGd20hdXgPfxiIKeES1hl8eL5lSE/9dR+501-WB5Hh1Q+WKG1tfgq73HnvMP2sUlG4tega+VWeponmHxGYhTnyfxuAxJ5gDgdSIKN502-/Bf+KpYrtWKmpj29f5JZzVoqgrI3eQ==503------END CERTIFICATE-----504-214 # Issuer: CN=AddTrust Class 1 CA Root O=AddTrust AB OU=AddTrust TTP Network215 # Subject: CN=AddTrust Class 1 CA Root O=AddTrust AB OU=AddTrust TTP Network216 # Label: "AddTrust Low-Value Services Root"217 # Serial: 1321 unmodified lines539 6aLcr34YEoP9VhdBLtUpgn2Z9DH2canPLAEnpQW5qrJITirvn5NSUZU8UnOOVkwX540 QMAJKOSLakhT2+zNVVXxxvjpoixMptEmX36vWkzaH6byHCx+rgIW0lbQL1dTR+iS541 -----END CERTIFICATE-----542 834-# Issuer: CN=America Online Root Certification Authority 1 O=America Online Inc.835-# Subject: CN=America Online Root Certification Authority 1 O=America Online Inc.836-# Label: "America Online Root Certification Authority 1"837-# Serial: 1838-# MD5 Fingerprint: 14:f1:08:ad:9d:fa:64:e2:89:e7:1c:cf:a8:ad:7d:5e839-# SHA1 Fingerprint: 39:21:c1:15:c1:5d:0e:ca:5c:cb:5b:c4:f0:7d:21:d8:05:0b:56:6a840-# SHA256 Fingerprint: 77:40:73:12:c6:3a:15:3d:5b:c0:0b:4e:51:75:9c:df:da:c2:37:dc:2a:33:b6:79:46:e9:8e:9b:fa:68:0a:e3841------BEGIN CERTIFICATE-----842-MIIDpDCCAoygAwIBAgIBATANBgkqhkiG9w0BAQUFADBjMQswCQYDVQQGEwJVUzEc843-MBoGA1UEChMTQW1lcmljYSBPbmxpbmUgSW5jLjE2MDQGA1UEAxMtQW1lcmljYSBP844-bmxpbmUgUm9vdCBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eSAxMB4XDTAyMDUyODA2845-MDAwMFoXDTM3MTExOTIwNDMwMFowYzELMAkGA1UEBhMCVVMxHDAaBgNVBAoTE0Ft846-ZXJpY2EgT25saW5lIEluYy4xNjA0BgNVBAMTLUFtZXJpY2EgT25saW5lIFJvb3Qg847-Q2VydGlmaWNhdGlvbiBBdXRob3JpdHkgMTCCASIwDQYJKoZIhvcNAQEBBQADggEP848-ADCCAQoCggEBAKgv6KRpBgNHw+kqmP8ZonCaxlCyfqXfaE0bfA+2l2h9LaaLl+lk849-hsmj76CGv2BlnEtUiMJIxUo5vxTjWVXlGbR0yLQFOVwWpeKVBeASrlmLojNoWBym850-1BW32J/X3HGrfpq/m44zDyL9Hy7nBzbvYjnF3cu6JRQj3gzGPTzOggjmZj7aUTsW851-OqMFf6Dch9Wc/HKpoH145LcxVR5lu9RhsCFg7RAycsWSJR74kEoYeEfffjA3PlAb852-2xzTa5qGUwew76wGePiEmf4hjUyAtgyC9mZweRrTT6PP8c9GsEsPPt2IYriMqQko853-O3rHl+Ee5fSfwMCuJKDIodkP1nsmgmkyPacCAwEAAaNjMGEwDwYDVR0TAQH/BAUw854-AwEB/zAdBgNVHQ4EFgQUAK3Zo/Z59m50qX8zPYEX10zPM94wHwYDVR0jBBgwFoAU855-AK3Zo/Z59m50qX8zPYEX10zPM94wDgYDVR0PAQH/BAQDAgGGMA0GCSqGSIb3DQEB856-BQUAA4IBAQB8itEfGDeC4Liwo+1WlchiYZwFos3CYiZhzRAW18y0ZTTQEYqtqKkF857-Zu90821fnZmv9ov761KyBZiibyrFVL0lvV+uyIbqRizBs73B6UlwGBaXCBOMIOAb858-LjpHyx7kADCVW/RFo8AasAFOq73AI25jP4BKxQft3OJvx8Fi8eNy1gTIdGcL+oir859-oQHIb/AUr9KZzVGTfu0uOMe9zkZQPXLjeSWdm4grECDdpbgyn43gKd8hdIaC2y+C860-MMbHNYaz+ZZfRtsMRf3zUMNvxsNIrUam4SdHCh0Om7bCd39j8uB9Gr784N/Xx6ds861-sPmuujz9dLQR6FgNgLzTqIA6me11zEZ7862------END CERTIFICATE-----863-864-# Issuer: CN=America Online Root Certification Authority 2 O=America Online Inc.865-# Subject: CN=America Online Root Certification Authority 2 O=America Online Inc.866-# Label: "America Online Root Certification Authority 2"867-# Serial: 1868-# MD5 Fingerprint: d6:ed:3c:ca:e2:66:0f:af:10:43:0d:77:9b:04:09:bf869-# SHA1 Fingerprint: 85:b5:ff:67:9b:0c:79:96:1f:c8:6e:44:22:00:46:13:db:17:92:84870-# SHA256 Fingerprint: 7d:3b:46:5a:60:14:e5:26:c0:af:fc:ee:21:27:d2:31:17:27:ad:81:1c:26:84:2d:00:6a:f3:73:06:cc:80:bd871------BEGIN CERTIFICATE-----872-MIIFpDCCA4ygAwIBAgIBATANBgkqhkiG9w0BAQUFADBjMQswCQYDVQQGEwJVUzEc873-MBoGA1UEChMTQW1lcmljYSBPbmxpbmUgSW5jLjE2MDQGA1UEAxMtQW1lcmljYSBP874-bmxp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MBaAFE1FwWg4u3OpaaEg5+31IqEjFNeeMA4GA1UdDwEB/wQE891-AwIBhjANBgkqhkiG9w0BAQUFAAOCAgEAZ2sGuV9FOypLM7PmG2tZTiLMubekJcmn892-xPBUlgtk87FYT15R/LKXeydlwuXK5w0MJXti4/qftIe3RUavg6WXSIylvfEWK5t2893-LHo1YGwRgJfMqZJS5ivmae2p+DYtLHe/YUjRYwu5W1LtGLBDQiKmsXeu3mnFzccc894-obGlHBD7GL4acN3Bkku+KVqdPzW+5X1R+FXgJXUjhx5c3LqdsKyzadsXg8n33gy8895-CNyRnqjQ1xU3c6U1uPx+xURABsPr+CKAXEfOAuMRn0T//ZoyzH1kUQ7rVyZ2OuMe896-IjzCpjbdGe+n/BLzJsBZMYVMnNjP36TMzCmT/5RtdlwTCJfy7aULTd3oyWgOZtMA897-DjMSW7yV5TKQqLPGbIOtd+6Lfn6xqavT4fG2wLHqiMDn05DpKJKUe2h7lyoKZy2F898-AjgQ5ANh1NolNscIWC2hp1GvMApJ9aZphwctREZ2jirlmjvXGKL8nDgQzMY70rUX899-Om/9riW99XJZZLF0KjhfGEzfz3EEWjbUvy+ZnOjZurGV5gJLIaFb1cFPj65pbVPb900-AZO1XB4Y3WRayhgoPmMEEf0cjQAPuDffZ4qdZqkCapH/E8ovXYO8h5Ns3CRRFgQl901-Zvqz2cK6Kb6aSDiCmfS/O0oxGfm/jiEzFMpPVF/7zvuPcX/9XhmgD0uRuMRUvAaw902-RY8mkaKO/qk=903------END CERTIFICATE-----904-543 # Issuer: CN=Visa eCommerce Root O=VISA OU=Visa International Service Association544 # Subject: CN=Visa eCommerce Root O=VISA OU=Visa International Service Association545 # Label: "Visa eCommerce Root"546 # Serial: 25952180776285836048024890241505565794362 unmodified lines909 7ZAEwbEpkcUwb8GpcjPM/l0WFywRaed+/sWDCN+83CI6LiBpIzlWYGeQiy52OfsR910 iJf2fL1LuCAWZwWN4jvBcj+UlTfHXbme2JOhF4//DGYVwSR8MnwDHTuhWEUykw==911 -----END CERTIFICATE-----912 1275-# Issuer: O=TDC Internet OU=TDC Internet Root CA1276-# Subject: O=TDC Internet OU=TDC Internet Root CA1277-# Label: "TDC Internet Root CA"1278-# Serial: 9864901881279-# MD5 Fingerprint: 91:f4:03:55:20:a1:f8:63:2c:62:de:ac:fb:61:1c:8e1280-# SHA1 Fingerprint: 21:fc:bd:8e:7f:6c:af:05:1b:d1:b3:43:ec:a8:e7:61:47:f2:0f:8a1281-# SHA256 Fingerprint: 48:98:c6:88:8c:0c:ff:b0:d3:e3:1a:ca:8a:37:d4:e3:51:5f:f7:46:d0:26:35:d8:66:46:cf:a0:a3:18:5a:e71282------BEGIN CERTIFICATE-----1283-MIIEKzCCAxOgAwIBAgIEOsylTDANBgkqhkiG9w0BAQUFADBDMQswCQYDVQQGEwJE1284-SzEVMBMGA1UEChMMVERDIEludGVybmV0MR0wGwYDVQQLExRUREMgSW50ZXJuZXQg1285-Um9vdCBDQTAeFw0wMTA0MDUxNjMzMTdaFw0yMTA0MDUxNzAzMTdaMEMxCzAJBgNV1286-BAYTAkRLMRUwEwYDVQQKEwxUREMgSW50ZXJuZXQxHTAbBgNVBAsTFFREQyBJbnRl1287-cm5ldCBSb290IENBMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAxLhA1288-vJHVYx/XmaCLDEAedLdInUaMArLgJF/wGROnN4NrXceO+YQwzho7+vvOi20jxsNu1289-Zp+Jpd/gQlBn+h9sHvTQBda/ytZO5GhgbEaqHF1j4QeGDmUApy6mcca8uYGoOn0a1290-0vnRrEvLznWv3Hv6gXPU/Lq9QYjUdLP5Xjg6PEOo0pVOd20TDJ2PeAG3WiAfAzc11291-4izbSysseLlJ28TQx5yc5IogCSEWVmb/Bexb4/DPqyQkXsN/cHoSxNK1EKC2IeGN1292-eGlVRGn1ypYcNIUXJXfi9i8nmHj9eQY6otZaQ8H/7AQ77hPv01ha/5Lr7K7a8jcD1293-R0G2l8ktCkEiu7vmpwIDAQABo4IBJTCCASEwEQYJYIZIAYb4QgEBBAQDAgAHMGUG1294-A1UdHwReMFwwWqBYoFakVDBSMQswCQYDVQQGEwJESzEVMBMGA1UEChMMVERDIElu1295-dGVybmV0MR0wGwYDVQQLExRUREMgSW50ZXJuZXQgUm9vdCBDQTENMAsGA1UEAxME1296-Q1JMMTArBgNVHRAEJDAigA8yMDAxMDQwNTE2MzMxN1qBDzIwMjEwNDA1MTcwMzE31297-WjALBgNVHQ8EBAMCAQYwHwYDVR0jBBgwFoAUbGQBx/2FbazI2p5QCIUItTxWqFAw1298-HQYDVR0OBBYEFGxkAcf9hW2syNqeUAiFCLU8VqhQMAwGA1UdEwQFMAMBAf8wHQYJ1299-KoZIhvZ9B0EABBAwDhsIVjUuMDo0LjADAgSQMA0GCSqGSIb3DQEBBQUAA4IBAQBO1300-Q8zR3R0QGwZ/t6T609lN+yOfI1Rb5osvBCiLtSdtiaHsmGnc540mgwV5dOy0uaOX1301-wTUA/RXaOYE6lTGQ3pfphqiZdwzlWqCE/xIWrG64jcN7ksKsLtB9KOy282A4aW8+1302-2ARVPp7MVdK6/rtHBNcK2RYKNCn1WBPVT8+PVkuzHu7TmHnaCB4Mb7j4Fifvwm891303-9qNLPg7kbWzbO0ESm70NRyN/PErQr8Cv9u8btRXE64PECV90i9kR+8JWsTz4cMo01304-jUNAE4z9mQNUecYu6oah9jrUCbz0vGbMPVjQV0kK7iXiQe4T+Zs4NNEA9X7nlB381305-aQNiuJkFBT1reBK9sG9l1306------END CERTIFICATE-----1307-913 # Issuer: CN=UTN - DATACorp SGC O=The USERTRUST Network OU=http://www.usertrust.com914 # Subject: CN=UTN - DATACorp SGC O=The USERTRUST Network OU=http://www.usertrust.com915 # Label: "UTN DATACorp SGC Root CA"916 # Serial: 91374294542884689855167577680241077609177 unmodified lines1094 f1qbFFgBJ34TUMdrKuZoPL9coAob4Q566eKAw+np9v1sEZ7Q5SgnK1QyQhSCdeZK1095 8CtmdWOMovsEPoMOmzbwGOQmIMOM8CgHrTwXZoi1/baI1096 -----END CERTIFICATE-----1097 1493-# Issuer: CN=NetLock Uzleti (Class B) Tanusitvanykiado O=NetLock Halozatbiztonsagi Kft. OU=Tanusitvanykiadok1494-# Subject: CN=NetLock Uzleti (Class B) Tanusitvanykiado O=NetLock Halozatbiztonsagi Kft. OU=Tanusitvanykiadok1495-# Label: "NetLock Business (Class B) Root"1496-# Serial: 1051497-# MD5 Fingerprint: 39:16:aa:b9:6a:41:e1:14:69:df:9e:6c:3b:72:dc:b61498-# SHA1 Fingerprint: 87:9f:4b:ee:05:df:98:58:3b:e3:60:d6:33:e7:0d:3f:fe:98:71:af1499-# SHA256 Fingerprint: 39:df:7b:68:2b:7b:93:8f:84:71:54:81:cc:de:8d:60:d8:f2:2e:c5:98:87:7d:0a:aa:c1:2b:59:18:2b:03:121500------BEGIN CERTIFICATE-----1501-MIIFSzCCBLSgAwIBAgIBaTANBgkqhkiG9w0BAQQFADCBmTELMAkGA1UEBhMCSFUx1502-ETAPBgNVBAcTCEJ1ZGFwZXN0MScwJQYDVQQKEx5OZXRMb2NrIEhhbG96YXRiaXp01503-b25zYWdpIEtmdC4xGjAYBgNVBAsTEVRhbnVzaXR2YW55a2lhZG9rMTIwMAYDVQQD1504-EylOZXRMb2NrIFV6bGV0aSAoQ2xhc3MgQikgVGFudXNpdHZhbnlraWFkbzAeFw051505-OTAyMjUxNDEwMjJaFw0xOTAyMjAxNDEwMjJaMIGZMQswCQYDVQQGEwJIVTERMA8G1506-A1UEBxMIQnVkYXBlc3QxJzAlBgNVBAoTHk5ldExvY2sgSGFsb3phdGJpenRvbnNh1507-Z2kgS2Z0LjEaMBgGA1UECxMRVGFudXNpdHZhbnlraWFkb2sxMjAwBgNVBAMTKU5l1508-dExvY2sgVXpsZXRpIChDbGFzcyBCKSBUYW51c2l0dmFueWtpYWRvMIGfMA0GCSqG1509-SIb3DQEBAQUAA4GNADCBiQKBgQCx6gTsIKAjwo84YM/HRrPVG/77uZmeBNwcf4xK1510-gZjupNTKih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BjcHNA1526-bmV0bG9jay5uZXQuMA0GCSqGSIb3DQEBBAUAA4GBAATbrowXr/gOkDFOzT4JwG061527-sPgzTEdM43WIEJessDgVkcYplswhwG08pXTP2IKlOcNl40JwuyKQ433bNXbhoLXa1528-n3BukxowOR0w2y7jfLKRstE3Kfq51hdcR0/jHTjrn9V7lagonhVK0dHQKwCXoOKS1529-NitjrFgBazMpUIaD8QFI1530------END CERTIFICATE-----1531-1532-# Issuer: CN=NetLock Expressz (Class C) Tanusitvanykiado O=NetLock Halozatbiztonsagi Kft. OU=Tanusitvanykiadok1533-# Subject: CN=NetLock Expressz (Class C) Tanusitvanykiado O=NetLock Halozatbiztonsagi Kft. OU=Tanusitvanykiadok1534-# Label: "NetLock Express (Class C) Root"1535-# Serial: 1041536-# MD5 Fingerprint: 4f:eb:f1:f0:70:c2:80:63:5d:58:9f:da:12:3c:a9:c41537-# SHA1 Fingerprint: e3:92:51:2f:0a:cf:f5:05:df:f6:de:06:7f:75:37:e1:65:ea:57:4b1538-# SHA256 Fingerprint: 0b:5e:ed:4e:84:64:03:cf:55:e0:65:84:84:40:ed:2a:82:75:8b:f5:b9:aa:1f:25:3d:46:13:cf:a0:80:ff:3f1539------BEGIN CERTIFICATE-----1540-MIIFTzCCBLigAwIBAgIBaDANBgkqhkiG9w0BAQQFADCBmzELMAkGA1UEBhMCSFUx1541-ETAPBgNVBAcTCEJ1ZGFwZXN0MScwJQYDVQQKEx5OZXRMb2NrIEhhbG96YXRiaXp01542-b25zYWdpIEtmdC4xGjAYBgNVBAsTEVRhbnVzaXR2YW55a2lhZG9rMTQwMgYDVQQD1543-EytOZXRMb2NrIEV4cHJlc3N6IChDbGFzcyBDKSBUYW51c2l0dmFueWtpYWRvMB4X1544-DTk5MDIyNTE0MDgxMVoXDTE5MDIyMDE0MDgxMVowgZsxCzAJBgNVBAYTAkhVMREw1545-DwYDVQQHEwhCdWRhcGVzdDEnMCUGA1UEChMeTmV0TG9jayBIYWxvemF0Yml6dG9u1546-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bCBjaW1lbi4g1562-SU1QT1JUQU5UISBUaGUgaXNzdWFuY2UgYW5kIHRoZSB1c2Ugb2YgdGhpcyBjZXJ01563-aWZpY2F0ZSBpcyBzdWJqZWN0IHRvIHRoZSBOZXRMb2NrIENQUyBhdmFpbGFibGUg1564-YXQgaHR0cHM6Ly93d3cubmV0bG9jay5uZXQvZG9jcyBvciBieSBlLW1haWwgYXQg1565-Y3BzQG5ldGxvY2submV0LjANBgkqhkiG9w0BAQQFAAOBgQAQrX/XDDKACtiG8XmY1566-ta3UzbM2xJZIwVzNmtkFLp++UOv0JhQQLdRmF/iewSf98e3ke0ugbLWrmldwpu2g1567-pO0u9f38vf5NNwgMvOOWgyL1SRt/Syu0VMGAfJlOHdCM7tCs5ZL6dVb+ZKATj7i41568-Fp1hBWeAyNDYpQcCNJgEjTME1A==1569------END CERTIFICATE-----1570-1098 # Issuer: CN=XRamp Global Certification Authority O=XRamp Security Services Inc OU=www.xrampsecurity.com1099 # Subject: CN=XRamp Global Certification Authority O=XRamp Security Services Inc OU=www.xrampsecurity.com1100 # Label: "XRamp Global CA Root"1101 # Serial: 107108908803651509692980124233745014957181 unmodified lines1283 LMDDav7v3Aun+kbfYNucpllQdSNpc5Oy+fwC00fmcc4QAu4njIT/rEUNE1yDMuAl1284 pYYsfPQS1285 -----END CERTIFICATE-----1286 1760-# Issuer: CN=Autoridad de Certificacion Firmaprofesional CIF A626340681761-# Subject: CN=Autoridad de Certificacion Firmaprofesional CIF A626340681762-# Label: "Firmaprofesional Root CA"1763-# Serial: 11764-# MD5 Fingerprint: 11:92:79:40:3c:b1:83:40:e5:ab:66:4a:67:92:80:df1765-# SHA1 Fingerprint: a9:62:8f:4b:98:a9:1b:48:35:ba:d2:c1:46:32:86:bb:66:64:6a:8c1766-# SHA256 Fingerprint: c1:cf:0b:52:09:64:35:e3:f1:b7:1d:aa:ec:45:5a:23:11:c8:40:4f:55:83:a9:e2:13:c6:9d:85:7d:94:33:051767------BEGIN CERTIFICATE-----1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784-MjIwMDAwWoEPMjAxMzEwMjQyMjAwMDBaMA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4E1785-FgQUMwugZtHq2s7eYpMEKFK1FH84aLcwDQYJKoZIhvcNAQEFBQADggEBAEdz/o0n1786-VPD11HecJ3lXV7cVVuzH2Fi3AQL0M+2TUIiefEaxvT8Ub/GzR0iLjJcG1+p+o1wq1787-u00vR+L4OQbJnC4xGgN49Lw4xiKLMzHwFgQEffl25EvXwOaD7FnMP97/T2u3Z36m1788-hoEyIwOdyPdfwUpgpZKpsaSgYMN4h7Mi8yrrW6ntBas3D7Hi05V2Y1Z0jFhyGzfl1789-ZKG+TQyTmAyX9odtsz/ny4Cm7YjHX1BiAuiZdBbQ5rQ58SfLyEDW44YQqSMSkuBp1790-QWOnryULwMWSyx6Yo1q6xTMPoJcB3X/ge9YGVM+h4k0460tQtcsm9MracEpqoeJ51791-quGnM/b9Sh/22WA=1792------END CERTIFICATE-----1793-1287 # Issuer: CN=Swisscom Root CA 1 O=Swisscom OU=Digital Certificate Services1288 # Subject: CN=Swisscom Root CA 1 O=Swisscom OU=Digital Certificate Services1289 # Label: "Swisscom Root CA 1"1290 # Serial: 122348795730808398873664200247279986742215 unmodified lines1506 rscL9yuwNwXsvFcj4jjSm2jzVhKIT0J8uDHEtdvkyCE06UgRNe76x5JXxZ805Mf21507 9w4LTJxoeHtxMcfrHuBnQfO3oKfN5XozNmr6mis=1508 -----END CERTIFICATE-----1509 2017-# Issuer: CN=TÜRKTRUST Elektronik Sertifika Hizmet Sağlayıcısı O=(c) 2005 TÜRKTRUST Bilgi İletişim ve Bilişim Güvenliği Hizmetleri A.Ş.2018-# Subject: CN=TÜRKTRUST Elektronik Sertifika Hizmet Sağlayıcısı O=(c) 2005 TÜRKTRUST Bilgi İletişim ve Bilişim Güvenliği Hizmetleri A.Ş.2019-# Label: "TURKTRUST Certificate Services Provider Root 1"2020-# Serial: 12021-# MD5 Fingerprint: f1:6a:22:18:c9:cd:df:ce:82:1d:1d:b7:78:5c:a9:a52022-# SHA1 Fingerprint: 79:98:a3:08:e1:4d:65:85:e6:c2:1e:15:3a:71:9f:ba:5a:d3:4a:d92023-# SHA256 Fingerprint: 44:04:e3:3b:5e:14:0d:cf:99:80:51:fd:fc:80:28:c7:c8:16:15:c5:ee:73:7b:11:1b:58:82:33:a9:b5:35:a02024------BEGIN CERTIFICATE-----2025-MIID+zCCAuOgAwIBAgIBATANBgkqhkiG9w0BAQUFADCBtzE/MD0GA1UEAww2VMOc2026-UktUUlVTVCBFbGVrdHJvbmlrIFNlcnRpZmlrYSBIaXptZXQgU2HEn2xhecSxY8Sx2027-c8SxMQswCQYDVQQGDAJUUjEPMA0GA1UEBwwGQU5LQVJBMVYwVAYDVQQKDE0oYykg2028-MjAwNSBUw5xSS1RSVVNUIEJpbGdpIMSwbGV0acWfaW0gdmUgQmlsacWfaW0gR8O82029-dmVubGnEn2kgSGl6bWV0bGVyaSBBLsWeLjAeFw0wNTA1MTMxMDI3MTdaFw0xNTAz2030-MjIxMDI3MTdaMIG3MT8wPQYDVQQDDDZUw5xSS1RSVVNUIEVsZWt0cm9uaWsgU2Vy2031-dGlmaWthIEhpem1ldCBTYcSfbGF5xLFjxLFzxLExCzAJBgNVBAYMAlRSMQ8wDQYD2032-VQQHDAZBTktBUkExVjBUBgNVBAoMTShjKSAyMDA1IFTDnFJLVFJVU1QgQmlsZ2kg2033-xLBsZXRpxZ9pbSB2ZSBCaWxpxZ9pbSBHw7x2ZW5sacSfaSBIaXptZXRsZXJpIEEu2034-xZ4uMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAylIF1mMD2Bxf3dJ72035-XfIMYGFbazt0K3gNfUW9InTojAPBxhEqPZW8qZSwu5GXyGl8hMW0kWxsE2qkVa2k2036-heiVfrMArwDCBRj1cJ02i67L5BuBf5OI+2pVu32Fks66WJ/bMsW9Xe8iSi9BB35J2037-YbOG7E6mQW6EvAPs9TscyB/C7qju6hJKjRTP8wrgUDn5CDX4EVmt5yLqS8oUBt5C2038-urKZ8y1UiBAG6uEaPj1nH/vO+3yC6BFdSsG5FOpU2WabfIl9BJpiyelSPJ6c79L12039-JuTm5Rh8i27fbMx4W09ysstcP4wFjdFMjK2Sx+F4f2VsSQZQLJ4ywtdKxnWKWU512040-b0dewQIDAQABoxAwDjAMBgNVHRMEBTADAQH/MA0GCSqGSIb3DQEBBQUAA4IBAQAV2041-9VX/N5aAWSGk/KEVTCD21F/aAyT8z5Aa9CEKmu46sWrv7/hg0Uw2ZkUd82YCdAR72042-kjCo3gp2D++Vbr3JN+YaDayJSFvMgzbC9UZcWYJWtNX+I7TYVBxEq8Sn5RTOPEFh2043-fEPmzcSBCYsk+1Ql1haolgxnB2+zUEfjHCQo3SqYpGH+2+oSN7wBGjSFvW5P55Fy2044-B0SFHljKVETd96y5y4khctuPwGkplyqjrhgjlxxBKot8KsF8kOipKMDTkcatKIdA2045-aLX/7KfS0zgYnNN9aV3wxqUeJBujR/xpB2jn5Jq07Q+hh4cCzofSSE7hvP/L8XKS2046-RGQDJereW26fyfJOrN3H2047------END CERTIFICATE-----2048-1510 # Issuer: CN=TÜRKTRUST Elektronik Sertifika Hizmet Sağlayıcısı O=TÜRKTRUST Bilgi İletişim ve Bilişim Güvenliği Hizmetleri A.Ş. (c) Kasım 20051511 # Subject: CN=TÜRKTRUST Elektronik Sertifika Hizmet Sağlayıcısı O=TÜRKTRUST Bilgi İletişim ve Bilişim Güvenliği Hizmetleri A.Ş. (c) Kasım 20051512 # Label: "TURKTRUST Certificate Services Provider Root 2"1513 # Serial: 1563 unmodified lines2077 t0QmwCbAr1UwnjvVNioZBPRcHv/PLLf/0P2HQBHVESO7SMAhqaQoLf0V+LBOK/Qw2078 WyH8EZE0vkHve52Xdf+XlcCWWC/qu0bXu+TZLg==2079 -----END CERTIFICATE-----2080 2620-# Issuer: CN=AC Raíz Certicámara S.A. O=Sociedad Cameral de Certificación Digital - Certicámara S.A.2621-# Subject: CN=AC Raíz Certicámara S.A. O=Sociedad Cameral de Certificación Digital - Certicámara S.A.2622-# Label: "AC Ra\xC3\xADz Certic\xC3\xA1mara S.A."2623-# Serial: 389082039731826069547528437385083002624-# MD5 Fingerprint: 93:2a:3e:f6:fd:23:69:0d:71:20:d4:2b:47:99:2b:a62625-# SHA1 Fingerprint: cb:a1:c5:f8:b0:e3:5e:b8:b9:45:12:d3:f9:34:a2:e9:06:10:d3:362626-# SHA256 Fingerprint: a6:c5:1e:0d:a5:ca:0a:93:09:d2:e4:c0:e4:0c:2a:f9:10:7a:ae:82:03:85:7f:e1:98:e3:e7:69:e3:43:08:5c2627------BEGIN CERTIFICATE-----2628-MIIGZjCCBE6gAwIBAgIPB35Sk3vgFeNX8GmMy+wMMA0GCSqGSIb3DQEBBQUAMHsx2629-CzAJBgNVBAYTAkNPMUcwRQYDVQQKDD5Tb2NpZWRhZCBDYW1lcmFsIGRlIENlcnRp2630-ZmljYWNpw7NuIERpZ2l0YWwgLSBDZXJ0aWPDoW1hcmEgUy5BLjEjMCEGA1UEAwwa2631-QUMgUmHDrXogQ2VydGljw6FtYXJhIFMuQS4wHhcNMDYxMTI3MjA0NjI5WhcNMzAw2632-NDAyMjE0MjAyWjB7MQswCQYDVQQGEwJDTzFHMEUGA1UECgw+U29jaWVkYWQgQ2Ft2633-ZXJhbCBkZSBDZXJ0aWZpY2FjacOzbiBEaWdpdGFsIC0gQ2VydGljw6FtYXJhIFMu2634-QS4xIzAhBgNVBAMMGkFDIFJhw616IENlcnRpY8OhbWFyYSBTLkEuMIICIjANBgkq2635-hkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAq2uJo1PMSCMI+8PPUZYILrgIem08kBeG2636-qentLhM0R7LQcNzJPNCNyu5LF6vQhbCnIwTLqKL85XXbQMpiiY9QngE9JlsYhBzL2637-fDe3fezTf3MZsGqy2IiKLUV0qPezuMDU2s0iiXRNWhU5cxh0T7XrmafBHoi0wpOQ2638-Y5fzp6cSsgkiBzPZkc0OnB8OIMfuuzONj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pKv6DExdA7ohiZVvVO2Dp2655-ezy4ydV/NgIlqmjCMRW3MGXrfx1IebHPOeJCgBbT9ZMj/EyXyVo3bHwi2ErN0o422656-gzmRkBDI8ck1fj+404HGIGQatlDCIaR43NAvO2STdPCWkPHv+wlaNECW8DYSwaN02657-jJN+Qd53i+yG2dIPPy3RzECiiWZIHiCznCNZc6lEc7wkeZBWN7PGKX6jD/EpOe9+2658-XCgycDWs2rjIdWb8m0w5R44bb5tNAlQiM+9hup4phO9OSzNHdpdqy35f/RWmnkJD2659-W2ZaiogN9xa5P1FlK2Zqi9E4UqLWRhH6/JocdJ6PlwsCT2TG9WjTSy3/pDceiz+/2660-RL5hRqGEPQgnTIEgd4kI6mdAXmwIUV80WoyWaM3X94nCHNMyAK9Sy9NgWyo6R35r2661-MDOhYil/SrnhLecUIw4OGEfhefwVVdCx/CVxY3UzHCMrr1zZ7Ud3YA47Dx7SwNxk2662-BYn8eNZcLCZDqQ==2663------END CERTIFICATE-----2664-2665-# Issuer: CN=TC TrustCenter Class 2 CA II O=TC TrustCenter GmbH OU=TC TrustCenter Class 2 CA2666-# Subject: CN=TC TrustCenter Class 2 CA II O=TC TrustCenter GmbH OU=TC TrustCenter Class 2 CA2667-# Label: "TC TrustCenter Class 2 CA II"2668-# Serial: 9413890282034538667821034069924432669-# MD5 Fingerprint: ce:78:33:5c:59:78:01:6e:18:ea:b9:36:a0:b9:2e:232670-# SHA1 Fingerprint: ae:50:83:ed:7c:f4:5c:bc:8f:61:c6:21:fe:68:5d:79:42:21:15:6e2671-# SHA256 Fingerprint: e6:b8:f8:76:64:85:f8:07:ae:7f:8d:ac:16:70:46:1f:07:c0:a1:3e:ef:3a:1f:f7:17:53:8d:7a:ba:d3:91:b42672------BEGIN CERTIFICATE-----2673-MIIEqjCCA5KgAwIBAgIOLmoAAQACH9dSISwRXDswDQYJKoZIhvcNAQEFBQAwdjEL2674-MAkGA1UEBhMCREUxHDAaBgNVBAoTE1RDIFRydXN0Q2VudGVyIEdt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iSCxPVT1yb2902691-Y2VydHMsREM9dHJ1c3RjZW50ZXIsREM9ZGU/Y2VydGlmaWNhdGVSZXZvY2F0aW9u2692-TGlzdD9iYXNlPzANBgkqhkiG9w0BAQUFAAOCAQEAjNfffu4bgBCzg/XbEeprS6iS2693-GNn3Bzn1LL4GdXpoUxUc6krtXvwjshOg0wn/9vYua0Fxec3ibf2uWWuFHbhOIprt2694-ZjluS5TmVfwLG4t3wVMTZonZKNaL80VKY7f9ewthXbhtvsPcW3nS7Yblok2+XnR82695-au0WOB9/WIFaGusyiC2y8zl3gK9etmF1KdsjTYjKUCjLhdLTEKJZbtOTVAB6okaV2696-hgWcqRmY5TFyDADiZ9lA4CQze28suVyrZZ0srHbqNZn1l7kPJOzHdiEoZa5X6AeI2697-dUpWoNIFOqTmjZKILPPy4cHGYdtBxceb9w4aUUXCYWvcZCcXjFq32nQozZfkvQ==2698------END CERTIFICATE-----2699-2700-# Issuer: CN=TC TrustCenter Class 3 CA II O=TC TrustCenter GmbH OU=TC TrustCenter Class 3 CA2701-# Subject: CN=TC TrustCenter Class 3 CA II O=TC TrustCenter GmbH OU=TC TrustCenter Class 3 CA2702-# Label: "TC TrustCenter Class 3 CA II"2703-# Serial: 15065235114177156387722205300207992704-# MD5 Fingerprint: 56:5f:aa:80:61:12:17:f6:67:21:e6:2b:6d:61:56:8e2705-# SHA1 Fingerprint: 80:25:ef:f4:6e:70:c8:d4:72:24:65:84:fe:40:3b:8a:8d:6a:db:f52706-# SHA256 Fingerprint: 8d:a0:84:fc:f9:9c:e0:77:22:f8:9b:32:05:93:98:06:fa:5c:b8:11:e1:c8:13:f6:a1:08:c7:d3:36:b3:40:8e2707------BEGIN CERTIFICATE-----2708-MIIEqjCCA5KgAwIBAgIOSkcAAQAC5aBd1j8AUb8wDQYJKoZIhvcNAQEFBQAwdjEL2709-MAkGA1UEBhMCREUxHDAaBgNVBAoTE1RDIFRydXN0Q2VudGVyIEdtYkgxIjAgBgNV2710-BAsTGVRDIFRydX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HMsREM9dHJ1c3RjZW50ZXIsREM9ZGU/Y2VydGlmaWNhdGVSZXZvY2F0aW9u2727-TGlzdD9iYXNlPzANBgkqhkiG9w0BAQUFAAOCAQEANmDkcPcGIEPZIxpC8vijsrlN2728-irTzwppVMXzEO2eatN9NDoqTSheLG43KieHPOh6sHfGcMrSOWXaiQYUlN6AT0PV82729-TtXqluJucsG7Kv5sbviRmEb8yRtXW+rIGjs/sFGYPAfaLFkB2otE6OF0/ado3VS62730-g0bsyEa1+K+XwDsJHI/OcpY9M1ZwvJbL2NV9IJqDnxrcOfHFcqMRA/07QlIp2+gB2731-95tejNaNhk4Z+rwcvsUhpYeeeC422wlxo3I0+GzjBgnyXlal092Y+tTmBvTwtiBj2732-S+opvaqCZh77gaqnN60TGOaSw4HBM7uIHqHn4rS9MWwOUT1v+5ZWgOI2F9Hc5A==2733------END CERTIFICATE-----2734-2735-# Issuer: CN=TC TrustCenter Universal CA I O=TC TrustCenter GmbH OU=TC TrustCenter Universal CA2736-# Subject: CN=TC TrustCenter Universal CA I O=TC TrustCenter GmbH OU=TC TrustCenter Universal CA2737-# Label: "TC TrustCenter Universal CA I"2738-# Serial: 6010248420421890352956195847347262739-# MD5 Fingerprint: 45:e1:a5:72:c5:a9:36:64:40:9e:f5:e4:58:84:67:8c2740-# SHA1 Fingerprint: 6b:2f:34:ad:89:58:be:62:fd:b0:6b:5c:ce:bb:9d:d9:4f:4e:39:f32741-# SHA256 Fingerprint: eb:f3:c0:2a:87:89:b1:fb:7d:51:19:95:d6:63:b7:29:06:d9:13:ce:0d:5e:10:56:8a:8a:77:e2:58:61:67:e72742------BEGIN CERTIFICATE-----2743-MIID3TCCAsWgAwIBAgIOHaIAAQAC7LdggHiNtgYwDQYJKoZIhvcNAQEFBQAweTEL2744-MAkGA1UEBhMCREUxHDAaBgNVBAoTE1RDIFRydXN0Q2VudGVyIEdtYkgxJDAiBgNV2745-BAsTG1RDIFRydXN0Q2VudGVyIFVuaXZlcnNhbCBDQTEmMC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bxbuyGssLoDZJz3KL0Dzq/YSMQiZxIQG5wALPT2762-ujdEWBF6AmqI8Dc08BnprNRlc/ZpjGSUOnmFKbAWKwyCPwacx/0QK54PLLae4xW/2763-2TYcuiUaUj0a7CIMHOCkoj3w6DnPgcB77V0fb8XQC9eY2764------END CERTIFICATE-----2765-2081 # Issuer: CN=Deutsche Telekom Root CA 2 O=Deutsche Telekom AG OU=T-TeleSec Trust Center2082 # Subject: CN=Deutsche Telekom Root CA 2 O=Deutsche Telekom AG OU=T-TeleSec Trust Center2083 # Label: "Deutsche Telekom Root CA 2"2084 # Serial: 3822 unmodified lines2107 xbrYNuSD7Odlt79jWvNGr4GUN9RBjNYj1h7P9WgbRGOiWrqnNVmh5XAFmw4jV5mU2108 Cm26OWMohpLzGITY+9HPBVZkVw==2109 -----END CERTIFICATE-----2110 2796-# Issuer: CN=ComSign Secured CA O=ComSign2797-# Subject: CN=ComSign Secured CA O=ComSign2798-# Label: "ComSign Secured CA"2799-# Serial: 2647255038552957441173098144994923844892800-# MD5 Fingerprint: 40:01:25:06:8d:21:43:6a:0e:43:00:9c:e7:43:f3:d52801-# SHA1 Fingerprint: f9:cd:0e:2c:da:76:24:c1:8f:bd:f0:f0:ab:b6:45:b8:f7:fe:d5:7a2802-# SHA256 Fingerprint: 50:79:41:c7:44:60:a0:b4:70:86:22:0d:4e:99:32:57:2a:b5:d1:b5:bb:cb:89:80:ab:1c:b1:76:51:a8:44:d22803------BEGIN CERTIFICATE-----2804-MIIDqzCCApOgAwIBAgIRAMcoRwmzuGxFjB36JPU2TukwDQYJKoZIhvcNAQEFBQAw2805-PDEbMBkGA1UEAxMSQ29tU2lnbiBTZWN1cmVkIENBMRAwDgYDVQQKEwdDb21TaWdu2806-MQswCQYDVQQGEwJJTDAeFw0wNDAzMjQxMTM3MjBaFw0yOTAzMTYxNTA0NTZaMDwx2807-GzAZBgNVBAMTEkNvbVNpZ24gU2VjdXJlZCBDQTEQMA4GA1UEChMHQ29tU2lnbjEL2808-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ERTIFICATE-----2825-2111 # Issuer: CN=Cybertrust Global Root O=Cybertrust, Inc2112 # Subject: CN=Cybertrust Global Root O=Cybertrust, Inc2113 # Label: "Cybertrust Global Root"2114 # Serial: 4835703278459682877484360129 unmodified lines2244 h7U/2k3ZIQAw3pDaDtMaSKk+hQsUi4y8QZ5q9w5wwDX3OaJdZtB7WZ+oRxKaJyOk2245 LY4ng5IgodcVf/EuGO70SH8vf/GhGLWhC5SgYiAynB321O+/TIho2246 -----END CERTIFICATE-----2247 2963-# Issuer: CN=Buypass Class 3 CA 1 O=Buypass AS-9831633272964-# Subject: CN=Buypass Class 3 CA 1 O=Buypass AS-9831633272965-# Label: "Buypass Class 3 CA 1"2966-# Serial: 22967-# MD5 Fingerprint: df:3c:73:59:81:e7:39:50:81:04:4c:34:a2:cb:b3:7b2968-# SHA1 Fingerprint: 61:57:3a:11:df:0e:d8:7e:d5:92:65:22:ea:d0:56:d7:44:b3:23:712969-# SHA256 Fingerprint: b7:b1:2b:17:1f:82:1d:aa:99:0c:d0:fe:50:87:b1:28:44:8b:a8:e5:18:4f:84:c5:1e:02:b5:c8:fb:96:2b:242970------BEGIN CERTIFICATE-----2971-MIIDUzCCAjugAwIBAgIBAjANBgkqhkiG9w0BAQUFADBLMQswCQYDVQQGEwJOTzEd2972-MBsGA1UECgwUQnV5cGFzcyBBUy05ODMxNjMzMjcxHTAbBgNVBAMMFEJ1eXBhc3Mg2973-Q2xhc3MgMyBDQSAxMB4XDTA1MDUwOTE0MTMwM1oXDTE1MDUwOTE0MTMwM1owSzEL2974-MAkGA1UEBhMCTk8xHTAbBgNVBAoMFEJ1eXBhc3MgQVMtOTgzMTYzMzI3MR0wGwYD2975-VQQDDBRCdXlwYXNzIENsYXNzIDMgQ0EgMTCCASIwDQYJKoZIhvcNAQEBBQADggEP2976-ADCCAQoCggEBAKSO13TZKWTeXx+HgJHqTjnmGcZEC4DVC69TB4sSveZn8AKxifZg2977-isRbsELRwCGoy+Gb72RRtqfPFfV0gGgEkKBYouZ0plNTVUhjP5JW3SROjvi6K//z2978-NIqeKNc0n6wv1g/xpC+9UrJJhW05NfBEMJNGJPO251P7vGGvqaMU+8IXF4Rs4HyI2979-+MkcVyzwPX6UvCWThOiaAJpFBUJXgPROztmuOfbIUxAMZTpHe2DC1vqRycZxbL2R2980-hzyRhkmr8w+gbCZ2Xhysm3HljbybIR6c1jh+JIAVMYKWsUnTYjdbiAwKYjT+p0h+2981-mbEwi5A3lRyoH6UsjfRVyNvdWQrCrXig9IsCAwEAAaNCMEAwDwYDVR0TAQH/BAUw2982-AwEB/zAdBgNVHQ4EFgQUOBTmyPCppAP0Tj4io1vy1uCtQHQwDgYDVR0PAQH/BAQD2983-AgEGMA0GCSqGSIb3DQEBBQUAA4IBAQABZ6OMySU9E2NdFm/soT4JXJEVKirZgCFP2984-Bdy7pYmrEzMqnji3jG8CcmPHc3ceCQa6Oyh7pEfJYWsICCD8igWKH7y6xsL+z27s2985-EzNxZy5p+qksP2bAEllNC1QCkoS72xLvg3BweMhT+t/Gxv/ciC8HwEmdMldg0/L22986-mSlf56oBzKwzqBwKu5HEA6BvtjT5htOzdlSY9EqBs1OdTUDs5XcTRa9bqh/YL0yC2987-e/4qxFi7T/ye/QNlGioOw6UgFpRreaaiErS7GqQjel/wroQk5PMr+4okoyeYZdow2988-dXb8GZHo2+ubPzK/QJcHJrrM85SFSnonk8+QQtS4Wxam58tAA9152989------END CERTIFICATE-----2990-2248 # Issuer: CN=EBG Elektronik Sertifika Hizmet Sağlayıcısı O=EBG Bilişim Teknolojileri ve Hizmetleri A.Ş.2249 # Subject: CN=EBG Elektronik Sertifika Hizmet Sağlayıcısı O=EBG Bilişim Teknolojileri ve Hizmetleri A.Ş.2250 # Label: "EBG Elektronik Sertifika Hizmet Sa\xC4\x9Flay\xc4\xb1\x63\xc4\xb1s\xc4\xb1"2251 # Serial: 5525761995591021570539 unmodified lines2791 r0CodaxWkHS4oJyleW/c6RrIaQXpuvoDs3zk4E7Czp3otkYNbn5XOmeUwssfnHdK2792 Z05phkOTOPu220+DkdRgfks+KzgHVZhepA==2793 -----END CERTIFICATE-----2794 3538-# Issuer: O=VeriSign, Inc. OU=Class 3 Public Primary Certification Authority3539-# Subject: O=VeriSign, Inc. OU=Class 3 Public Primary Certification Authority3540-# Label: "Verisign Class 3 Public Primary Certification Authority"3541-# Serial: 805075727228624855153064299406913092463542-# MD5 Fingerprint: ef:5a:f1:33:ef:f1:cd:bb:51:02:ee:12:14:4b:96:c43543-# SHA1 Fingerprint: a1:db:63:93:91:6f:17:e4:18:55:09:40:04:15:c7:02:40:b0:ae:6b3544-# SHA256 Fingerprint: a4:b6:b3:99:6f:c2:f3:06:b3:fd:86:81:bd:63:41:3d:8c:50:09:cc:4f:a3:29:c2:cc:f0:e2:fa:1b:14:03:053545------BEGIN CERTIFICATE-----3546-MIICPDCCAaUCEDyRMcsf9tAbDpq40ES/Er4wDQYJKoZIhvcNAQEFBQAwXzELMAkG3547-A1UEBhMCVVMxFzAVBgNVBAoTDlZlcmlTaWduLCBJbmMuMTcwNQYDVQQLEy5DbGFz3548-cyAzIFB1YmxpYyBQcmltYXJ5IENlcnRpZmljYXRpb24gQXV0aG9yaXR5MB4XDTk23549-MDEyOTAwMDAwMFoXDTI4MDgwMjIzNTk1OVowXzELMAkGA1UEBhMCVVMxFzAVBgNV3550-BAoTDlZlcmlTaWduLCBJbmMuMTcwNQYDVQQLEy5DbGFzcyAzIFB1YmxpYyBQcmlt3551-YXJ5IENlcnRpZmljYXRpb24gQXV0aG9yaXR5MIGfMA0GCSqGSIb3DQEBAQUAA4GN3552-ADCBiQKBgQDJXFme8huKARS0EN8EQNvjV69qRUCPhAwL0TPZ2RHP7gJYHyX3KqhE3553-BarsAx94f56TuZoAqiN91qyFomNFx3InzPRMxnVx0jnvT0Lwdd8KkMaOIG+YD/is3554-I19wKTakyYbnsZogy1Olhec9vn2a/iRFM9x2Fe0PonFkTGUugWhFpwIDAQABMA0G3555-CSqGSIb3DQEBBQUAA4GBABByUqkFFBkyCEHwxWsKzH4PIRnN5GfcX6kb5sroc50i3556-2JhucwNhkcV8sEVAbkSdjbCxlnRhLQ2pRdKkkirWmnWXbj9T/UWZYB2oK0z5XqcJ3557-2HUw19JlYD1n1khVdWk/kfVIC0dpImmClr7JyDiGSnoscxlIaU5rfGW/D/xwzoiQ3558------END CERTIFICATE-----3559-2795 # Issuer: CN=Microsec e-Szigno Root CA 2009 O=Microsec Ltd.2796 # Subject: CN=Microsec e-Szigno Root CA 2009 O=Microsec Ltd.2797 # Label: "Microsec e-Szigno Root CA 2009"2798 # Serial: 1401471277619578447324 unmodified lines2823 2Pm2G2JwCz02yULyMtd6YebS2z3PyKnJm9zbWETXbzivf3jTo60adbocwTZ8jx5t2824 HMN1Rq41Bab2XD0h7lbwyYIiLXpUq3DDfSJlgnCW2825 -----END CERTIFICATE-----2826 3592-# Issuer: CN=e-Guven Kok Elektronik Sertifika Hizmet Saglayicisi O=Elektronik Bilgi Guvenligi A.S.3593-# Subject: CN=e-Guven Kok Elektronik Sertifika Hizmet Saglayicisi O=Elektronik Bilgi Guvenligi A.S.3594-# Label: "E-Guven Kok Elektronik Sertifika Hizmet Saglayicisi"3595-# Serial: 911847897655989100591730004853634940693596-# MD5 Fingerprint: 3d:41:29:cb:1e:aa:11:74:cd:5d:b0:62:af:b0:43:5b3597-# SHA1 Fingerprint: dd:e1:d2:a9:01:80:2e:1d:87:5e:84:b3:80:7e:4b:b1:fd:99:41:343598-# SHA256 Fingerprint: e6:09:07:84:65:a4:19:78:0c:b6:ac:4c:1c:0b:fb:46:53:d9:d9:cc:6e:b3:94:6e:b7:f3:d6:99:97:ba:d5:983599------BEGIN CERTIFICATE-----3600-MIIDtjCCAp6gAwIBAgIQRJmNPMADJ72cdpW56tustTANBgkqhkiG9w0BAQUFADB13601-MQswCQYDVQQGEwJUUjEoMCYGA1UEChMfRWxla3Ryb25payBCaWxnaSBHdXZlbmxp3602-Z2kgQS5TLjE8MDoGA1UEAxMzZS1HdXZl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c7gGWIjQ0LpH5t8Qn0Xvmv/uARFoW5evg1Ao4vOSR49XrXMGs3xtq3619-fJ7lddK2l4fbzIcrQzqECK+rPNv3PGYxhrCdU3nt+CPeQuMtgvEP5fqX3620------END CERTIFICATE-----3621-2827 # Issuer: CN=GlobalSign O=GlobalSign OU=GlobalSign Root CA - R32828 # Subject: CN=GlobalSign O=GlobalSign OU=GlobalSign Root CA - R32829 # Label: "GlobalSign Root CA - R3"2830 # Serial: 48357032784597594262099541397 unmodified lines4228 wa19hAM8EHiGG3njxPPyBJUgriOCxLM6AGK/5jYk4Ve6xx6QddVfP5VhK8E7zeWz4229 aGHQRiapIVJpLesux+t3zqY6tQMzT3bR51xUAV3LePTJDL/PEo4XLSNolOer/qmy4230 KwbQBM0=4231 -----END CERTIFICATE-----4232+4233+# Issuer: CN=TeliaSonera Root CA v1 O=TeliaSonera4234+# Subject: CN=TeliaSonera Root CA v1 O=TeliaSonera4235+# Label: "TeliaSonera Root CA v1"4236+# Serial: 1990419667410901079649042872177868015584237+# MD5 Fingerprint: 37:41:49:1b:18:56:9a:26:f5:ad:c2:66:fb:40:a5:4c4238+# SHA1 Fingerprint: 43:13:bb:96:f1:d5:86:9b:c1:4e:6a:92:f6:cf:f6:34:69:87:82:374239+# SHA256 Fingerprint: dd:69:36:fe:21:f8:f0:77:c1:23:a1:a5:21:c1:22:24:f7:22:55:b7:3e:03:a7:26:06:93:e8:a2:4b:0f:a3:894240+-----BEGIN CERTIFICATE-----4241+MIIFODCCAyCgAwIBAgIRAJW+FqD3LkbxezmCcvqLzZYwDQYJKoZIhvcNAQEFBQAw4242+NzEUMBIGA1UECgwLVGVsaWFTb25lcmExHzAdBgNVBAMMFlRlbGlhU29uZXJhIFJv4243+b3QgQ0EgdjEwHhcNMDcxMDE4MTIwMDUwWhcNMzIxMDE4MTIwMDUwWjA3MRQwEgYD4244+VQQKDAtUZWxpYVNvbmVyYTEfMB0GA1UEAwwWVGVsaWFTb25lcmEgUm9vdCBDQSB24245+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1Tj4261+TQpgcmLNkQfWpb/ImWvtxBnmq0wROMVvMeJuScg/doAmAyYp4Db29iBT4xdwNBed4262+Y2gea+zDTYa4EzAvXUYNR0PVG6pZDrlcjQZIrXSHX8f8MVRBE+LHIQ6e4B4N4cB74263+Q4WQxYpYxmUKeFfyxiMPAdkgS94P+5KFdSpcc41teyWRyu5FrgZLAMzTsVlQ2jqI4264+OylDRl6XK1TOU2+NSueW+r9xDkKLfP0ooNBIytrEgUy7onOTJsjrDNYmiLbAJM+74265+vVvrdX3pCI6GMyx5dwlppYn8s3CQh3aP0yK7Qs69cwsgJirQmz1wHiRszYd2qReW4266+t88NkvuOGKmYSdGe/mBEciG5Ge3C9THxOUiIkCR1VBatzvT4aRRkOfujuLpwQMcn4267+HL/EVlP6Y2XQ8xwOFvVrhlhNGNTkDY6lnVuR3HYkUD/GKvvZt5y11ubQ2egZixVx4268+SK236thZiNSQvxaz2emsWWFUyBy6ysHK4bkgTI86k4mloMy/0/Z1pHWWbVY=4269+-----END CERTIFICATE-----4270+4271+# Issuer: CN=E-Tugra Certification Authority O=E-Tuğra EBG Bilişim Teknolojileri ve Hizmetleri A.Ş. OU=E-Tugra Sertifikasyon Merkezi4272+# Subject: CN=E-Tugra Certification Authority O=E-Tuğra EBG Bilişim Teknolojileri ve Hizmetleri A.Ş. OU=E-Tugra Sertifikasyon Merkezi4273+# Label: "E-Tugra Certification Authority"4274+# Serial: 76674472067032543554275+# MD5 Fingerprint: b8:a1:03:63:b0:bd:21:71:70:8a:6f:13:3a:bb:79:494276+# SHA1 Fingerprint: 51:c6:e7:08:49:06:6e:f3:92:d4:5c:a0:0d:6d:a3:62:8f:c3:52:394277+# SHA256 Fingerprint: b0:bf:d5:2b:b0:d7:d9:bd:92:bf:5d:4d:c1:3d:a2:55:c0:2c:54:2f:37:83:65:ea:89:39:11:f5:5e:55:f2:3c4278+-----BEGIN CERTIFICATE-----4279+MIIGSzCCBDOgAwIBAgIIamg+nFGby1MwDQYJKoZIhvcNA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RdH9I2cNE3X7z2VnIp2usAnRCf8d4312+NL/+I5c30jn6PQ0GC7TbO6Orb1wdtn7os4I07QZcJA==4313+-----END CERTIFICATE-----4314+4315+# Issuer: CN=T-TeleSec GlobalRoot Class 2 O=T-Systems Enterprise Services GmbH OU=T-Systems Trust Center4316+# Subject: CN=T-TeleSec GlobalRoot Class 2 O=T-Systems Enterprise Services GmbH OU=T-Systems Trust Center4317+# Label: "T-TeleSec GlobalRoot Class 2"4318+# Serial: 14319+# MD5 Fingerprint: 2b:9b:9e:e4:7b:6c:1f:00:72:1a:cc:c1:77:79:df:6a4320+# SHA1 Fingerprint: 59:0d:2d:7d:88:4f:40:2e:61:7e:a5:62:32:17:65:cf:17:d8:94:e94321+# SHA256 Fingerprint: 91:e2:f5:78:8d:58:10:eb:a7:ba:58:73:7d:e1:54:8a:8e:ca:cd:01:45:98:bc:0b:14:3e:04:1b:17:05:25:524322+-----BEGIN CERTIFICATE-----4323+MIIDwzCCAqugAwIBAgIBATANBgkqhkiG9w0BAQsFADCBgjELMAkGA1UEBhMCREUx4324+KzApBgNVBAoMIlQtU3lzdGVtcyBFbnRlcnByaXNlIFNlcnZpY2VzIEdtYkgxHzAd4325+BgNVBAsMFlQtU3lzdGVtcyBUcnVzdCBDZW50ZXIxJTAjBgNVBAMMHFQtVGVsZVNl4326+YyBHbG9iYWxSb290IENsYXNzIDIwHhcNMDgxMDAxMTA0MDE0WhcNMzMxMDAxMjM14327+OTU5WjCBgjELMAkGA1UEBhMCREUxKzApBgNVBAoMIlQtU3lzdGVtcyBFbnRlcnBy4328+aXNlIFNlcnZpY2VzIEdtYkgxHzAdBgNVBAsMFlQtU3lzdGVtcyBUcnVzdCBDZW504329+ZXIxJTAjBgNVBAMMHFQtVGVsZVNlYyBHbG9iYWxSb290IENsYXNzIDIwggEiMA0G4330+CSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCqX9obX+hzkeXaXPSi5kfl82hVYAUd4331+AqSzm1nzHoqvNK38DcLZSBnuaY/JIPwhqgcZ7bBcrGXHX+0CfHt8LRvWurmAwhiC4332+FoT6ZrAIxlQjgeTNuUk/9k9uN0goOA/FvudocP05l03Sx5iRUKrERLMjfTlH6VJi4333+1hKTXrcxlkIF+3anHqP1wvzpesVsqXFP6st4vGCvx9702cu+fjOlbpSD8DT6Iavq4334+jnKgP6TeMFvvhk1qlVtDRKgQFRzlAVfFmPHmBiiRqiDFt1MmUUOyCxGVWOHAD3bZ4335+wI18gfNycJ5v/hqO2V81xrJvNHy+SE/iWjnX2J14np+GPgNeGYtEotXHAgMBAAGj4336+QjBAMA8GA1UdEwEB/wQFMAMBAf8wDgYDVR0PAQH/BAQDAgEGMB0GA1UdDgQWBBS/4337+WSA2AHmgoCJrjNXyYdK4LMuCSjANBgkqhkiG9w0BAQsFAAOCAQEAMQOiYQsfdOhy4338+NsZt+U2e+iKo4YFWz827n+qrkRk4r6p8FU3ztqONpfSO9kSpp+ghla0+AGIWiPAC4339+uvxhI+YzmzB6azZie60EI4RYZeLbK4rnJVM3YlNfvNoBYimipidx5joifsFvHZVw4340+IEoHNN/q/xWA5brXethbdXwFeilHfkCoMRN3zUA7tFFHei4R40cR3p1m0IvVVGb64341+g1XqfMIpiRvpb7PO4gWEyS8+eIVibslfwXhjdFjASBgMmTnrpMwatXlajRWc2BQN4342+9noHV8cigwUtPJslJj0Ys6lDfMjIq2SPDqO/nBudMNva0Bkuqjzx+zOAduTNrRlP4343+BSeOE6Fuwg==4344+-----END CERTIFICATE-----4345+4346+# Issuer: CN=Atos TrustedRoot 2011 O=Atos4347+# Subject: CN=Atos TrustedRoot 2011 O=Atos4348+# Label: "Atos TrustedRoot 2011"4349+# Serial: 66438774978133164024350+# MD5 Fingerprint: ae:b9:c4:32:4b:ac:7f:5d:66:cc:77:94:bb:2a:77:564351+# SHA1 Fingerprint: 2b:b1:f5:3e:55:0c:1d:c5:f1:d4:e6:b7:6a:46:4b:55:06:02:ac:214352+# SHA256 Fingerprint: f3:56:be:a2:44:b7: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YJDE0BAGmuhWawyfc2E8PzBhj/5kP4369+DpFrdRbhIfzYJsdHt6bPWHJxfrrhTZVHO8mvbaG0weyJ9rQPOLXiZNwlz6bb65pc4370+maHFCN795trV1lpFDMS3wrUU77QR/w4VtfX128a961qn8FYiqTxlVMYVqL2Gns2D4371+lmh6cYGJ4Qvh6hEbaAjMaZ7snkGeRDImeuKHCnE96+RapNLbxc3G3mB/ufNPRJLv4372+KrcYPqcZ2Qt9sTdBQrC6YB3y/gkRsPCHe6ed4373+-----END CERTIFICATE-----4374+4375+# Issuer: CN=QuoVadis Root CA 1 G3 O=QuoVadis Limited4376+# Subject: CN=QuoVadis Root CA 1 G3 O=QuoVadis Limited4377+# Label: "QuoVadis Root CA 1 G3"4378+# Serial: 6870496496266692507362710376065546240787200341954379+# MD5 Fingerprint: a4:bc:5b:3f:fe:37:9a:fa:64:f0:e2:fa:05:3d:0b:ab4380+# SHA1 Fingerprint: 1b:8e:ea:57:96:29:1a:c9:39:ea:b8:0a:81:1a:73:73:c0:93:79:674381+# SHA256 Fingerprint: 8a:86:6f:d1:b2:76:b5:7e:57:8e:92:1c:65:82:8a:2b:ed:58:e9:f2:f2:88:05:41:34:b7:f1:f4:bf:c9:cc:744382+-----BEGIN CERTIFICATE-----4383+MIIFYDCCA0igAwIBAgIUeFhfLq0sGUvjNwc1NBMotZbUZZMwDQYJKoZIhvcNAQEL4384+BQAwSDELMAkGA1UEBhMCQk0xGTAXBgNVBAoTEFF1b1ZhZGlzIExpbWl0ZWQxHjAc4385+BgNVBAMTFVF1b1ZhZGlzIFJvb3QgQ0EgMSBHMzAeFw0xMjAxMTIxNzI3NDRaFw004386+MjAxMTIxNzI3NDRaMEgxCzAJBgNVBAYTAkJNMRkwFwYDVQQKExBRdW9WYWRpcyBM4387+aW1pdGVkMR4wHAYDVQQDExVRdW9WYWRpcyBSb290IENBIDEgRzMwggIiMA0GCSqG4388+SIb3DQEBAQUAA4ICDwAwggIKAoICAQCgvlAQjunybEC0BJyFuTH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CP6o6ojoilzHdCGPDdRS54405+YCgtW2jgFqlmgiNR9etT2DGbe+m3nUvriBbP+V04ikkwj+3x6xn0dxoxGE1nVGwv4406+b2X52z3sIexe9PSLymBlVNFxZPT5pqOBMzYzcfCkeF9OrYMh3jRJjehZrJ3ydlo24407+8hP0r+AJx2EqbPfgna67hkooby7utHnNkDPDs3b69fBsnQGQ+p6Q9pxyz0fawx/k4408+NSBT8lTR32GDpgLiJTjehTItXnOQUl1CxM49S+H5GYQd1aJQzEH7QRTDvdbJWqNj4409+ZgKAvQU6O0ec7AAmTPWIUb+oI38YB7AL7YsmoWTTYUrrXJ/es69nA7Mf3W1daWhp4410+q1467HxpvMc7hU6eFbm0FU/DlXpY18ls6Wy58yljXrQs8C097Vpl4KlbQMJImYFt4411+nh8GKjwStIsPm6Ik8KaN1nrgS7ZklmOVhMJKzRwuJIczYOXD4412+-----END CERTIFICATE-----4413+4414+# Issuer: CN=QuoVadis Root CA 2 G3 O=QuoVadis Limited4415+# Subject: CN=QuoVadis Root CA 2 G3 O=QuoVadis Limited4416+# Label: "QuoVadis Root CA 2 G3"4417+# Serial: 3901560794589592574461331692660799620268247258004418+# MD5 Fingerprint: af:0c:86:6e:bf:40:2d:7f:0b:3e:12:50:ba:12:3d:064419+# SHA1 Fingerprint: 09:3c:61:f3:8b:8b:dc:7d:55:df:75:38:02:05:00:e1:25:f5:c8:364420+# SHA256 Fingerprint: 8f:e4:fb:0a:f9:3a:4d:0d:67:db:0b:eb:b2:3e:37:c7:1b:f3:25:dc:bc:dd:24:0e:a0:4d:af:58:b4:7e:18:404421+-----BEGIN CERTIFICATE-----4422+MIIFYDCCA0igAwIBAgIURFc0JFuBiZs18s64KztbpybwdSgwDQYJKoZIhvcNAQEL4423+BQAwSDELMAkGA1UEBhMCQk0xGTAXBgNVBAoTEFF1b1ZhZGlzIExpbWl0ZWQxHjAc4424+BgNVBAMTFVF1b1ZhZGlzIFJvb3QgQ0EgMiBHMzAeFw0xMjAxMTIxODU5MzJ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664441+AarHakE7kNQIXLJgapDwyM4DYvmL7ftuKtwGTTwpD4kWilhMSA/ohGHqPHKmd+RC4442+roijQ1h5fq7KpVMNqT1wvSAZYaRsOPxDMuHBR//47PERIjKWnML2W2mWeyAMQ0Ga4443+W/ZZGYjeVYg3UQt4XAoeo0L9x52ID8DyeAIkVJOviYeIyUqAHerQbj5hLja7NQ4n4444+lv1mNDthcnPxFlxHBlRJAHpYErAK74X9sbgzdWqTHBLmYF5vHX/JHyPLhGGfHoJE4445++V+tYlUkmlKY7VHnoX6XOuYvHxHaU4AshZ6rNRDbIl9qxV6XU/IyAgkwo1jwDQHV4446+csaxfGl7w/U2Rcxhbl5MlMVerugOXou/983g7aEOGzPuVBj+D77vfoRrQ+NwmNtd4447+dbINWQeFFSM51vHfqSYP1kjHs6Yi9TM3WpVHn3u6GBVv/9YUZINJ0gpnIdsPNWNg4448+KCLjsZWDzYWm3S8P52dSbrsvhXz1SnPnxT7AvSESBT/8twNJAlvIJebiVDj1eYeM4449+HVOyToV7BjjHLPj4sHKNJeV3UvQDHEimUF+IIDBu8oJDqz2XhOdT+yHBTw8imoa44450+WSr2Rz0ZiC3oheGe7IUIarFsNMkd7EgrO3jtZsSOeWmD3n+M4451+-----END CERTIFICATE-----4452+4453+# Issuer: CN=QuoVadis Root CA 3 G3 O=QuoVadis Limited4454+# Subject: CN=QuoVadis Root CA 3 G3 O=QuoVadis Limited4455+# Label: "QuoVadis Root CA 3 G3"4456+# Serial: 2680907611704614624639959521573272421370892395814457+# MD5 Fingerprint: df:7d:b9:ad:54:6f:68:a1:df:89:57:03:97:43:b0:d74458+# SHA1 Fingerprint: 48:12:bd:92:3c:a8:c4:39:06:e7:30:6d:27:96:e6:a4:cf:22:2e:7d4459+# SHA256 Fingerprint: 88:ef:81:de:20:2e:b0:18:45:2e:43:f8:64:72:5c:ea:5f:bd:1f:c2:d9:d2:05:73:07:09:c5:d8:b8:69:0f:464460+-----BEGIN CERTIFICATE-----4461+MIIFYDCCA0igAwI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IwQDAPBgNVHRMBAf8EBTADAQH/MA4GA1UdDwEB/wQEAwIB4478+BjAdBgNVHQ4EFgQUxhfQvKjqAkPyGwaZXSuQILnXnOQwDQYJKoZIhvcNAQELBQAD4479+ggIBADRh2Va1EodVTd2jNTFGu6QHcrxfYWLopfsLN7E8trP6KZ1/AvWkyaiTt3px4480+KGmPc+FSkNrVvjrlt3ZqVoAh313m6Tqe5T72omnHKgqwGEfcIHB9UqM+WXzBusnI4481+FUBhynLWcKzSt/Ac5IYp8M7vaGPQtSCKFWGafoaYtMnCdvvMujAWzKNhxnQT5Wvv4482+oxXqA/4Ti2Tk08HS6IT7SdEQTXlm66r99I0xHnAUrdzeZxNMgRVhvLfZkXdxGYFg4483+u/BYpbWcC/ePIlUnwEsBbTuZDdQdm2NnL9DuDcpmvJRPpq3t/O5jrFc/ZSXPsoaP4484+0Aj/uHYUbt7lJ+yreLVTubY/6CD50qi+YUbKh4yE8/nxoGibIh6BJpsQBJFxwAYf4485+3KDTuVan45gtf4Od34wrnDKOMpTwATwiKp9Dwi7DmDkHOHv8XgBCH/MyJnmDhPbl4486+8MFREsALHgQjDFSlTC9JxUrRtm5gDWv8a4uFJGS3iQ6rJUdbPM9+Sb3H6QrG2vd+4487+DhcI00iX0HGS8A85PjRqHH3Y8iKuu2n0M7SmSFXRDw4m6Oy2Cy2nhTXN/VnIn9HN4488+PlopNLk9hM6xZdRZkZFWdSHBd575euFgndOtBBj0fOtek49TSiIp+EgrPk2GrFt/4489+ywaZWWDYWGWVjUTR939+J399roD1B0y2PpxxVJkES/1Y+Zj04490+-----END CERTIFICATE-----4491+4492+# Issuer: CN=DigiCert Assured ID Root G2 O=DigiCert Inc OU=www.digicert.com4493+# Subject: CN=DigiCert Assured ID Root G2 O=DigiCert Inc OU=www.digicert.com4494+# Label: "DigiCert Assured ID Root G2"4495+# Serial: 153853481608402139386430336208949054194496+# MD5 Fingerprint: 92:38:b9:f8:63:24:82:65:2c:57:33:e6:fe:81:8f:9d4497+# SHA1 Fingerprint: a1:4b:48:d9:43:ee:0a:0e:40:90:4f:3c:e0:a4:c0:91:93:51:5d:3f4498+# SHA256 Fingerprint: 7d:05:eb:b6:82:33:9f:8c:94:51:ee:09:4e:eb:fe:fa:79:53:a1:14:ed:b2:f4:49:49:45:2f:ab:7d:2f:c1:854499+-----BEGIN CERTIFICATE-----4500+MIIDljCCAn6gAwIBAgIQC5McOtY5Z+pnI7/Dr5r0SzANBgkqhkiG9w0BAQsFADBl4501+MQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB34502+d3cuZGlnaWNlcnQuY29tMSQwIgYDVQQDExtEaWdpQ2VydCBBc3N1cmVkIElEIFJv4503+b3QgRzIwHhcNMTMwODAxMTIwMDAwWhcNMzgwMTE1MTIwMDAwWjBlMQswCQYDVQQG4504+EwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3d3cuZGlnaWNl4505+cnQuY29tMSQwIgYDVQQDExtEaWdpQ2VydCBBc3N1cmVkIElEIFJvb3QgRzIwggEi4506+MA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDZ5ygvUj82ckmIkzTz+GoeMVSA4507+n61UQbVH35ao1K+ALbkKz3X9iaV9JPrjIgwrvJUXCzO/GU1BBpAAvQxNEP4Htecc4508+biJVMWWXvdMX0h5i89vqbFCMP4QMls+3ywPgym2hFEwbid3tALBSfK+RbLE4E9Hp4509+EgjAALAcKxHad3A2m67OeYfcgnDmCXRwVWmvo2ifv922ebPynXApVfSr/5Vh88lA4510+bx3RvpO704gqu52/clpWcTs/1PPRCv4o76Pu2ZmvA9OPYLfykqGxvYmJHzDNw6Yu4511+YjOuFgJ3RFrngQo8p0Quebg/BLxcoIfhG69Rjs3sLPr4/m3wOnyqi+RnlTGNAgMB4512+AAGjQjBAMA8GA1UdEwEB/wQFMAMBAf8wDgYDVR0PAQH/BAQDAgGGMB0GA1UdDgQW4513+BBTOw0q5mVXyuNtgv6l+vVa1lzan1jANBgkqhkiG9w0BAQsFAAOCAQEAyqVVjOPI4514+QW5pJ6d1Ee88hjZv0p3GeDgdaZaikmkuOGybfQTUiaWxMTeKySHMq2zNixya1r9I4515+0jJmwYrA8y8678Dj1JGG0VDjA9tzd29KOVPt3ibHtX2vK0LRdWLjSisCx1BL4Gni4516+lmwORGYQRI+tBev4eaymG+g3NJ1TyWGqolKvSnAWhsI6yLETcDbYz+70CjTVW0z94517+B5yiutkBclzzTcHdDrEcDcRjvq30FPuJ7KJBDkzMyFdA0G4Dqs0MjomZmWzwPDCv4518+ON9vvKO+KSAnq3T/EyJ43pdSVR6DtVQgA+6uwE9W3jfMw3+qBCe703e4YtsXfJwo4519+IhNzbM8m9Yop5w==4520+-----END CERTIFICATE-----4521+4522+# Issuer: CN=DigiCert Assured ID Root G3 O=DigiCert Inc OU=www.digicert.com4523+# Subject: CN=DigiCert Assured ID Root G3 O=DigiCert Inc OU=www.digicert.com4524+# Label: "DigiCert Assured ID Root G3"4525+# Serial: 154593129810085537319283849531354267964526+# MD5 Fingerprint: 7c:7f:65:31:0c:81:df:8d:ba:3e:99:e2:5c:ad:6e:fb4527+# SHA1 Fingerprint: f5:17:a2:4f:9a:48:c6:c9:f8:a2:00:26:9f:dc:0f:48:2c:ab:30:894528+# SHA256 Fingerprint: 7e:37:cb:8b:4c:47:09:0c:ab:36:55:1b:a6:f4:5d:b8:40:68:0f:ba:16:6a:95:2d:b1:00:71:7f:43:05:3f:c24529+-----BEGIN CERTIFICATE-----4530+MIICRjCCAc2gAwIBAgIQC6Fa+h3foLVJRK/NJKBs7DAKBggqhkjOPQQDAzBlMQsw4531+CQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3d3cu4532+ZGlnaWNlcnQuY29tMSQwIgYDVQQDExtEaWdpQ2VydCBBc3N1cmVkIElEIFJvb3Qg4533+RzMwHhcNMTMwODAxMTIwMDAwWhcNMzgwMTE1MTIwMDAwWjBlMQswCQYDVQQGEwJV4534+UzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3d3cuZGlnaWNlcnQu4535+Y29tMSQwIgYDVQQDExtEaWdpQ2VydCBBc3N1cmVkIElEIFJvb3QgRzMwdjAQBgcq4536+hkjOPQIBBgUrgQQAIgNiAAQZ57ysRGXtzbg/WPuNsVepRC0FFfLvC/8QdJ+1YlJf4537+Zn4f5dwbRXkLzMZTCp2NXQLZqVneAlr2lSoOjThKiknGvMYDOAdfVdp+CW7if17Q4538+RSAPWXYQ1qAk8C3eNvJsKTmjQjBAMA8GA1UdEwEB/wQFMAMBAf8wDgYDVR0PAQH/4539+BAQDAgGGMB0GA1UdDgQWBBTL0L2p4ZgFUaFNN6KDec6NHSrkhDAKBggqhkjOPQQD4540+AwNnADBkAjAlpIFFAmsSS3V0T8gj43DydXLefInwz5FyYZ5eEJJZVrmDxxDnOOlY4541+JjZ91eQ0hjkCMHw2U/Aw5WJjOpnitqM7mzT6HtoQknFekROn3aRukswy1vUhZscv4542+6pZjamVFkpUBtA==4543+-----END CERTIFICATE-----4544+4545+# Issuer: CN=DigiCert Global Root G2 O=DigiCert Inc OU=www.digicert.com4546+# Subject: CN=DigiCert Global Root G2 O=DigiCert Inc OU=www.digicert.com4547+# Label: "DigiCert Global Root G2"4548+# Serial: 42937435400469753785348795032022535414549+# MD5 Fingerprint: e4:a6:8a:c8:54:ac:52:42:46:0a:fd:72:48:1b:2a:444550+# SHA1 Fingerprint: df:3c:24:f9:bf:d6:66:76:1b:26:80:73:fe:06:d1:cc:8d:4f:82:a44551+# SHA256 Fingerprint: cb:3c:cb:b7:60:31:e5:e0:13:8f:8d:d3:9a:23:f9:de:47:ff:c3:5e:43:c1:14:4c:ea:27:d4:6a:5a:b1:cb:5f4552+-----BEGIN CERTIFICATE-----4553+MIIDjjCCAnagAwIBAgIQAzrx5qcRqaC7KGSxHQn65TANBgkqhkiG9w0BAQsFADBh4554+MQswCQY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Z914570+8rGOmaFvE7FBcf6IKshPECBV1/MUReXgRPTqh5Uykw7+U0b6LJ3/iyK5S9kJRaTe4571+pLiaWN0bfVKfjllDiIGknibVb63dDcY3fe0Dkhvld1927jyNxF1WW6LZZm6zNTfl4572+MrY=4573+-----END CERTIFICATE-----4574+4575+# Issuer: CN=DigiCert Global Root G3 O=DigiCert Inc OU=www.digicert.com4576+# Subject: CN=DigiCert Global Root G3 O=DigiCert Inc OU=www.digicert.com4577+# Label: "DigiCert Global Root G3"4578+# Serial: 70892444690302932917600833338843641464579+# MD5 Fingerprint: f5:5d:a4:50:a5:fb:28:7e:1e:0f:0d:cc:96:57:56:ca4580+# SHA1 Fingerprint: 7e:04:de:89:6a:3e:66:6d:00:e6:87:d3:3f:fa:d9:3b:e8:3d:34:9e4581+# SHA256 Fingerprint: 31:ad:66:48:f8:10:41:38:c7:38:f3:9e:a4:32:01:33:39:3e:3a:18:cc:02:29:6e:f9:7c:2a:c9:ef:67:31:d04582+-----BEGIN CERTIFICATE-----4583+MIICPzCCAcWgAwIBAgIQBVVWvPJepDU1w6QP1atFcjAKBggqhkjOPQQDAzBhMQsw4584+CQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3d3cu4585+ZGlnaWNlcnQuY29tMSAwHgYDVQQDExdEaWdpQ2VydCBHbG9iYWwgUm9vdCBHMzAe4586+Fw0xMzA4MDExMjAwMDBaFw0zODAxMTUxMjAwMDBaMGExCzAJBgNVBAYTAlVTMRUw4587+EwYDVQQKEwxEaWdpQ2VydCBJbmMxGTAXBgNVBAsTEHd3dy5kaWdpY2VydC5jb20x4588+IDAeBgNVBAMTF0RpZ2lDZXJ0IEdsb2JhbCBSb290IEczMHYwEAYHKoZIzj0CAQYF4589+K4EEACIDYgAE3afZu4q4C/sLfyHS8L6+c/MzXRq8NOrexpu80JX28MzQC7phW1FG4590+fp4tn+6OYwwX7Adw9c+ELkCDnOg/QW07rdOkFFk2eJ0DQ+4QE2xy3q6Ip6FrtUPO4591+Z9wj/wMco+I+o0IwQDAPBgNVHRMBAf8EBTADAQH/MA4GA1UdDwEB/wQEAwIBhjAd4592+BgNVHQ4EFgQUs9tIpPmhxdiuNkHMEWNpYim8S8YwCgYIKoZIzj0EAwMDaAAwZQIx4593+AK288mw/EkrRLTnDCgmXc/SINoyIJ7vmiI1Qhadj+Z4y3maTD/HMsQmP3Wyr+mt/4594+oAIwOWZbwmSNuJ5Q3KjVSaLtx9zRSX8XAbjIho9OjIgrqJqpisXRAL34VOKa5Vt84595+sycX4596+-----END CERTIFICATE-----4597+4598+# Issuer: CN=DigiCert Trusted Root G4 O=DigiCert Inc OU=www.digicert.com4599+# Subject: CN=DigiCert Trusted Root G4 O=DigiCert Inc OU=www.digicert.com4600+# Label: "DigiCert Trusted Root G4"4601+# Serial: 74515005589773707779300848690166142364602+# MD5 Fingerprint: 78:f2:fc:aa:60:1f:2f:b4:eb:c9:37:ba:53:2e:75:494603+# SHA1 Fingerprint: dd:fb:16:cd:49:31:c9:73:a2:03:7d:3f:c8:3a:4d:7d:77:5d:05:e44604+# SHA256 Fingerprint: 55:2f:7b:dc:f1:a7:af:9e:6c:e6:72:01:7f:4f:12:ab:f7:72:40:c7:8e:76:1a:c2:03:d1:d9:d2:0a:c8:99:884605+-----BEGIN CERTIFICATE-----4606+MIIFkDCCA3igAwIBAgIQBZsbV56OITLiOQe9p3d1XDANBgkqhkiG9w0BAQwFADBi4607+MQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB34608+d3cuZGlnaWNlcnQuY29tMSEwHwYDVQQDExhEaWdpQ2VydCBUcnVzdGVkIFJvb3Qg4609+RzQwHhcNMTMwODAxMTIwMDAwWhcNMzgwMTE1MTIwMDAwWjBiMQswCQYDVQQGEwJV4610+UzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3d3cuZGlnaWNlcnQu4611+Y29tMSEwHwYDVQ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Oj6PWTkiU0TryF0Dyu1Qen1iIQqAyHNm0aAFYF/opbSnr6j3bTWc4628+fFqK1qI4mfN4i/RN0iAL3gTujJtHgXINwBQy7zBZLq7gcfJW5GqXb5JQbZaNaHqa4629+sjYUegbyJLkJEVDXCLG4iXqEI2FCKeWjzaIgQdfRnGTZ6iahixTXTBmyUEFxPT9N4630+cCOGDErcgdLMMpSEDQgJlxxPwO5rIHQw0uA5NBCFIRUBCOhVMt5xSdkoF1BN5r5N4631+0XWs0Mr7QbhDparTwwVETyw2m+L64kW4I1NsBm9nVX9GtUw/bihaeSbSpKhil9Ie4632+4u1Ki7wb/UdKDd9nZn6yW0HQO+T0O/QEY+nvwlQAUaCKKsnOeMzV6ocEGLPOr0mI4633+r/OSmbaz5mEP0oUA51Aa5BuVnRmhuZyxm7EAHu/QD09CbMkKvO5D+jpxpchNJqU14634+/YldvIViHTLSoCtU7ZpXwdv6EM8Zt4tKG48BtieVU+i2iW1bvGjUI+iLUaJW+fCm4635+gKDWHrO8Dw9TdSmq6hN35N6MgSGtBxBHEa2HPQfRdbzP82Z+4636+-----END CERTIFICATE-----4637+4638+# Issuer: CN=Certification Authority of WoSign O=WoSign CA Limited4639+# Subject: CN=Certification Authority of WoSign O=WoSign CA Limited4640+# Label: "WoSign"4641+# Serial: 1254917722947548544536228554432122566574642+# MD5 Fingerprint: a1:f2:f9:b5:d2:c8:7a:74:b8:f3:05:f1:d7:e1:84:8d4643+# SHA1 Fingerprint: b9:42:94:bf:91:ea:8f:b6:4b:e6:10:97:c7:fb:00:13:59:b6:76:cb4644+# SHA256 Fingerprint: 4b:22:d5:a6:ae:c9:9f:3c:db:79:aa:5e:c0:68:38:47:9c:d5:ec:ba:71:64:f7:f2:2d:c1:d6:5f:63:d8:57:084645+-----BEGIN CERTIFICATE-----4646+MIIFdjCCA16gAwIBAgIQXmjWEXGUY1BWAGjzPsnFkTANBgkqhkiG9w0BAQUFADBV4647+MQswCQYDVQQGEwJDTjEaMBgGA1UEChMRV29T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0OBBYEFOFmzw7R8bNLtwYgFP6H4664+EtX2/vs+MA0GCSqGSIb3DQEBBQUAA4ICAQCoy3JAsnbBfnv8rWTjMnvMPLZdRtP14665+LOJwXcgu2AZ9mNELIaCJWSQBnfmvCX0KI4I01fx8cpm5o9dU9OpScA7F9dY74ToJ4666+MuYhOZO9sxXqT2r09Ys/L3yNWC7F4TmgPsc9SnOeQHrAK2GpZ8nzJLmzbVUsWh2e4667+JXLOC62qx1ViC777Y7NhRCOjy+EaDveaBk3e1CNOIZZbOVtXHS9dCF4Jef98l7VN4668+g64N1uajeeAz0JmWAjCnPv/So0M/BVoG6kQC2nz4SNAzqfkHx5Xh9T71XXG68pWp4669+dIhhWeO/yloTunK0jF02h+mmxTwTv97QRCbut+wucPrXnbes5cVAWubXbHssw1ab4670+R80LzvobtCHXt2a49CUwi1wNuepnsvRtrtWhnk/Yn+knArAdBtaP4/tIEp9/EaEQ4671+PkxROpaw0RPxx9gmrjrKkcRpnd8BKWRRb2jaFOwIQZeQjdCygPLPwj2/kWjFgGce4672+xGATVdVhmVd8upUPYUk6ynW8yQqTP2cOEvIo4jEbwFcW3wh8GcF+Dx+FHgo2fFt+4673+J7x6v+Db9NpSvd4MVHAxkUOVyLzwPt0JfjBkUO1/AaQzZ01oT74V77D2AhGiGxMl4674+OtzCWfHjXEa7ZywCRuoeSKbmW9m1vFGikpbbqsY3Iqb+zCB0oy2pLmvLwIIRIbWT4675+ee5Ehr7XHuQe+w==4676+-----END CERTIFICATE-----4677+4678+# Issuer: CN=CA 沃通根证书 O=WoSign CA Limited4679+# Subject: CN=CA 沃通根证书 O=WoSign CA Limited4680+# Label: "WoSign China"4681+# Serial: 1069219634374229989316606913101494539654682+# MD5 Fingerprint: 78:83:5b:52:16:76:c4:24:3b:83:78:e8:ac:da:9a:934683+# SHA1 Fingerprint: 16:32:47:8d:89:f9:21:3a:92:00:85:63:f5:a4:a7:d3:12:40:8a:d64684+# SHA256 Fingerprint: d6:f0:34:bd:94:aa:23:3f:02:97:ec:a4:24:5b:28:39:73:e4:47:aa:59:0f:31:0c:77:f4:8f:df:83:11:22:544685+-----BEGIN CERTIFICATE-----4686+MIIFWDCCA0CgAwIBAgIQUHBrzdgT/BtOOzNy0hFIjTANBgkqhkiG9w0BAQsFADBG4687+MQswCQYDVQQGEwJDTjEaMBgGA1UEChMRV29TaWduIENBIExpbWl0ZWQxGzAZBgNV4688+BAMMEkNBIOayg+mAmuagueivgeS5pjAeFw0wOTA4MDgwMTAwMDFaFw0zOTA4MDgw4689+MTAwMDFaMEYxCzAJBgNVBAYTAkNOMRowGAYDVQQKExFXb1NpZ24gQ0EgTGltaXRl4690+ZDEbMBkGA1UEAwwSQ0Eg5rKD6YCa5qC56K+B5LmmMIICIjANBgkqhkiG9w0BAQEF4691+AAOCAg8AMIICCgKCAgEA0EkhHiX8h8EqwqzbdoYGTufQdDTc7WU1/FDWiD+k8H/r4692+D195L4mx/bxjWDeTmzj4t1up+thxx7S8gJeNbEvxUNUqKaqoGXqW5pWOdO2XCld14693+9AXbbQs5uQF/qvbW2mzmBeCkTVL829B0txGMe41P/4eDrv8FAxNXUDf+jJZSEExf4694+v5RxadmWPgxDT74wwJ85dE8GRV2j1lY5aAfMh09Qd5Nx2UQIsYo06Yms25tO4dnk4695+UkWMLhQfkWsZHWgpLFbE4h4TV2TwYeO5Ed+w4VegG63XX9Gv2ystP9Bojg/qnw+L4696+NVgbExz03jWhCl3W6t8Sb8D7aQdGctyB9gQjF+BNdeFyb7Ao65vh4YOhn0pdr8yb4697++gIgthhid5E7o9Vlrdx8kHccREGkSovrlXLp9glk3Kgtn3R46MGiCWOc76DbT52V4698+qyBPt7D3h1ymoOQ3OMdc4zUPLK2jgKLsLl3Az+2LBcLmc272idX10kaO6m1jGx6K4699+yX2m+Jzr5dVjhU1zZmkR/sgO9MHHZklTfuQZa/HpelmjbX7FF+Ynxu8b22/8DU0G4700+AbQOXDBGVWCvOGU6yke6rCzMRh+yRpY/8+0mBe53oWprfi1tWFxK1I5nuPHa1UaK4701+J/kR8slC/k7e3x9cxKSGhxYzoacXGKUN5AXlK8IrC6KVkLn9YDxOiT7nnO4fuwEC4702+AwEAAaNCMEAwDgYDVR0PAQH/BAQDAgEGMA8GA1UdEwEB/wQFMAMBAf8wHQYDVR0O4703+BBYEFOBNv9ybQV0T6GTwp+kVpOGBwboxMA0GCSqGSIb3DQEBCwUAA4ICAQBqinA44704+WbbaixjIvirTthnVZil6Xc1bL3McJk6jfW+rtylNpumlEYOnOXOvEESS5iVdT2H64705+yAa+Tkvv/vMx/sZ8cApBWNromUuWyXi8mHwCKe0JgOYKOoICKuLJL8hWGSbueBwj4706+/feTZU7n85iYr83d2Z5AiDEoOqsuC7CsDCT6eiaY8xJhEPRdF/d+4niXVOKM6Cm64707+jBAyvd0zaziGfjk9DgNyp115j0WKWa5bIW4xRtVZjc8VX90xJc/bYNaBRHIpAlf24708+ltTW/+op2znFuCyKGo3Oy+dCMYYFaA6eFN0AkLppRQjbbpCBhqcqBT/mhDn4t/lX4709+X0ykeVoQDF7Va/81XwVRHmyjdanPUIPTfPRm94KNPQx96N97qA4bLJyuQHCH2u2n4710+FoJavjVsIE4iYdm8UXrNemHcSxH5/mc0zy4EZmFcV5cjjPOGG0jfKq+nwf/Yjj4D4711+u9gqsPoUJbJRa4ZDhS4HIxaAjUz7tGM7zMN07RujHv41D198HRaG9Q7DlfEvr10l4712+O1Hm13ZBONFLAzkopR6RctR9q5czxNM+4Gm2KHmgCY0c0f9BckgG/Jou5yD5m6Le4713+ie2uPAmvylezkolwQOQvT8Jwg0DXJCxr5wkf09XHwQj02w47HAcLQxGEIYbpgNR14714+2KvxAmLBsX5VYc8T1yaw15zLKYs4SgsOkI26oQ==4715+-----END CERTIFICATE-----4716+4717+# Issuer: CN=COMODO RSA Certification Authority O=COMODO CA Limited4718+# Subject: CN=COMODO RSA Certification Authority O=COMODO CA Limited4719+# Label: "COMODO RSA Certification Authority"4720+# Serial: 1019090845375820933089413635248731931174721+# MD5 Fingerprint: 1b:31:b0:71:40:36:cc:14:36:91:ad:c4:3e:fd:ec:184722+# SHA1 Fingerprint: af:e5:d2:44:a8:d1:19:42:30:ff:47:9f:e2:f8:97:bb:cd:7a:8c:b44723+# SHA256 Fingerprint: 52:f0:e1:c4:e5:8e:c6:29:29:1b:60:31:7f:07:46:71:b8:5d:7e:a8:0d:5b:07:27:34:63:53:4b:32:b4:02:344724+-----BEGIN CERTIFICATE-----4725+MIIF2DCCA8CgAwIBAgIQTKr5yttjb+Af907YWwOGnTANBgkqhkiG9w0BAQwFADCB4726+hTELMAkGA1UEBhMCR0IxGzAZBgNVBAgTEkdyZWF0ZXIgTWFuY2hlc3RlcjEQMA4G4727+A1UEBxMHU2FsZm9yZDEaMBgGA1UEChMRQ09NT0RPIENBIExpbWl0ZWQxKzApBgNV4728+BAMTIkNPTU9ETyBSU0EgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkwHhcNMTAwMTE54729+MDAwMDAwWhcNMzgwMTE4MjM1OTU5WjCBhTELMAkGA1UEBhMCR0IxGzAZBgNVBAgT4730+EkdyZWF0ZXIgTWFuY2hlc3RlcjEQMA4GA1UEBxMHU2FsZm9yZDEaMBgGA1UEChMR4731+Q09NT0RPIENBIExpbWl0ZWQxKzApBgNVBAMTIkNPTU9ETyBSU0EgQ2VydGlmaWNh4732+dGlvbiBBdXRob3JpdHkwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQCR4733+6FSS0gpWsawNJN3Fz0RndJkrN6N9I3AAcbxT38T6KhKPS38QVr2fcHK3YX/JSw8X4734+pz3jsARh7v8Rl8f0hj4K+j5c+ZPmNHrZFGvnnLOFoIJ6dq9xkNfs/Q36nGz637CC4735+9BR++b7Epi9Pf5l/tfxnQ3K9DADWietrLNPtj5gcFKt+5eNu/Nio5JIk2kNrYrhV4736+/erBvGy2i/MOjZrkm2xpmfh4SDBF1a3hDTxFYPwyllEnvGfDyi62a+pGx8cgoLEf4737+Zd5ICLqkTqnyg0Y3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w7mh3aZw4gSzQbzpgJHqZJx64SIDqZxubw5lT2yHh17zbqD5daWb4754+QOhTsiedSrnAdyGN/4fy3ryM7xfft0kL0fJuMAsaDk527RH89elWsn2/x20Kk4yl4755+0MC2Hb46TpSi125sC8KKfPog88Tk5c0NqMuRkrF8hey1FGlmDoLnzc7ILaZRfyHB4756+NVOFBkpdn627G1904757+-----END CERTIFICATE-----4758+4759+# Issuer: CN=USERTrust RSA Certification Authority O=The USERTRUST Network4760+# Subject: CN=USERTrust RSA Certification Authority O=The USERTRUST Network4761+# Label: "USERTrust RSA Certification Authority"4762+# Serial: 26450937647810587875918716456657887174763+# MD5 Fingerprint: 1b:fe:69:d1:91:b7:19:33:a3:72:a8:0f:e1:55:e5:b54764+# SHA1 Fingerprint: 2b:8f:1b:57:33:0d:bb:a2:d0:7a:6c:51:f7:0e:e9:0d:da:b9:ad:8e4765+# SHA256 Fingerprint: e7:93:c9:b0:2f:d8:aa:13:e2:1c:31:22:8a:cc:b0:81:19:64:3b:74:9c:89:89:64:b1:74:6d:46:c3:d4:cb:d24766+-----BEGIN CERTIFICATE-----4767+MIIF3jCCA8agAwIBAgIQAf1tMPyjylGoG7xkDjUDLTANBgkqhkiG9w0BAQwFADCB4768+iDELMAkGA1UEBhMCVVMxEzARBgNVBAgTCk5ldyBKZXJzZXkxFDASBgNVBAcTC0pl4769+cnNleSBDaXR5MR4wHAYDVQQKExVUaGUgVVNFUlRSVVNUIE5ldHdvcmsxLjAsBgNV4770+BAMTJVVTRVJUcnVzdCBSU0EgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkwHhcNMTAw4771+MjAxMDAwMDAwWhcNMzgwMTE4MjM1OTU5WjCBiDELMAkGA1UEBhMCVVMxEzARBgNV4772+BAgTCk5ldyBKZXJzZXkxFDASBgNVBAcTC0plcnNleSBDaXR5MR4wHAYDVQQKExVU4773+aGUgVVNFUlRSVVNUIE5ldHdvcmsxLjAsBgNVBAMTJVVTRVJUcnVzdCBSU0EgQ2Vy4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790+ATiUFJVDBwn7YKnuHKsSjKCaXqeYalltiz8I+8jRRa8YFWSQEg9zKC7F4iRO/Fjs4791+8PRF/iKz6y+O0tlFYQXBl2+odnKPi4w2r78NBc5xjeambx9spnFixdjQg3IM8WcR4792+iQycE0xyNN+81XHfqnHd4blsjDwSXWXavVcStkNr/+XeTWYRUc+ZruwXtuhxkYze4793+Sf7dNXGiFSeUHM9h4ya7b6NnJSFd5t0dCy5oGzuCr+yDZ4XUmFF0sbmZgIn/f3gZ4794+XHlKYC6SQK5MNyosycdiyA5d9zZbyuAlJQG03RoHnHcAP9Dc1ew91Pq7P8yF1m9/4795+qS3fuQL39ZeatTXaw2ewh0qpKJ4jjv9cJ2vhsE/zB+4ALtRZh8tSQZXq9EfX7mRB4796+VXyNWQKV3WKdwrnuWih0hKWbt5DHDAff9Yk2dDLWKMGwsAvgnEzDHNb842m1R0aB4797+L6KCq9NjRHDEjf8tM7qtj3u1cIiuPhnPQCjY/MiQu12ZIvVS5ljFH4gxQ+6IHdfG4798+jjxDah2nGN59PRbxYvnKkKj94799+-----END CERTIFICATE-----4800+4801+# Issuer: CN=USERTrust ECC Certification Authority O=The USERTRUST Network4802+# Subject: CN=USERTrust ECC Certification Authority O=The USERTRUST Network4803+# Label: "USERTrust ECC Certification Authority"4804+# Serial: 1230138237201994814565697204439975721344805+# MD5 Fingerprint: fa:68:bc:d9:b5:7f:ad:fd:c9:1d:06:83:28:cc:24:c14806+# SHA1 Fingerprint: d1:cb:ca:5d:b2:d5:2a:7f:69:3b:67:4d:e5:f0:5a:1d:0c:95:7d:f04807+# SHA256 Fingerprint: 4f:f4:60:d5:4b:9c:86:da:bf:bc:fc:57:12:e0:40:0d:2b:ed:3f:bc:4d:4f:bd:aa:86:e0:6a:dc:d2:a9:ad:7a4808+-----BEGIN CERTIFICATE-----4809+MIICjzCCAhWgAwIBAgIQXIuZxVqUxdJxVt7NiYDMJjAKBggqhkjOPQQDAzCBiDEL4810+MAkGA1UEBhMCVVMxEzARBgNVBAgTCk5ldyBKZXJzZXkxFDASBgNVBAcTC0plcnNl4811+eSBDaXR5MR4wHAYDVQQKExVUaGUgVVNFUlRSVVNUIE5ldHdvcmsxLjAsBgNVBAMT4812+JVVTRVJUcnVzdCBFQ0MgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkwHhcNMTAwMjAx4813+MDAwMDAwWhcNMzgwMTE4MjM1OTU5WjCBiDELMAkGA1UEBhMCVVMxEzARBgNVBAgT4814+Ck5ldyBKZXJzZXkxFDASBgNVBAcTC0plcnNleSBDaXR5MR4wHAYDVQQKExVUaGUg4815+VVNFUlRSVVNUIE5ldHdvcmsxLjAsBgNVBAMTJVVTRVJUcnVzdCBFQ0MgQ2VydGlm4816+aWNhdGlvbiBBdXRob3JpdHkwdjAQBgcqhkjOPQIBBgUrgQQAIgNiAAQarFRaqflo4817+I+d61SRvU8Za2EurxtW20eZzca7dnNYMYf3boIkDuAUU7FfO7l0/4iGzzvfUinng4818+o4N+LZfQYcTxmdwlkWOrfzCjtHDix6EznPO/LlxTsV+zfTJ/ijTjeXmjQjBAMB0G4819+A1UdDgQWBBQ64QmG1M8ZwpZ2dEl23OA1xmNjmjAOBgNVHQ8BAf8EBAMCAQYwDwYD4820+VR0TAQH/BAUwAwEB/zAKBggqhkjOPQQDAwNoADBlAjA2Z6EWCNzklwBBHU6+4WMB4821+zzuqQhFkoJ2UOQIReVx7Hfpkue4WQrO/isIJxOzksU0CMQDpKmFHjFJKS04YcPbW4822+RNZu9YO6bVi9JNlWSOrvxKJGgYhqOkbRqZtNyWHa0V1Xahg=4823+-----END CERTIFICATE-----4824+4825+# Issuer: CN=GlobalSign O=GlobalSign OU=GlobalSign ECC Root CA - R44826+# Subject: CN=GlobalSign O=GlobalSign OU=GlobalSign ECC Root CA - R44827+# Label: "GlobalSign ECC Root CA - R4"4828+# Serial: 143671482949229644808590221258009778974744829+# MD5 Fingerprint: 20:f0:27:68:d1:7e:a0:9d:0e:e6:2a:ca:df:5c:89:8e4830+# SHA1 Fingerprint: 69:69:56:2e:40:80:f4:24:a1:e7:19:9f:14:ba:f3:ee:58:ab:6a:bb4831+# SHA256 Fingerprint: be:c9:49:11:c2:95:56:76:db:6c:0a:55:09:86:d7:6e:3b:a0:05:66:7c:44:2c:97:62:b4:fb:b7:73:de:22:8c4832+-----BEGIN CERTIFICATE-----4833+MIIB4TCCAYegAwIBAgIRKjikHJYKBN5CsiilC+g0mAIwCgYIKoZIzj0EAwIwUDEk4834+MCIGA1UECxMbR2xvYmFsU2lnbiBFQ0MgUm9vdCBDQSAtIFI0MRMwEQYDVQQKEwpH4835+bG9iYWxTaWduMRMwEQYDVQQDEwpHbG9iYWxTaWduMB4XDTEyMTExMzAwMDAwMFoX4836+DTM4MDExOTAzMTQwN1owUDEkMCIGA1UECxMbR2xvYmFsU2lnbiBFQ0MgUm9vdCBD4837+QSAtIFI0MRMwEQYDVQQKEwpHbG9iYWxTaWduMRMwEQYDVQQDEwpHbG9iYWxTaWdu4838+MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEuMZ5049sJQ6fLjkZHAOkrprlOQcJ4839+FspjsbmG+IpXwVfOQvpzofdlQv8ewQCybnMO/8ch5RikqtlxP6jUuc6MHaNCMEAw4840+DgYDVR0PAQH/BAQDAgEGMA8GA1UdEwEB/wQFMAMBAf8wHQYDVR0OBBYEFFSwe61F4841+uOJAf/sKbvu+M8k8o4TVMAoGCCqGSM49BAMCA0gAMEUCIQDckqGgE6bPA7DmxCGX4842+kPoUVy0D7O48027KqGx2vKLeuwIgJ6iFJzWbVsaj8kfSt24bAgAXqmemFZHe+pTs4843+ewv4n4Q=4844+-----END CERTIFICATE-----4845+4846+# Issuer: CN=GlobalSign O=GlobalSign OU=GlobalSign ECC Root CA - R54847+# Subject: CN=GlobalSign O=GlobalSign OU=GlobalSign ECC Root CA - R54848+# Label: "GlobalSign ECC Root CA - R5"4849+# Serial: 327857920999905072266806980115609479312444850+# MD5 Fingerprint: 9f:ad:3b:1c:02:1e:8a:ba:17:74:38:81:0c:a2:bc:084851+# SHA1 Fingerprint: 1f:24:c6:30:cd:a4:18:ef:20:69:ff:ad:4f:dd:5f:46:3a:1b:69:aa4852+# SHA256 Fingerprint: 17:9f:bc:14:8a:3d:d0:0f:d2:4e:a1:34:58:cc:43:bf:a7:f5:9c:81:82:d7:83:a5:13:f6:eb:ec:10:0c:89:244853+-----BEGIN CERTIFICATE-----4854+MIICHjCCAaSgAwIBAgIRYFlJ4CYuu1X5CneKcflK2GwwCgYIKoZIzj0EAwMwUDEk4855+MCIGA1UECxMbR2xvYmFsU2lnbiBFQ0MgUm9vdCBDQSAtIFI1MRMwEQYDVQQKEwpH4856+bG9iYWxTaWduMRMwEQYDVQQDEwpHbG9iYWxTaWduMB4XDTEyMTExMzAwMDAwMFoX4857+DTM4MDExOTAzMTQwN1owUDEkMCIGA1UECxMbR2xvYmFsU2lnbiBFQ0MgUm9vdCBD4858+QSAtIFI1MRMwEQYDVQQKEwpHbG9iYWxTaWduMRMwEQYDVQQDEwpHbG9iYWxTaWdu4859+MHYwEAYHKoZIzj0CAQYFK4EEACIDYgAER0UOlvt9Xb/pOdEh+J8LttV7HpI6SFkc4860+8GIxLcB6KP4ap1yztsyX50XUWPrRd21DosCHZTQKH3rd6zwzocWdTaRvQZU4f8ke4861+hOvRnkmSh5SHDDqFSmafnVmTTZdhBoZKo0IwQDAOBgNVHQ8BAf8EBAMCAQYwDwYD4862+VR0TAQH/BAUwAwEB/zAdBgNVHQ4EFgQUPeYpSJvqB8ohREom3m7e0oPQn1kwCgYI4863+KoZIzj0EAwMDaAAwZQIxAOVpEslu28YxuglB4Zf4+/2a4n0Sye18ZNPLBSWLVtmg4864+515dTguDnFt2KaAJJiFqYgIwcdK1j1zqO+F4CYWodZI7yFz9SO8NdCKoCOJuxUnO4865+xwy8p2Fp8fc74SrL+SvzZpA34866+-----END CERTIFICATE-----4867+4868+# Issuer: CN=Staat der Nederlanden Root CA - G3 O=Staat der Nederlanden4869+# Subject: CN=Staat der Nederlanden Root CA - G3 O=Staat der Nederlanden4870+# Label: "Staat der Nederlanden Root CA - G3"4871+# Serial: 100030014872+# MD5 Fingerprint: 0b:46:67:07:db:10:2f:19:8c:35:50:60:d1:0b:f4:374873+# SHA1 Fingerprint: d8:eb:6b:41:51:92:59:e0:f3:e7:85:00:c0:3d:b6:88:97:c9:ee:fc4874+# SHA256 Fingerprint: 3c:4f:b0:b9:5a:b8:b3:00:32:f4:32:b8:6f:53:5f:e1:72:c1:85:d0:fd:39:86:58:37:cf:36:18:7f:a6:f4:284875+-----BEGIN CERTIFICATE-----4876+MIIFdDCCA1ygAwIBAgIEAJiiOTANBgkqhkiG9w0BAQsFADBaMQswCQYDVQQGEwJO4877+TDEeMBwGA1UECgwVU3RhYXQgZGVyIE5lZGVybGFuZGVuMSswKQYDVQQDDCJTdGFh4878+dCBkZXIgTmVkZXJsYW5kZW4gUm9vdCBDQSAtIEczMB4XDTEzMTExNDExMjg0MloX4879+DTI4MTExMzIzMDAwMFowWjELMAkGA1UEBhMCTkwxHjAcBgNVBAoMFVN0YWF0IGRl4880+ciBOZWRlcmxhbmRlbjErMCkGA1UEAwwiU3RhYXQgZGVyIE5lZGVybGFuZGVuIFJv4881+b3QgQ0EgLSBHMzCCAiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIBAL4yolQP4882+cPssXFnrbMSkUeiFKrPMSjTysF/zDsccPVMeiAho2G89rcKezIJnByeHaHE6n3WW4883+IkYFsO2tx1ueKt6c/DrGlaf1F2cY5y9JCAxcz+bMNO14+1Cx3Gsy8KL+tjzk7FqX4884+xz8ecAgwoNzFs21v0IJyEavSgWhZghe3eJJg+szeP4TrjTgzkApyI/o1zCZxMdFy4885+KJLZWyNtZrVtB0LrpjPOktvA9mxjeM3KTj215VKb8b475lRgsGYeCasH/lSJEULR4886+9yS6YHgamPfJEf0WwTUaVHXvQ9Plrk7O53vDxk5hUUurmkVLoR9BvUhTFXFkC4az4887+5S6+zqQbwSmEorXLCCN2Q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GbbeIJG9gkaSChVtWQbzQRKtqE77RLFi3EjNYsjdj3BP1lB0/4904+QFH1T/U67cjF68IeHRaVesd+QnGTbksVtzDfqu1XhUisHWrdOWnk4Xl4vs4Fv6EM4905+94B7IWcnMFk=4906+-----END CERTIFICATE-----4907+4908+# Issuer: CN=Staat der Nederlanden EV Root CA O=Staat der Nederlanden4909+# Subject: CN=Staat der Nederlanden EV Root CA O=Staat der Nederlanden4910+# Label: "Staat der Nederlanden EV Root CA"4911+# Serial: 100000134912+# MD5 Fingerprint: fc:06:af:7b:e8:1a:f1:9a:b4:e8:d2:70:1f:c0:f5:ba4913+# SHA1 Fingerprint: 76:e2:7e:c1:4f:db:82:c1:c0:a6:75:b5:05:be:3d:29:b4:ed:db:bb4914+# SHA256 Fingerprint: 4d:24:91:41:4c:fe:95:67:46:ec:4c:ef:a6:cf:6f:72:e2:8a:13:29:43:2f:9d:8a:90:7a:c4:cb:5d:ad:c1:5a4915+-----BEGIN CERTIFICATE-----4916+MIIFcDCCA1igAwIBAgIEAJiWjTANBgkqhkiG9w0BAQsFADBYMQswCQYDVQQGEwJO4917+TDEeMBwGA1UECgwVU3RhYXQgZGVyIE5lZGVybGFuZGVuMSkwJwYDVQQDDCBTdGFh4918+dCBkZXIgTmVkZXJsYW5kZW4gRVYgUm9vdCBDQTAeFw0xMDEyMDgxMTE5MjlaFw0y4919+MjEyMDgxMTEwMjhaMFgxCzAJBgNVBAYTAk5MMR4wHAYDVQQKDBVTdGFhdCBkZXIg4920+TmVkZXJsYW5kZW4xKTAnBgNVBAMMIFN0YWF0IGRlciBOZWRlcmxhbmRlbiBFViBS4921+b290IENBMIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEA48d+ifkkSzrS4922+M4M1LGns3Amk41GoJSt5uAg94JG6hIXGhaTK5skuU6TJJB79VWZxXSzFYGgEt9nC4923+UiY4iKTWO0Cmws0/zZiTs1QUWJZV1VD+hq2kY39ch/aO5ieSZxeSAgMs3NZmdO3d4924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zEPuKqf2e4940+vTY4SUmH9A4U8OmHuD+nT3pajnnUk+S7aFKErGzp85hwVXIy+TSrK0m1zSBi5Dp64941+Z2Orltxtrpfs/J92VoguZs9btsmksNcFuuEnL5O7Jiqik7Ab846+HUCjuTaPPoIa4942+Gl6I6lD4WeKDRikL40Rc4ZW2aZCaFG+XroHPaO+Zmr615+F/+PoTRxZMzG0IQOeL4943+eG9QgkRQP2YGiqtDhFZKDyAthg710tvSeopLzaXoTvFeJiUBWSOgftL2fiFX1ye84944+FVdMpEbB4IMeDExNH08GGeL5qPQ6gqGyeUN51q1veieQA6TqJIc/2b3Z6fJfUEkc4945+7uzXLg==4946+-----END CERTIFICATE-----4947+4948+# Issuer: CN=IdenTrust Commercial Root CA 1 O=IdenTrust4949+# Subject: CN=IdenTrust Commercial Root CA 1 O=IdenTrust4950+# Label: "IdenTrust Commercial Root CA 1"4951+# Serial: 132988210349463423905200038777968394264952+# MD5 Fingerprint: b3:3e:77:73:75:ee:a0:d3:e3:7e:49:63:49:59:bb:c74953+# SHA1 Fingerprint: df:71:7e:aa:4a:d9:4e:c9:55:84:99:60:2d:48:de:5f:bc:f0:3a:254954+# SHA256 Fingerprint: 5d:56:49:9b:e4:d2:e0:8b:cf:ca:d0:8a:3e:38:72:3d:50:50:3b:de:70:69:48:e4:2f:55:60:30:19:e5:28:ae4955+-----BEGIN CERTIFICATE-----4956+MIIFYDCCA0igAwIBAgIQCgFCgAAAAUUjyES1AAAAAjANBgkqhkiG9w0BAQsFADBK4957+MQswCQYDVQQGEwJVUzESMBAGA1UEChMJSWRlblRydXN0MScwJQYDVQQDEx5JZGVu4958+VHJ1c3QgQ29tbWVyY2lhbCBSb290IENBIDEwHhcNMTQwMTE2MTgxMjIzWhcNMzQw4959+MTE2MTgxMjIzWjBKMQswCQYDVQQGEwJVUzESMBAGA1UEChMJSWRlblRydXN0MScw4960+JQYDVQQDEx5JZGVuVHJ1c3QgQ29tbWVyY2lhbCBSb290IENBIDEwggIiMA0GCSqG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wh934977+nAbowacYXVKV7cndJZ5t+qntozo00Fl72u1Q8zW/7esUTTHHYPTa8Yec4kjixsU34978++wYQ+nVZZjFHKdp2mhzpgq7vmrlR94gjmmmVYjzlVYA211QC//G5Xc7UI2/YRYRK4979+W2XviQzdFKcgyxilJbQN+QHwotL0AMh0jqEqSI5l2xPE4iUXfeu+h1sXIFRRk0pT4980+AwvsXcoz7WL9RccvW9xYoIA55vrX/hMUpu09lEpCdNTDd1lzzY9GvlU47/rokTLq4981+l1gEIt44w8y8bckzOmoKaT+gyOpyj4xjhiO9bTyWnpXgSUyqorkqG5w2gXjtw+hG4982+4iZZRHUe2XWJUc0QhJ1hYMtd+ZciTY6Y5uN/9lu7rs3KSoFrXgvzUeF0K+l+J6fZ4983+mUlO+KWA2yUPHGNiiskzZ2s8EIPGrd6ozRaOjfAHN3Gf8qv8QfXBi+wAN10J5U6A4984+7/qxXDgGpRtK4dw4LTzcqx+QGtVKnO7RcGzM7vRX+Bi6hG6H4985+-----END CERTIFICATE-----4986+4987+# Issuer: CN=IdenTrust Public Sector Root CA 1 O=IdenTrust4988+# Subject: CN=IdenTrust Public Sector Root CA 1 O=IdenTrust4989+# Label: "IdenTrust Public Sector Root CA 1"4990+# Serial: 132988210349463423905219761568439336984991+# MD5 Fingerprint: 37:06:a5:b0:fc:89:9d:ba:f4:6b:8c:1a:64:cd:d5:ba4992+# SHA1 Fingerprint: ba:29:41:60:77:98:3f:f4:f3:ef:f2:31:05:3b:2e:ea:6d:4d:45:fd4993+# SHA256 Fingerprint: 30:d0:89:5a:9a:44:8a:26:20:91:63:55:22:d1:f5:20:10:b5:86:7a:ca:e1:2c:78:ef:95:8f:d4:f4:38:9f:2f4994+-----BEGIN CERTIFICATE-----4995+MIIFZjCCA06gAwIBAgIQCgFCgAAAAUUjz0Z8AAAAAjANBgkqhkiG9w0BAQsFADBN4996+MQswCQYDVQQGEwJVUzESMBAGA1UEChMJSWRlblRydXN0MSowKAYDVQQDEyFJZGVu4997+VHJ1c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ZE4rU1d9+UOl1QZgkiHVIyqZJnYWv6IAcVYpZmxI1Qj5014+t2odIFflAWJBF9MJ23XLblSQdf4an4EKwt3X9wnQW3IV5B4Jaj0z8yGa5hV+rVHV5015+DRDtfULAj+7AmgjVQdZcDiFpboBhDhXAuM/FSRJSzL46zNQuOAXeNf0fb7iAaJg95016+TaDKQGXSc3z1i9kKlT/YPyNtGtEqJBnZhbMX73huqVjRI9PHE+1yJX9dsXNw0H8G5017+lwmEKYBhHfpe/3OsoOOJuBxxFcbeMX8S3OFtm6/n6J91eEyrRjuazr8FGF1NFTwW5018+mhlQBJqymm9li1JfPFgEKCXAZmExfrngdbkaqIHWchezxQMxNRF4eKLg6TCMf4Df5019+WN88uieW4oA0beOY02QnrEh+KHdcxiVhJfiFDGX6xDIvpZgF5PgLZxYWxoK4Mhn55020++bl53B/N66+rDt0b20XkeucC4pVd/GnwU2lhlXV5C15V5jgclKlZM57IcXR5f1GJ5021+tshquDDIajjDbp7hNxbqBWJMWxJH7ae0s1hWx0nzfxJoCTFx8G34Tkf71oXuxVhA5022+GaQdp/lLQzfcaFpPz+vCZHTetBXZ9FRUGi8c15dxVJCO2SCdUyt/q4/i6jC8UDfv5023+8Ue1fXwsBOxonbRJRBD0ckscZOf85muQ3Wl9af0AVqW3rLatt8o+Ae+c5024+-----END CERTIFICATE-----5025+5026+# Issuer: CN=Entrust Root Certification Authority - G2 O=Entrust, Inc. OU=See www.entrust.net/legal-terms/(c) 2009 Entrust, Inc. - for authorized use only5027+# Subject: CN=Entrust Root Certification Authority - G2 O=Entrust, Inc. OU=See www.entrust.net/legal-terms/(c) 2009 Entrust, Inc. - for authorized use only5028+# Label: "Entrust Root Certification Authority - G2"5029+# Serial: 12469893525030+# MD5 Fingerprint: 4b:e2:c9:91:96:65:0c:f4:0e:5a:93:92:a0:0a:fe:b25031+# SHA1 Fingerprint: 8c:f4:27:fd:79:0c:3a:d1:66:06:8d:e8:1e:57:ef:bb:93:22:72:d45032+# SHA256 Fingerprint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s0vBmLrpxR57d+tVOxMyLlbc9wPBr64ptntoP05049+jaWvYkxN4FisZDQSA/i2jZRjJKRxAgMBAAGjQjBAMA4GA1UdDwEB/wQEAwIBBjAP5050+BgNVHRMBAf8EBTADAQH/MB0GA1UdDgQWBBRqciZ60B7vfec7aVHUbI2fkBJmqzAN5051+BgkqhkiG9w0BAQsFAAOCAQEAeZ8dlsa2eT8ijYfThwMEYGprmi5ZiXMRrEPR9RP/5052+jTkrwPK9T3CMqS/qF8QLVJ7UG5aYMzyorWKiAHarWWluBh1+xLlEjZivEtRh2woZ5053+Rkfz6/djwUAFQKXSt/S1mja/qYh2iARVBCuch38aNzx+LaUa2NSJXsq9rD1s2G2v5054+1fN2D807iDginWyTmsQ9v4IbZT+mD12q/OWyFcq1rca8PdCE6OoGcrBNOTJ4vz4R5055+nAuknZoh8/CbCzB428Hch0P+vGOaysXCHMnHjf87ElgI5rY97HosTvuDls4MPGmH5056+VHOkc8KT/1EQrBVUAdj8BbGJoX90g5pJ19xOe4pIb4tF9g==5057+-----END CERTIFICATE-----5058+5059+# Issuer: CN=Entrust Root Certification Authority - EC1 O=Entrust, Inc. OU=See www.entrust.net/legal-terms/(c) 2012 Entrust, Inc. - for authorized use only5060+# Subject: CN=Entrust Root Certification Authority - EC1 O=Entrust, Inc. OU=See www.entrust.net/legal-terms/(c) 2012 Entrust, Inc. - for authorized use only5061+# Label: "Entrust Root Certification Authority - EC1"5062+# Serial: 515431244819306491141161333695063+# MD5 Fingerprint: b6:7e:1d:f0:58:c5:49:6c:24:3b:3d:ed:98:18:ed:bc5064+# SHA1 Fingerprint: 20:d8:06:40:df:9b:25:f5:12:25:3a:11:ea:f7:59:8a:eb:14:b5:475065+# SHA256 Fingerprint: 02:ed:0e:b2:8c:14:da:45:16:5c:56:67:91:70:0d:64:51:d7:fb:56:f0:b2:ab:1d:3b:8e:b0:70:e5:6e:df:f55066+-----BEGIN CERTIFICATE-----5067+MIIC+TCCAoCgAwIBAgINAKaLeSkAAAAA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FCA EV ROOT O=China Financial Certification Authority5086+# Subject: CN=CFCA EV ROOT O=China Financial Certification Authority5087+# Label: "CFCA EV ROOT"5088+# Serial: 4075552865089+# MD5 Fingerprint: 74:e1:b6:ed:26:7a:7a:44:30:33:94:ab:7b:27:81:305090+# SHA1 Fingerprint: e2:b8:29:4b:55:84:ab:6b:58:c2:90:46:6c:ac:3f:b8:39:8f:84:835091+# SHA256 Fingerprint: 5c:c3:d7:8e:4e:1d:5e:45:54:7a:04:e6:87:3e:64:f9:0c:f9:53:6d:1c:cc:2e:f8:00:f3:55:c4:c5:fd:70:fd5092+-----BEGIN CERTIFICATE-----5093+MIIFjTCCA3WgAwIBAgIEGErM1jANBgkqhkiG9w0BAQsFADBWMQswCQYDVQQGEwJD5094+TjEwMC4GA1UECgwnQ2hpbmEgRmluYW5jaWFsIENlcnRpZmljYXRpb24gQXV0aG9y5095+aXR5MRUwEwYDVQQDDAxDRkNBIEVWIFJPT1QwHhcNMTIwODA4MDMwNzAxWhcNMjkx5096+MjMxMDMwNzAxWjBWMQswCQYDVQQGEwJDTjEwMC4GA1UECgwnQ2hpbmEgRmluYW5j5097+aWFsIENlcnRpZmljYXRpb24gQXV0aG9yaXR5MRUwEwYDVQQDDAxDRkNBIEVWIFJP5098+T1QwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQDXXWvNED8fBVnVBU035099+sQ7smCuOFR36k0sXgiFxEFLXUWRwFsJVaU2OFW2fvwwbwuCjZ9YMrM8irq93VCpL5100+TIpTUnrD7i7es3ElweldPe6hL6P3KjzJIx1qqx2hp/Hz7KDVRM8Vz3IvHWOX6Jn55101+/ZOkVIBMUtRSqy5J35DNuF++P96hyk0g1CXohClTt7GIH//62pCfCqktQT+x8Rgp5102+7hZZLDRJGqgG16iI0gNyejLi6mhNbiyWZXvKWfry4t3uMCz7zEasxGPrb382KzRz5103+EpR/38wmnvFyXVBlWY9ps4deMm/DGIq1lY+wejfeWkU7xzbh72fROdOXW3NiGUgt5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EdQLpe5120+/v5WOaHIz16eGWRGENoXkbcFgKyLmZJ956LYBws2J+dIeWCKw9cTXPhyQN9Ky8+Z5121+AAoACxGV2lZFA4gKn2fQ1XmxqI1AbQ3CekD6819kR5LLU7m7Wc5P/dAVUwHY3+vZ5122+5nbv0CO7O6l5s9UCKc2Jo5YPSjXnTkLAdc0Hz+Ys63su5123+-----END CERTIFICATE-----5124+5125+# Issuer: CN=TÜRKTRUST Elektronik Sertifika Hizmet Sağlayıcısı H5 O=TÜRKTRUST Bilgi İletişim ve Bilişim Güvenliği Hizmetleri A.Ş.5126+# Subject: CN=TÜRKTRUST Elektronik Sertifika Hizmet Sağlayıcısı H5 O=TÜRKTRUST Bilgi İletişim ve Bilişim Güvenliği Hizmetleri A.Ş.5127+# Label: "TÜRKTRUST Elektronik Sertifika Hizmet Sağlayıcısı H5"5128+# Serial: 1562336991724815129+# MD5 Fingerprint: da:70:8e:f0:22:df:93:26:f6:5f:9f:d3:15:06:52:4e5130+# SHA1 Fingerprint: c4:18:f6:4d:46:d1:df:00:3d:27:30:13:72:43:a9:12:11:c6:75:fb5131+# SHA256 Fingerprint: 49:35:1b:90:34:44:c1:85:cc:dc:5c:69:3d:24:d8:55:5c:b2:08:d6:a8:14:13:07:69:9f:4a:f0:63:19:9d:785132+-----BEGIN CERTIFICATE-----5133+MIIEJzCCAw+gAwIBAgIHAI4X/iQggTANBgkqhkiG9w0BAQsFADCBsTELMAkGA1UE5134+BhMCVFIxDzANBgNVBAcMBkFua2FyYTFNMEsGA1UECgxEVMOcUktUUlVTVCBCaWxn5135+aSDEsGxldGnFn2ltIHZlIEJpbGnFn2ltIEfDvHZlbmxpxJ9pIEhpem1ldGxlcmkg5136+QS7Fni4xQjBABgNVBAMMOVTDnFJLVFJVU1QgRWxla3Ryb25payBTZXJ0aWZpa2Eg5137+SGl6bWV0IFNhxJ9sYXnEsWPEsXPEsSBINTAeFw0xMzA0MzAwODA3MDFaFw0yMzA05138+MjgwODA3MDFaMIGxMQswC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E9chTLd8B59OTj+RdPsnnRHM3eaxynFNExc5JsUpISuTKWqW5155++qtB4Uu2NQvAmxU=5156+-----END CERTIFICATE-----5157+5158+# Issuer: CN=TÜRKTRUST Elektronik Sertifika Hizmet Sağlayıcısı H6 O=TÜRKTRUST Bilgi İletişim ve Bilişim Güvenliği Hizmetleri A.Ş.5159+# Subject: CN=TÜRKTRUST Elektronik Sertifika Hizmet Sağlayıcısı H6 O=TÜRKTRUST Bilgi İletişim ve Bilişim Güvenliği Hizmetleri A.Ş.5160+# Label: "TÜRKTRUST Elektronik Sertifika Hizmet Sağlayıcısı H6"5161+# Serial: 1381345099726185162+# MD5 Fingerprint: f8:c5:ee:2a:6b:be:95:8d:08:f7:25:4a:ea:71:3e:465163+# SHA1 Fingerprint: 8a:5c:8c:ee:a5:03:e6:05:56:ba:d8:1b:d4:f6:c9:b0:ed:e5:2f:e05164+# SHA256 Fingerprint: 8d:e7:86:55:e1:be:7f:78:47:80:0b:93:f6:94:d2:1d:36:8c:c0:6e:03:3e:7f:ab:04:bb:5e:b9:9d:a6:b7:005165+-----BEGIN CERTIFICATE-----5166+MIIEJjCCAw6gAwIBAgIGfaHyZeyKMA0GCSqGSIb3DQEBCwUAMIGxMQswCQYDVQQG5167+EwJUUjEPMA0GA1UEBwwGQW5rYXJhMU0wSwYDVQQKDERUw5xSS1RSVVNUIEJpbGdp5168+IMSwbGV0acWfaW0gdmUgQmlsacWfaW0gR8O8dmVubGnEn2kgSGl6bWV0bGVyaSBB5169+LsWeLjFCMEAGA1UEAww5VMOcUktUUlVTVCBFbGVrdHJvbmlrIFNlcnRpZmlrYSBI5170+aXptZXQgU2HEn2xhecSxY8Sxc8SxIEg2MB4XDTEzMTIxODA5MDQxMFoXDTIzMTIx5171+NjA5MDQxMFowgbExCzAJBgNVBAYTAlRSMQ8wDQYDVQQHDAZBbmthcmExTTBLBgNV5172+BAoMRFTDnFJLVFJVU1QgQmlsZ2kgxLBsZXRpxZ9pbSB2ZSBCaWxpxZ9pbSBHw7x25173+ZW5sacSfaSBIaXptZXRsZXJpIEEuxZ4uMUIwQAYDVQQDDDlUw5xSS1RSVVNUIEVs5174+ZWt0cm9uaWsgU2VydGlmaWthIEhpem1ldCBTYcSfbGF5xLFjxLFzxLEgSDYwggEi5175+MA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCdsGjW6L0UlqMACprx9MfMkU1x5176+eHe59yEmFXNRFpQJRwXiM/VomjX/3EsvMsew7eKC5W/a2uqsxgbPJQ1BgfbBOCK95177++bGlprMBvD9QFyv26WZV1DOzXPhDIHiTVRZwGTLmiddk671IUP320EEDwnS3/faA5178+z1vFq6TWlRKb55cTMgPp1KtDWxbtMyJkKbbSk60vbNg9tvYdDjTu0n2pVQ8g9P0p5179+u5FbHH3GQjhtQiht1AH7zYiXSX6484P4tZgvsycLSF5W506jM7NE1qXyGJTtHB6p5180+lVxiSvgNZ1GpryHV+DKdeboaX+UEVU0TRv/yz3THGmNtwx8XEsMeED5gCLMxAgMB5181+AAGjQjBAMB0GA1UdDgQWBBTdVRcT9qzoSCHK77Wv0QAy7Z6MtTAOBgNVHQ8BAf8E5182+BAMCAQYwDwYDVR0TAQH/BAUwAwEB/zANBgkqhkiG9w0BAQsFAAOCAQEAb1gNl0Oq5183+FlQ+v6nfkkU/hQu7VtMMUszIv3ZnXuaqs6fvuay0EBQNdH49ba3RfdCaqaXKGDsC5184+QC4qnFAUi/5XfldcEQlLNkVS9z2sFP1E34uXI9TDwe7UU5X+LEr+DXCqu4svLcsy5185+o4LyVN/Y8t3XSHLuSqMplsNEzm61kod2pLv0kmzOLBQJZo6NrRa1xxsJYTvjIKID5186+gI6tflEATseWhvtDmHd9KMeP2Cpu54Rvl0EpABZeTeIT6lnAY2c6RPuY/ATTMHKm5187+9ocJV612ph1jmv3XZch4gyt1O6VbuA1df74jrlZVlFjvH4GMKrLN5ptjnhi85WsG5188+tAuYSyher4hYyw==5189+-----END CERTIFICATE-----5190+5191+# Issuer: CN=Certinomis - Root CA O=Certinomis OU=0002 4339989035192+# Subject: CN=Certinomis - Root CA O=Certinomis OU=0002 4339989035193+# Label: "Certinomis - Root CA"5194+# Serial: 15195+# MD5 Fingerprint: 14:0a:fd:8d:a8:28:b5:38:69:db:56:7e:61:22:03:3f5196+# SHA1 Fingerprint: 9d:70:bb:01:a5:a4:a0:18:11:2e:f7:1c:01:b9:32:c5:34:e7:88:a85197+# SHA256 Fingerprint: 2a:99:f5:bc:11:74:b7:3c:bb:1d:62:08:84:e0:1c:34:e5:1c:cb:39:78:da:12:5f:0e:33:26:88:83:bf:41:585198+-----BEGIN CERTIFICATE-----5199+MIIFkjCCA3qgAwIBAgIBATANBgkqhkiG9w0BAQsFADBaMQswCQYDVQQGEwJGUjET5200+MBEGA1UEChMKQ2VydGlub21pczEXMBUGA1UECxMOMDAwMiA0MzM5OTg5MDMxHTAb5201+BgNVBAMTFENlcnRpbm9taXMgLSBSb290IENBMB4XDTEzMTAyMTA5MTcxOFoXDTMz5202+MTAyMTA5MTcxOFowWjELMAkGA1UEBhMCRlIxEzARBgNVBAoTCkNlcnRpbm9taXMx5203+FzAVBgNVBAsTDjAwMDIgNDMzOTk4OTAzMR0wGwYDVQQDExRDZXJ0aW5vbWlzIC0g5204+Um9vdCBDQTCCAiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIBANTMCQosP5L25205+fxSeC5yaah1AMGT9qt8OHgZbn1CF6s2Nq0Nn3rD6foCWnoR4kkjW4znuzuRZWJfl5206+LieY6pOod5tK8O90gC3rMB+12ceAnGInkYjwSond3IjmFPnVAy//ldu9n+ws+hQV5207+WZUKxkd8aRi5pwP5ynapz8dvtF4F/u7BUrJ1Mofs7SlmO/NKFoL21prbcpjp3vDF5208+TKWrteoB4owuZH9kb/2jJZOLyKIOSY008B/sWEUuNKqEUL3nskoTuLAPrjhdsKkb5209+5nPJWqHZZkCqqU2mNAKthH6yI8H7KsZn9DS2sJVqM09xRLWtwHkziOC/7aOgFLSc5210+CbAK42C++Ph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uaf0yKHxDHYiI0ZSKS3io0EHVmmY0gUJvGnHWmHNj4FgFU2A3ZDifcRQ5227+8ow7bkrHxuaAKzyBvBGAFhAn1/DNP3nMcyrDflOR1m749fPH0FFNjkulW+YZFzvW5228+gQncItzujrnEj1PhZ7szuIgVRs/taTX/dQ1G885x4cVrhkIGuUE=5229+-----END CERTIFICATE-----5230+# Issuer: CN=Entrust.net Secure Server Certification Authority O=Entrust.net OU=www.entrust.net/CPS incorp. by ref. (limits liab.)/(c) 1999 Entrust.net Limited5231+# Subject: CN=Entrust.net Secure Server Certification Authority O=Entrust.net OU=www.entrust.net/CPS incorp. by ref. (limits liab.)/(c) 1999 Entrust.net Limited5232+# Label: "Entrust.net Secure Server CA"5233+# Serial: 9276503715234+# MD5 Fingerprint: df:f2:80:73:cc:f1:e6:61:73:fc:f5:42:e9:c5:7c:ee5235+# SHA1 Fingerprint: 99:a6:9b:e6:1a:fe:88:6b:4d:2b:82:00:7c:b8:54:fc:31:7e:15:395236+# SHA256 Fingerprint: 62:f2:40:27:8c:56:4c:4d:d8:bf:7d:9d:4f:6f:36:6e:a8:94:d2:2f:5f:34:d9:89:a9:83:ac:ec:2f:ff:ed:505237+-----BEGIN CERTIFICATE-----5238+MIIE2DCCBEGgAwIBAgIEN0rSQzANBgkqhkiG9w0BAQUFADCBwzELMAkGA1UEBhMC5239+VVMxFDASBgNVBAoTC0VudHJ1c3QubmV0MTswOQYDVQQLEzJ3d3cuZW50cnVzdC5u5240+ZXQvQ1BTIGluY29ycC4gYnkgcmVmLiAobGltaXRzIGxpYWIuKTElMCMGA1UECxMc5241+KGMpIDE5OTkgRW50cnVzdC5uZXQgTGltaXRlZDE6MDgGA1UEAxMxRW50cnVzdC5u5242+ZXQgU2VjdXJlIFNlcnZlciBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eTAeFw05OTA15243+MjUxNjA5NDBaFw0xOTA1MjUxNjM5NDBaMIHDMQswCQYDVQQGEwJVUzEUMBIGA1UE5244+ChMLRW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+MAwGA1UdEwQFMAMBAf8wGQYJKoZIhvZ9B0EABAwwChsEVjQuMAMCBJAwDQYJKoZI5261+hvcNAQEFBQADgYEAkNwwAvpkdMKnCqV8IY00F6j7Rw7/JXyNEwr75Ji174z4xRAN5262+95K+8cPV1ZVqBLssziY2ZcgxxufuP+NXdYR6Ee9GTxj005i7qIcyunL2POI9n9cd5263+2cNgQ4xYDiKWL2KjLB+6rQXvqzJ4h6BUcxm1XAX5Uj5tLUUL9wqT6u0G+bI=5264+-----END CERTIFICATE-----5265+5266+# Issuer: CN=http://www.valicert.com/ O=ValiCert, Inc. OU=ValiCert Class 2 Policy Validation Authority5267+# Subject: CN=http://www.valicert.com/ O=ValiCert, Inc. OU=ValiCert Class 2 Policy Validation Authority5268+# Label: "ValiCert Class 2 VA"5269+# Serial: 15270+# MD5 Fingerprint: a9:23:75:9b:ba:49:36:6e:31:c2:db:f2:e7:66:ba:875271+# SHA1 Fingerprint: 31:7a:2a:d0:7f:2b:33:5e:f5:a1:c3:4e:4b:57:e8:b7:d8:f1:fc:a65272+# SHA256 Fingerprint: 58:d0:17:27:9c:d4:dc:63:ab:dd:b1:96:a6:c9:90:6c:30:c4:e0:87:83:ea:e8:c1:60:99:54:d6:93:55:59:6b5273+-----BEGIN CERTIFICATE-----5274+MIIC5zCCAlACAQEwDQYJKoZIhvcNAQEFBQAwgbsxJDAiBgNVBAcTG1ZhbGlDZXJ05275+IFZhbGlkYXRpb24gTmV0d29yazEXMBUGA1UEChMOVmFsaUNlcnQsIEluYy4xNTAz5276+BgNVBAsTLFZhbGlDZXJ0IENsYXNzIDIgUG9saWN5IFZhbGlkYXRpb24gQXV0aG9y5277+aXR5MSEwHwYDVQQDExhodHRwOi8vd3d3LnZhbGljZXJ0LmNvbS8xIDAeBgkqhkiG5278+9w0BCQEWEWluZm9AdmFsaWNlcnQuY29tMB4XDTk5MDYyNjAwMTk1NFoXDTE5MDYy5279+NjAwMTk1NFowgbsxJDAiBgNVBAcTG1ZhbGlDZXJ0IFZhbGlkYXRpb24gTmV0d29y5280+azEXMBUGA1UEChMOVmFsaUNlcnQsIEluYy4xNTAzBgNVBAsTLFZhbGlDZXJ0IENs5281+YXNzIDIgUG9saWN5IFZhbGlkYXRpb24gQXV0aG9yaXR5MSEwHwYDVQQDExhodHRw5282+Oi8vd3d3LnZhbGljZXJ0LmNvbS8xIDAeBgkqhkiG9w0BCQEWEWluZm9AdmFsaWNl5283+cnQuY29tMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDOOnHK5avIWZJV16vY5284+dA757tn2VUdZZUcOBVXc65g2PFxTXdMwzzjsvUGJ7SVCCSRrCl6zfN1SLUzm1NZ95285+WlmpZdRJEy0kTRxQb7XBhVQ7/nHk01xC+YDgkRoKWzk2Z/M/VXwbP7RfZHM047QS5286+v4dk+NoS/zcnwbNDu+97bi5p9wIDAQABMA0GCSqGSIb3DQEBBQUAA4GBADt/UG9v5287+UJSZSWI4OB9L+KXIPqeCgfYrx+jFzug6EILLGACOTb2oWH+heQC1u+mNr0HZDzTu5288+IYEZoDJJKPTEjlbVUjP9UNV+mWwD5MlM/Mtsq2azSiGM5bUMMj4QssxsodyamEwC5289+W/POuZ6lcg5Ktz885hZo+L7tdEy8W9ViH0Pd5290+-----END CERTIFICATE-----5291+5292+# Issuer: CN=NetLock Expressz (Class C) Tanusitvanykiado O=NetLock Halozatbiztonsagi Kft. OU=Tanusitvanykiadok5293+# Subject: CN=NetLock Expressz (Class C) Tanusitvanykiado O=NetLock Halozatbiztonsagi Kft. OU=Tanusitvanykiadok5294+# Label: "NetLock Express (Class C) Root"5295+# Serial: 1045296+# MD5 Fingerprint: 4f:eb:f1:f0:70:c2:80:63:5d:58:9f:da:12:3c:a9:c45297+# SHA1 Fingerprint: e3:92:51:2f:0a:cf:f5:05:df:f6:de:06:7f:75:37:e1:65:ea:57:4b5298+# SHA256 Fingerprint: 0b:5e:ed:4e:84:64:03:cf:55:e0:65:84:84:40:ed:2a:82:75:8b:f5:b9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WxhcGphbiBrZXN6dWx0LiBBIGhpdGVsZXNpdGVzIGZvbHlhbWF0YXQgYSBO5316+ZXRMb2NrIEtmdC4gdGVybWVrZmVsZWxvc3NlZy1iaXp0b3NpdGFzYSB2ZWRpLiBB5317+IGRpZ2l0YWxpcyBhbGFpcmFzIGVsZm9nYWRhc2FuYWsgZmVsdGV0ZWxlIGF6IGVs5318+b2lydCBlbGxlbm9yemVzaSBlbGphcmFzIG1lZ3RldGVsZS4gQXogZWxqYXJhcyBs5319+ZWlyYXNhIG1lZ3RhbGFsaGF0byBhIE5ldExvY2sgS2Z0LiBJbnRlcm5ldCBob25s5320+YXBqYW4gYSBodHRwczovL3d3dy5uZXRsb2NrLm5ldC9kb2NzIGNpbWVuIHZhZ3kg5321+a2VyaGV0byBheiBlbGxlbm9yemVzQG5ldGxvY2submV0IGUtbWFpbCBjaW1lbi4g5322+SU1QT1JUQU5UISBUaGUgaXNzdWFuY2UgYW5kIHRoZSB1c2Ugb2YgdGhpcyBjZXJ05323+aWZpY2F0ZSBpcyBzdWJqZWN0IHRvIHRoZSBOZXRMb2NrIENQUyBhdmFpbGFibGUg5324+YXQgaHR0cHM6Ly93d3cubmV0bG9jay5uZXQvZG9jcyBvciBieSBlLW1haWwgYXQg5325+Y3BzQG5ldGxvY2submV0LjANBgkqhkiG9w0BAQQFAAOBgQAQrX/XDDKACtiG8XmY5326+ta3UzbM2xJZIwVzNmtkFLp++UOv0JhQQLdRmF/iewSf98e3ke0ugbLWrmldwpu2g5327+pO0u9f38vf5NNwgMvOOWgyL1SRt/Syu0VMGAfJlOHdCM7tCs5ZL6dVb+ZKATj7i45328+Fp1hBWeAyNDYpQcCNJgEjTME1A==5329+-----END CERTIFICATE-----5330+5331+# Issuer: CN=NetLock Uzleti (Class B) Tanusitvanykiado O=NetLock Halozatbiztonsagi Kft. OU=Tanusitvanykiadok5332+# Subject: CN=NetLock Uzleti (Class B) Tanusitvanykiado O=NetLock Halozatbiztonsagi Kft. OU=Tanusitvanykiadok5333+# Label: "NetLock Business (Class B) Root"5334+# Serial: 1055335+# MD5 Fingerprint: 39:16:aa:b9:6a:41:e1:14:69:df:9e:6c:3b:72:dc:b65336+# SHA1 Fingerprint: 87:9f:4b:ee:05:df:98:58:3b:e3:60:d6:33:e7:0d:3f:fe:98:71:af5337+# SHA256 Fingerprint: 39:df:7b:68:2b:7b:93:8f:84:71:54:81:cc:de:8d:60:d8:f2:2e:c5:98:87:7d:0a:aa:c1:2b:59:18:2b:03:125338+-----BEGIN CERTIFICATE-----5339+MIIFSzCCBLSgAwIBAgIBaTANBgkqhkiG9w0BAQQFADCBmTELMAkGA1UEBhMCSFUx5340+ETAPBgNVBAcTCEJ1ZGFwZXN0MScwJQYDVQQKEx5OZXRMb2NrIEhhbG96YXRiaXp05341+b25zYWdpIEtmdC4xGjAYBgNVBAsTEVRhbnVzaXR2YW55a2lhZG9rMTIwMAYDVQQD5342+EylOZXRMb2NrIFV6bGV0aSAoQ2xhc3MgQikgVGFudXNpdHZhbnlraWFkbzAeFw055343+OTAyMjUxNDEwMjJaFw0xOTAyMjAxNDEwMjJaMIGZMQswCQYDVQQGEwJIVTERMA8G5344+A1UEBxMIQnVkYXBlc3QxJzAlBgNVBAoTHk5ldExvY2sgSGFsb3phdGJpenRvbnNh5345+Z2kgS2Z0LjEaMBgGA1UECxMRVGFudXNpdHZhbnlraWFkb2sxMjAwBgNVBAMTKU5l5346+dExvY2sgVXpsZXRpIChDbGFzcyBCKSBUYW51c2l0dmFueWtpYWRvMIGfMA0GCSqG5347+SIb3DQEBAQUAA4GNADCBiQKBgQCx6gTsIKAjwo84YM/HRrPVG/77uZmeBNwcf4xK5348+gZjupNTKihe5In+DCnVMm8Bp2GQ5o+2So/1bXHQawEfKOml2mrriRBf8TKPV/riX5349+iK+IA4kfpPIEPsgHC+b5sy96YhQJRhTKZPWLgLViqNhr1nGTLbO/CVRY7QbrqHvc5350+Q7GhaQIDAQABo4ICnzCCApswEgYDVR0TAQH/BAgwBgEB/wI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HTjrn9V7lagonhVK0dHQKwCXoOKS5367+NitjrFgBazMpUIaD8QFI5368+-----END CERTIFICATE-----5369+5370+# Issuer: CN=http://www.valicert.com/ O=ValiCert, Inc. OU=ValiCert Class 3 Policy Validation Authority5371+# Subject: CN=http://www.valicert.com/ O=ValiCert, Inc. OU=ValiCert Class 3 Policy Validation Authority5372+# Label: "RSA Root Certificate 1"5373+# Serial: 15374+# MD5 Fingerprint: a2:6f:53:b7:ee:40:db:4a:68:e7:fa:18:d9:10:4b:725375+# SHA1 Fingerprint: 69:bd:8c:f4:9c:d3:00:fb:59:2e:17:93:ca:55:6a:f3:ec:aa:35:fb5376+# SHA256 Fingerprint: bc:23:f9:8a:31:3c:b9:2d:e3:bb:fc:3a:5a:9f:44:61:ac:39:49:4c:4a:e1:5a:9e:9d:f1:31:e9:9b:73:01:9a5377+-----BEGIN CERTIFICATE-----5378+MIIC5zCCAlACAQEwDQYJKoZIhvcNAQEFBQAwgbsxJDAiBgNVBAcTG1ZhbGlDZXJ05379+IFZhbGlkYXRpb24gTmV0d29yazEXMBUGA1UEChMOVmFsaUNlcnQsIEluYy4xNTAz5380+BgNVBAsTLFZhbGlDZXJ0IENsYXNzIDMgUG9saWN5IFZhbGlkYXRpb24gQXV0aG9y5381+aXR5MSEwHwYDVQQDExhodHRwOi8vd3d3LnZhbGljZXJ0LmNvbS8xIDAeBgkqhkiG5382+9w0BCQEWEWluZm9AdmFsaWNlcnQuY29tMB4XDTk5MDYyNjAwMjIzM1oXDTE5MDYy5383+NjAwMjIzM1owgbsxJDAiBgNVBAcTG1ZhbGlDZXJ0IFZhbGlkYXRpb24gTmV0d29y5384+azEXMBUGA1UEChMOVmFsaUNlcnQsIEluYy4xNTAzBgNVBAsTLFZhbGlDZXJ0IENs5385+YXNzIDMgUG9saWN5IFZhbGlkYXRpb24gQXV0aG9yaXR5MSEwHwYDVQQDExhodHRw5386+Oi8vd3d3LnZhbGljZXJ0LmNvbS8xIDAeBgkqhkiG9w0BCQEWEWluZm9AdmFsaWNl5387+cnQuY29tMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDjmFGWHOjVsQaBalfD5388+cnWTq8+epvzzFlLWLU2fNUSoLgRNB0mKOCn1dzfnt6td3zZxFJmP3MKS8edgkpfs5389+2Ejcv8ECIMYkpChMMFp2bbFc893enhBxoYjHW5tBbcqwuI4V7q0zK89HBFx1cQqY5390+JJgpp0lZpd34t0NiYfPT4tBVPwIDAQABMA0GCSqGSIb3DQEBBQUAA4GBAFa7AliE5391+Zwgs3x/be0kz9dNnnfS0ChCzycUs4pJqcXgn8nCDQtM+z6lU9PHYkhaM0QTLS6vJ5392+n0WuPIqpsHEzXcjFV9+vqDWzf4mH6eglkrh/hXqu1rweN1gqZ8mRzyqBPu3GOd/A5393+PhmcGcwTTYJBtYze4D1gCCAPRX5ron+jjBXu5394+-----END CERTIFICATE-----5395+5396+# Issuer: CN=http://www.valicert.com/ O=ValiCert, Inc. OU=ValiCert Class 1 Policy Validation Authority5397+# Subject: CN=http://www.valicert.com/ O=ValiCert, Inc. OU=ValiCert Class 1 Policy Validation Authority5398+# Label: "ValiCert Class 1 VA"5399+# Serial: 15400+# MD5 Fingerprint: 65:58:ab:15:ad:57:6c:1e:a8:a7:b5:69:ac:bf:ff:eb5401+# SHA1 Fingerprint: e5:df:74:3c:b6:01:c4:9b:98:43:dc:ab:8c:e8:6a:81:10:9f:e4:8e5402+# SHA256 Fingerprint: f4:c1:49:55:1a:30:13:a3:5b:c7:bf:fe:17:a7:f3:44:9b:c1:ab:5b:5a:0a:e7:4b:06:c2:3b:90:00:4c:01:045403+-----BEGIN CERTIFICATE-----5404+MIIC5zCCAlACAQEwDQYJKoZIhvcNAQEFBQAwgbsxJDAiBgNVBAcTG1ZhbGlDZXJ05405+IFZhbGlkYXRpb24gTmV0d29yazEXMBUGA1UEChMOVmFsaUNlcnQsIEluYy4xNTAz5406+BgNVBAsTLFZhbGlDZXJ0IENsYXNzIDEgUG9saWN5IFZhbGlkYXRpb24gQXV0aG9y5407+aXR5MSEwHwYDVQQDExhodHRwOi8vd3d3LnZhbGljZXJ0LmNvbS8xIDAeBgkqhkiG5408+9w0BCQEWEWluZm9AdmFsaWNlcnQuY29tMB4XDTk5MDYyNTIyMjM0OFoXDTE5MDYy5409+NTIyMjM0OFowgbsxJDAiBgNVBAcTG1ZhbGlDZXJ0IFZhbGlkYXRpb24gTmV0d29y5410+azEXMBUGA1UEChMOVmFsaUNlcnQsIEluYy4xNTAzBgNVBAsTLFZhbGlDZXJ0IENs5411+YXNzIDEgUG9saWN5IFZhbGlkYXRpb24gQXV0aG9yaXR5MSEwHwYDVQQDExhodHRw5412+Oi8vd3d3LnZhbGljZXJ0LmNvbS8xIDAeBgkqhkiG9w0BCQEWEWluZm9AdmFsaWNl5413+cnQuY29tMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDYWYJ6ibiWuqYvaG9Y5414+LqdUHAZu9OqNSLwxlBfw8068srg1knaw0KWlAdcAAxIiGQj4/xEjm84H9b9pGib+5415+TunRf50sQB1ZaG6m+FiwnRqP0z/x3BkGgagO4DrdyFNFCQbmD3DD+kCmDuJWBQ8Y5416+TfwggtFzVXSNdnKgHZ0dwN0/cQIDAQABMA0GCSqGSIb3DQEBBQUAA4GBAFBoPUn05417+LBwGlN+VYH+Wexf+T3GtZMjdd9LvWVXoP+iOBSoh8gfStadS/pyxtuJbdxdA6nLW5418+I8sogTLDAHkY7FkXicnGah5xyf23dKUlRWnFSKsZ4UWKJWsZ7uW7EvV/96aNUcPw5419+nXS3qT6gpf+2SQMT2iLM7XGCK5nPOrf1LXLI5420+-----END CERTIFICATE-----5421+5422+# Issuer: CN=Equifax Secure eBusiness CA-1 O=Equifax Secure Inc.5423+# Subject: CN=Equifax Secure eBusiness CA-1 O=Equifax Secure Inc.5424+# Label: "Equifax Secure eBusiness CA 1"5425+# Serial: 45426+# MD5 Fingerprint: 64:9c:ef:2e:44:fc:c6:8f:52:07:d0:51:73:8f:cb:3d5427+# SHA1 Fingerprint: da:40:18:8b:91:89:a3:ed:ee:ae:da:97:fe:2f:9d:f5:b7:d1:8a:415428+# SHA256 Fingerprint: cf:56:ff:46:a4:a1:86:10:9d:d9:65:84:b5:ee:b5:8a:51:0c:42:75:b0:e5:f9:4f:40:bb:ae:86:5e:19:f6:735429+-----BEGIN CERTIFICATE-----5430+MIICgjCCAeugAwIBAgIBBDANBgkqhkiG9w0BAQQFADBTMQswCQYDVQQGEwJVUzEc5431+MBoGA1UEChMTRXF1aWZheCBTZWN1cmUgSW5jLjEmMCQGA1UEAxMdRXF1aWZheCBT5432+ZWN1cmUgZUJ1c2luZXNzIENBLTEwHhcNOTkwNjIxMDQwMDAwWhcNMjAwNjIxMDQw5433+MDAwWjBTMQswCQYDVQQGEwJVUzEcMBoGA1UEChMTRXF1aWZheCBTZWN1cmUgSW5j5434+LjEmMCQGA1UEAxMdRXF1aWZheCBTZWN1cmUgZUJ1c2luZXNzIENBLTEwgZ8wDQYJ5435+KoZIhvcNAQEBBQADgY0AMIGJAoGBAM4vGbwXt3fek6lfWg0XTzQaDJj0ItlZ1MRo5436+RvC0NcWFAyDGr0WlIVFFQesWWDYyb+JQYmT5/VGcqiTZ9J2DKocKIdMSODRsjQBu5437+WqDZQu4aIZX5UkxVWsUPOE9G+m34LjXWHXzr4vCwdYDIqROsvojvOm6rXyo4YgKw5438+Env+j6YDAgMBAAGjZjBkMBEGCWCGSAGG+EIBAQQEAwIABzAPBgNVHRMBAf8EBTAD5439+AQH/MB8GA1UdIwQYMBaAFEp4MlIR21kWNl7fwRQ2QGpHfEyhMB0GA1UdDgQWBBRK5440+eDJSEdtZFjZe38EUNkBqR3xMoTANBgkqhkiG9w0BAQQFAAOBgQB1W6ibAxHm6VZM5441+zfmpTMANmvPMZWnmJXbMWbfWVMMdzZmsGd20hdXgPfxiIKeES1hl8eL5lSE/9dR+5442+WB5Hh1Q+WKG1tfgq73HnvMP2sUlG4tega+VWeponmHxGYhTnyfxuAxJ5gDgdSIKN5443+/Bf+KpYrtWKmpj29f5JZzVoqgrI3eQ==5444+-----END CERTIFICATE-----5445+5446+# Issuer: CN=Equifax Secure Global eBusiness CA-1 O=Equifax Secure Inc.5447+# Subject: CN=Equifax Secure Global eBusiness CA-1 O=Equifax Secure Inc.5448+# Label: "Equifax Secure Global eBusiness CA"5449+# Serial: 15450+# MD5 Fingerprint: 8f:5d:77:06:27:c4:98:3c:5b:93:78:e7:d7:7d:9b:cc5451+# SHA1 Fingerprint: 7e:78:4a:10:1c:82:65:cc:2d:e1:f1:6d:47:b4:40:ca:d9:0a:19:455452+# SHA256 Fingerprint: 5f:0b:62:ea:b5:e3:53:ea:65:21:65:16:58:fb:b6:53:59:f4:43:28:0a:4a:fb:d1:04:d7:7d:10:f9:f0:4c:075453+-----BEGIN CERTIFICATE-----5454+MIICkDCCAfmgAwIBAgIBATANBgkqhkiG9w0BAQQFADBaMQswCQYDVQQGEwJVUzEc5455+MBoGA1UEChMTRXF1aWZheCBTZWN1cmUgSW5jLjEtMCsGA1UEAxMkRXF1aWZheCBT5456+ZWN1cmUgR2xvYmFsIGVCdXNpbmVzcyBDQS0xMB4XDTk5MDYyMTA0MDAwMFoXDTIw5457+MDYyMTA0MDAwMFowWjELMAkGA1UEBhMCVVMxHDAaBgNVBAoTE0VxdWlmYXggU2Vj5458+dXJlIEluYy4xLTArBgNVBAMTJEVxdWlmYXggU2VjdXJlIEdsb2JhbCBlQnVzaW5l5459+c3MgQ0EtMTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAuucXkAJlsTRVPEnC5460+UdXfp9E3j9HngXNBUmCbnaEXJnitx7HoJpQytd4zjTov2/KaelpzmKNc6fuKcxtc5461+58O/gGzNqfTWK8D3+ZmqY6KxRwIP1ORROhI8bIpaVIRw28HFkM9yRcuoWcDNM50/5462+o5brhTMhHD4ePmBudpxnhcXIw2ECAwEAAaNmMGQwEQYJYIZIAYb4QgEBBAQDAgAH5463+MA8GA1UdEwEB/wQFMAMBAf8wHwYDVR0jBBgwFoAUvqigdHJQa0S3ySPY+6j/s1dr5464+aGwwHQYDVR0OBBYEFL6ooHRyUGtEt8kj2Puo/7NXa2hsMA0GCSqGSIb3DQEBBAUA5465+A4GBADDiAVGqx+pf2rnQZQ8w1j7aDRRJbpGTJxQx78T3LUX47Me/okENI7SS+RkA5466+Z70Br83gcfxaz2TE4JaY0KNA4gGK7ycH8WUBikQtBmV1UsCGECAhX2xrD2yuCRyv5467+8qIYNMR1pHMc8Y3c7635s3a0kr/clRAevsvIO1qEYBlWlKlV5468+-----END CERTIFICATE-----5469+5470+# Issuer: CN=Thawte Premium Server CA O=Thawte Consulting cc OU=Certification Services Division5471+# Subject: CN=Thawte Premium Server CA O=Thawte Consulting cc OU=Certification Services Division5472+# Label: "Thawte Premium Server CA"5473+# Serial: 15474+# MD5 Fingerprint: 06:9f:69:79:16:66:90:02:1b:8c:8c:a2:c3:07:6f:3a5475+# SHA1 Fingerprint: 62:7f:8d:78:27:65:63:99:d2:7d:7f:90:44:c9:fe:b3:f3:3e:fa:9a5476+# SHA256 Fingerprint: ab:70:36:36:5c:71:54:aa:29:c2:c2:9f:5d:41:91:16:3b:16:2a:22:25:01:13:57:d5:6d:07:ff:a7:bc:1f:725477+-----BEGIN CERTIFICATE-----5478+MIIDJzCCApCgAwIBAgIBATANBgkqhkiG9w0BAQQFADCBzjELMAkGA1UEBhMCWkEx5479+FTATBgNVBAgTDFdlc3Rlcm4gQ2FwZTESMBAGA1UEBxMJQ2FwZSBUb3duMR0wGwYD5480+VQQKExRUaGF3dGUgQ29uc3VsdGluZyBjYzEoMCYGA1UECxMfQ2VydGlmaWNhdGlv5481+biBTZXJ2aWNlcyBEaXZpc2lvbjEhMB8GA1UEAxMYVGhhd3RlIFByZW1pdW0gU2Vy5482+dmVyIENBMSgwJgYJKoZIhvcNAQkBFhlwcmVtaXVtLXNlcnZlckB0aGF3dGUuY29t5483+MB4XDTk2MDgwMTAwMDAwMFoXDTIwMTIzMTIzNTk1OVowgc4xCzAJBgNVBAYTAlpB5484+MRUwEwYDVQQIEwxXZXN0ZXJuIENhcGUxEjAQBgNVBAcTCUNhcGUgVG93bjEdMBsG5485+A1UEChMUVGhhd3RlIENvbnN1bHRpbmcgY2MxKDAmBgNVBAsTH0NlcnRpZmljYXRp5486+b24gU2VydmljZXMgRGl2aXNpb24xITAfBgNVBAMTGFRoYXd0ZSBQcmVtaXVtIFNl5487+cnZlciBDQTEoMCYGCSqGSIb3DQEJARYZcHJlbWl1bS1zZXJ2ZXJAdGhhd3RlLmNv5488+bTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA0jY2aovXwlue2oFBYo847kkE5489+VdbQ7xwblRZH7xhINTpS9CtqBo87L+pW46+GjZ4X9560ZXUCTe/LCaIhUdib0GfQ5490+ug2SBhRz1JPLlyoAnFxODLz6FVL88kRu2hFKbgifLy3j+ao6hnO2RlNYyIkFvYMR5491+uHM/qgeN9EJN50CdHDcCAwEAAaMTMBEwDwYDVR0TAQH/BAUwAwEB/zANBgkqhkiG5492+9w0BAQQFAAOBgQAmSCwWwlj66BZ0DKqqX1Q/8tfJeGBeXm43YyJ3Nn6yF8Q0ufUI5493+hfzJATj/Tb7yFkJD57taRvvBxhEf8UqwKEbJw8RCfbz6q1lu1bdRiBHjpIUZa4JM5494+pAwSremkrj/xw0llmozFyD4lt5SZu5IycQfwhl7tUCemDaYj+bvLpgcUQg==5495+-----END CERTIFICATE-----5496+5497+# Issuer: CN=Thawte Server CA O=Thawte Consulting cc OU=Certification Services Division5498+# Subject: CN=Thawte Server CA O=Thawte Consulting cc OU=Certification Services Division5499+# Label: "Thawte Server CA"5500+# Serial: 15501+# MD5 Fingerprint: c5:70:c4:a2:ed:53:78:0c:c8:10:53:81:64:cb:d0:1d5502+# SHA1 Fingerprint: 23:e5:94:94:51:95:f2:41:48:03:b4:d5:64:d2:a3:a3:f5:d8:8b:8c5503+# SHA256 Fingerprint: b4:41:0b:73:e2:e6:ea:ca:47:fb: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DfU+VPaGLtwtimHp1it2ITk6e5520+QNuozDJ0uW8NxuOzRAvZim+aKZuZGCg70eNAKJpaPNW15yAbi8qkq43pUdniTCxZ5521+qdq5snUb9kLy78fyGPmJvKP/iiMucEc=5522+-----END CERTIFICATE-----5523+5524+# Issuer: O=VeriSign, Inc. OU=Class 3 Public Primary Certification Authority5525+# Subject: O=VeriSign, Inc. OU=Class 3 Public Primary Certification Authority5526+# Label: "Verisign Class 3 Public Primary Certification Authority"5527+# Serial: 1498439294358186928480403657168517024635528+# MD5 Fingerprint: 10:fc:63:5d:f6:26:3e:0d:f3:25:be:5f:79:cd:67:675529+# SHA1 Fingerprint: 74:2c:31:92:e6:07:e4:24:eb:45:49:54:2b:e1:bb:c5:3e:61:74:e25530+# SHA256 Fingerprint: e7:68:56:34:ef:ac:f6:9a:ce:93:9a:6b:25:5b:7b:4f:ab:ef:42:93:5b:50:a2:65:ac:b5:cb:60:27:e4:4e:705531+-----BEGIN CERTIFICATE-----5532+MIICPDCCAaUCEHC65B0Q2Sk0tjjKewPMur8wDQYJKoZIhvcNAQECBQAwXzELMAkG5533+A1UEBhMCVVMxFzAVBgNVBAoTDlZlcmlTaWduLCBJbmMuMTcwNQYDVQQLEy5DbGFz5534+cyAzIFB1YmxpYyBQcmltYXJ5IENlcnRpZmljYXRpb24gQXV0aG9yaXR5MB4XDTk25535+MDEyOTAwMDAwMFoXDTI4MDgwMTIzNTk1OVowXzELMAkGA1UEBhMCVVMxFzAVBgNV5536+BAoTDlZlcmlTaWduLCBJbmMuMTcwNQYDVQQLEy5DbGFzcyAzIFB1YmxpYyBQcmlt5537+YXJ5IENlcnRpZmljYXRpb24gQXV0aG9yaXR5MIGfMA0GCSqGSIb3DQEBAQUAA4GN5538+ADCBiQKBgQDJXFme8huKARS0EN8EQNvjV69qRUCPhAwL0TPZ2RHP7gJYHyX3KqhE5539+BarsAx94f56TuZoAqiN91qyFomNFx3InzPRMxnVx0jnvT0Lwdd8KkMaOIG+YD/is5540+I19wKTakyYbnsZogy1Olhec9vn2a/iRFM9x2Fe0PonFkTGUugWhFpwIDAQABMA0G5541+CSqGSIb3DQEBAgUAA4GBALtMEivPLCYATxQT3ab7/AoRhIzzKBxnki98tsX63/Do5542+lbwdj2wsqFHMc9ikwFPwTtYmwHYBV4GSXiHx0bH/59AhWM1pF+NEHJwZRDmJXNyc5543+AA9WjQKZ7aKQRUzkuxCkPfAyAw7xzvjoyVGM5mKf5p/AfbdynMk2OmufTqj/ZA1k5544+-----END CERTIFICATE-----5545+5546+# Issuer: O=VeriSign, Inc. OU=Class 3 Public Primary Certification Authority5547+# Subject: O=VeriSign, Inc. OU=Class 3 Public Primary Certification Authority5548+# Label: "Verisign Class 3 Public Primary Certification Authority"5549+# Serial: 805075727228624855153064299406913092465550+# MD5 Fingerprint: ef:5a:f1:33:ef:f1:cd:bb:51:02:ee:12:14:4b:96:c45551+# SHA1 Fingerprint: a1:db:63:93:91:6f:17:e4:18:55:09:40:04:15:c7:02:40:b0:ae:6b5552+# SHA256 Fingerprint: a4:b6:b3:99:6f:c2:f3:06:b3:fd:86:81:bd:63:41:3d:8c:50:09:cc:4f:a3:29:c2:cc:f0:e2:fa:1b:14:03:055553+-----BEGIN CERTIFICATE-----5554+MIICPDCCAaUCEDyRMcsf9tAbDpq40ES/Er4wDQYJKoZIhvcNAQEFBQAwXzELMAkG5555+A1UEBhMCVVMxFzAVBgNVBAoTDlZlcmlTaWduLCBJbmMuMTcwNQYDVQQLEy5DbGFz5556+cyAzIFB1YmxpYyBQcmltYXJ5IENlcnRpZmljYXRpb24gQXV0aG9yaXR5MB4XDTk25557+MDEyOTAwMDAwMFoXDTI4MDgwMjIzNTk1OVowXzELMAkGA1UEBhMCVVMxFzAVBgNV5558+BAoTDlZlcmlTaWduLCBJbmMuMTcwNQYDVQQLEy5DbGFzcyAzIFB1YmxpYyBQcmlt5559+YXJ5IENlcnRpZmljYXRpb24gQXV0aG9yaXR5MIGfMA0GCSqGSIb3DQEBAQUAA4GN5560+ADCBiQKBgQDJXFme8huKARS0EN8EQNvjV69qRUCPhAwL0TPZ2RHP7gJYHyX3KqhE5561+BarsAx94f56TuZoAqiN91qyFomNFx3InzPRMxnVx0jnvT0Lwdd8KkMaOIG+YD/is5562+I19wKTakyYbnsZogy1Olhec9vn2a/iRFM9x2Fe0PonFkTGUugWhFpwIDAQABMA0G5563+CSqGSIb3DQEBBQUAA4GBABByUqkFFBkyCEHwxWsKzH4PIRnN5GfcX6kb5sroc50i5564+2JhucwNhkcV8sEVAbkSdjbCxlnRhLQ2pRdKkkirWmnWXbj9T/UWZYB2oK0z5XqcJ5565+2HUw19JlYD1n1khVdWk/kfVIC0dpImmClr7JyDiGSnoscxlIaU5rfGW/D/xwzoiQ5566+-----END CERTIFICATE-----5567+5568+# Issuer: O=VeriSign, Inc. OU=Class 3 Public Primary Certification Authority - G2/(c) 1998 VeriSign, Inc. - For authorized use only/VeriSign Trust Network5569+# Subject: O=VeriSign, Inc. OU=Class 3 Public Primary Certification Authority - G2/(c) 1998 VeriSign, Inc. - For authorized use only/VeriSign Trust Network5570+# Label: "Verisign Class 3 Public Primary Certification Authority - G2"5571+# Serial: 1672853802423196484511544788080368816065572+# MD5 Fingerprint: a2:33:9b:4c:74:78:73:d4:6c:e7:c1:f3:8d:cb:5c:e95573+# SHA1 Fingerprint: 85:37:1c:a6:e5:50:14:3d:ce:28:03:47:1b:de:3a:09:e8:f8:77:0f5574+# SHA256 Fingerprint: 83:ce:3c:12:29:68:8a:59:3d:48:5f:81:97:3c:0f:91:95:43:1e:da:37:cc:5e:36:43:0e:79:c7:a8:88:63:8b5575+-----BEGIN CERTIFICATE-----5576+MIIDAjCCAmsCEH3Z/gfPqB63EHln+6eJNMYwDQYJKoZIhvcNAQEFBQAwgcExCzAJ5577+BgNVBAYTAlVTMRcwFQYDVQQKEw5WZXJpU2lnbiwgSW5jLjE8MDoGA1UECxMzQ2xh5578+c3MgMyBQdWJsaWMgUHJpbWFyeSBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eSAtIEcy5579+MTowOAYDVQQLEzEoYykgMTk5OCBWZXJpU2lnbiwgSW5jLiAtIEZvciBhdXRob3Jp5580+emVkIHVzZSBvbmx5MR8wHQYDVQQLExZWZXJpU2lnbiBUcnVzdCBOZXR3b3JrMB4X5581+DTk4MDUxODAwMDAwMFoXDTI4MDgwMTIzNTk1OVowgcExCzAJBgNVBAYTAlVTMRcw5582+FQYDVQQKEw5WZXJpU2lnbiwgSW5jLjE8MDoGA1UECxMzQ2xhc3MgMyBQdWJsaWMg5583+UHJpbWFyeSBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eSAtIEcyMTowOAYDVQQLEzEo5584+YykgMTk5OCBWZXJpU2lnbiwgSW5jLiAtIEZvciBhdXRob3JpemVkIHVzZSBvbmx55585+MR8wHQYDVQQLExZWZXJpU2lnbiBUcnVzdCBOZXR3b3JrMIGfMA0GCSqGSIb3DQEB5586+AQUAA4GNADCBiQKBgQDMXtERXVxp0KvTuWpMmR9ZmDCOFoUgRm1HP9SFIIThbbP45587+pO0M8RcPO/mn+SXXwc+EY/J8Y8+iR/LGWzOOZEAEaMGAuWQcRXfH2G71lSk8UOg05588+13gfqLptQ5GVj0VXXn7F+8qkBOvqlzdUMG+7AUcyM83cV5tkaWH4mx0ciU9cZwID5589+AQABMA0GCSqGSIb3DQEBBQUAA4GBAFFNzb5cy5gZnBWyATl4Lk0PZ3BwmcYQWpSk5590+U01UbSuvDV1Ai2TT1+7eVmGSX6bEHRBhNtMsJzzoKQm5EWR0zLVznxxIqbxhAe7i5591+F6YM40AIOw7n60RzKprxaZLvcRTDOaxxp5EJb+RxBrO6WVcmeQD2+A2iMzAo1KpY5592+oJ2daZH95593+-----END CERTIFICATE-----5594+5595+# Issuer: CN=GTE CyberTrust Global Root O=GTE Corporation OU=GTE CyberTrust Solutions, Inc.5596+# Subject: CN=GTE CyberTrust Global Root O=GTE Corporation OU=GTE CyberTrust Solutions, Inc.5597+# Label: "GTE CyberTrust Global Root"5598+# Serial: 4215599+# MD5 Fingerprint: ca:3d:d3:68:f1:03:5c:d0:32:fa:b8:2b:59:e8:5a:db5600+# SHA1 Fingerprint: 97:81:79:50:d8:1c:96:70:cc:34:d8:09:cf:79:44:31:36:7e:f4:745601+# SHA256 Fingerprint: a5:31:25:18:8d:21:10:aa:96:4b:02:c7:b7:c6:da:32:03:17:08:94:e5:fb:71:ff:fb:66:67:d5:e6:81:0a:365602+-----BEGIN CERTIFICATE-----5603+MIICWjCCAcMCAgGlMA0GCSqGSIb3DQEBBAUAMHUxCzAJBgNVBAYTAlVTMRgwFgYD5604+VQQKEw9HVEUgQ29ycG9yYXRpb24xJzAlBgNVBAsTHkdURSBDeWJlclRydXN0IFNv5605+bHV0aW9ucywgSW5jLjEjMCEGA1UEAxMaR1RFIEN5YmVyVHJ1c3QgR2xvYmFsIFJv5606+b3QwHhcNOTgwODEzMDAyOTAwWhcNMTgwODEzMjM1OTAwWjB1MQswCQYDVQQGEwJV5607+UzEYMBYGA1UEChMPR1RFIENvcnBvcmF0aW9uMScwJQYDVQQLEx5HVEUgQ3liZXJU5608+cnVzdCBTb2x1dGlvbnMsIEluYy4xIzAhBgNVBAMTGkdURSBDeWJlclRydXN0IEds5609+b2JhbCBSb290MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCVD6C28FCc6HrH5610+iM3dFw4usJTQGz0O9pTAipTHBsiQl8i4ZBp6fmw8U+E3KHNgf7KXUwefU/ltWJTS5611+r41tiGeA5u2ylc9yMcqlHHK6XALnZELn+aks1joNrI1CqiQBOeacPwGFVw1Yh0X45612+04Wqk2kmhXBIgD8SFcd5tB8FLztimQIDAQABMA0GCSqGSIb3DQEBBAUAA4GBAG3r5613+GwnpXtlR22ciYaQqPEh346B8pt5zohQDhT37qw4wxYMWM4ETCJ57NE7fQMh017l95614+3PR2VX2bY1QY6fDq81yx2YtCHrnAlU66+tXifPVoYb+O7AWXX1uw16OFNMQkpw0P5615+lZPvy5TYnh+dXIVtx6quTx8itc2VrbqnzPmrC3p/5616+-----END CERTIFICATE-----modified:requests/certs.py+7 added-6 removed
9 unmodified lines10 If you are packaging Requests, e.g., for a Linux distribution or a managed11 environment, you can change the definition of where() to return a separately12 packaged CA bundle.13 """14-14 import os.path15 16+try:17+ from certifi import where18+except ImportError:19+ def where():20+ """Return the preferred certificate bundle."""21+ # vendored bundle inside Requests22+ return os.path.join(os.path.dirname(__file__), 'cacert.pem')23 18-def where():19- """Return the preferred certificate bundle."""20- # vendored bundle inside Requests21- return os.path.join(os.path.dirname(__file__), 'cacert.pem')22-24 if __name__ == '__main__':25 print(where())modified:requests/compat.py+3 added-56 removed
19 unmodified lines20 21 #: Python 3.x?22 is_py3 = (_ver[0] == 3)23 24-#: Python 3.0.x25-is_py30 = (is_py3 and _ver[1] == 0)26-27-#: Python 3.1.x28-is_py31 = (is_py3 and _ver[1] == 1)29-30-#: Python 3.2.x31-is_py32 = (is_py3 and _ver[1] == 2)32-33-#: Python 3.3.x34-is_py33 = (is_py3 and _ver[1] == 3)35-36-#: Python 3.4.x37-is_py34 = (is_py3 and _ver[1] == 4)38-39-#: Python 2.7.x40-is_py27 = (is_py2 and _ver[1] == 7)41-42-#: Python 2.6.x43-is_py26 = (is_py2 and _ver[1] == 6)44-45-#: Python 2.5.x46-is_py25 = (is_py2 and _ver[1] == 5)47-48-#: Python 2.4.x49-is_py24 = (is_py2 and _ver[1] == 4) # I'm assuming this is not by choice.50-51-52-# ---------53-# Platforms54-# ---------55-56-57-# Syntax sugar.58-_ver = sys.version.lower()59-60-is_pypy = ('pypy' in _ver)61-is_jython = ('jython' in _ver)62-is_ironpython = ('iron' in _ver)63-64-# Assume CPython, if nothing else.65-is_cpython = not any((is_pypy, is_jython, is_ironpython))66-67-# Windows-based system.68-is_windows = 'win32' in str(sys.platform).lower()69-70-# Standard Linux 2+ system.71-is_linux = ('linux' in str(sys.platform).lower())72-is_osx = ('darwin' in str(sys.platform).lower())73-is_hpux = ('hpux' in str(sys.platform).lower()) # Complete guess.74-is_solaris = ('solar==' in str(sys.platform).lower()) # Complete guess.75-24 try:25 import simplejson as json78-except ImportError:26+except (ImportError, SyntaxError):27+ # simplejson does not support Python 3.2, it throws a SyntaxError28+ # because of u'...' Unicode literals.29 import json30 31 # ---------32 # Specifics6 unmodified lines39 import cookielib40 from Cookie import Morsel41 from StringIO import StringIO42 from .packages.urllib3.packages.ordered_dict import OrderedDict93- from httplib import IncompleteRead43 44 builtin_str = str45 bytes = str46 str = unicode47 basestring = basestring48 numeric_types = (int, long, float)49 101-50 elif is_py3:51 from urllib.parse import urlparse, urlunparse, urljoin, urlsplit, urlencode, quote, unquote, quote_plus, unquote_plus, urldefrag52 from urllib.request import parse_http_list, getproxies, proxy_bypass53 from http import cookiejar as cookielib54 from http.cookies import Morsel55 from io import StringIO56 from collections import OrderedDict109- from http.client import IncompleteRead57 58 builtin_str = str59 str = str60 bytes = bytes2 unmodified linesmodified:requests/cookies.py+80 added-48 removed
4 unmodified lines5 6 requests.utils imports from here, so be careful with imports.7 """8 9+import copy10 import time11 import calendar12 import collections13 from .compat import cookielib, urlparse, urlunparse, Morsel129 unmodified lines143 Wraps CookieJar.clear(), is O(n).144 """145 clearables = []146 for cookie in cookiejar:146- if cookie.name == name:147- if domain is None or domain == cookie.domain:148- if path is None or path == cookie.path:149- clearables.append((cookie.domain, cookie.path, cookie.name))147+ if cookie.name != name:148+ continue149+ if domain is not None and domain != cookie.domain:150+ continue151+ if path is not None and path != cookie.path:152+ continue153+ clearables.append((cookie.domain, cookie.path, cookie.name))154 155 for domain, path, name in clearables:156 cookiejar.clear(domain, path, name)157 3 unmodified lines161 Use .get and .set and include domain and path args in order to be more specific."""162 163 164 class RequestsCookieJar(cookielib.CookieJar, collections.MutableMapping):161- """Compatibility class; is a cookielib.CookieJar, but exposes a dict interface.165+ """Compatibility class; is a cookielib.CookieJar, but exposes a dict166+ interface.167 168 This is the CookieJar we create by default for requests and sessions that169 don't specify one, since some clients may expect response.cookies and170 session.cookies to support dict operations.171 167- Don't use the dict interface internally; it's just for compatibility with168- with external client code. All `requests` code should work out of the box169- with externally provided instances of CookieJar, e.g., LWPCookieJar and170- FileCookieJar.172+ Requests does not use the dict interface internally; it's just for173+ compatibility with external client code. All requests code should work174+ out of the box with externally provided instances of ``CookieJar``, e.g.175+ ``LWPCookieJar`` and ``FileCookieJar``.176 172- Caution: dictionary operations that are normally O(1) may be O(n).173-177 Unlike a regular CookieJar, this class is pickleable.175- """178 179+ .. warning:: dictionary operations that are normally O(1) may be O(n).180+ """181 def get(self, name, default=None, domain=None, path=None):182 """Dict-like get() that also supports optional domain and path args in183 order to resolve naming collisions from using one cookie jar over180- multiple domains. Caution: operation is O(n), not O(1)."""184+ multiple domains.185+186+ .. warning:: operation is O(n), not O(1)."""187 try:188 return self._find_no_duplicates(name, domain, path)189 except KeyError:190 return default14 unmodified lines205 self.set_cookie(c)206 return c207 208 def iterkeys(self):203- """Dict-like iterkeys() that returns an iterator of names of cookies from the jar.204- See itervalues() and iteritems()."""209+ """Dict-like iterkeys() that returns an iterator of names of cookies210+ from the jar. See itervalues() and iteritems()."""211 for cookie in iter(self):212 yield cookie.name213 214 def keys(self):209- """Dict-like keys() that returns a list of names of cookies from the jar.210- See values() and items()."""215+ """Dict-like keys() that returns a list of names of cookies from the216+ jar. See values() and items()."""217 return list(self.iterkeys())218 219 def itervalues(self):214- """Dict-like itervalues() that returns an iterator of values of cookies from the jar.215- See iterkeys() and iteritems()."""220+ """Dict-like itervalues() that returns an iterator of values of cookies221+ from the jar. See iterkeys() and iteritems()."""222 for cookie in iter(self):223 yield cookie.value224 225 def values(self):220- """Dict-like values() that returns a list of values of cookies from the jar.221- See keys() and items()."""226+ """Dict-like values() that returns a list of values of cookies from the227+ jar. See keys() and items()."""228 return list(self.itervalues())229 230 def iteritems(self):225- """Dict-like iteritems() that returns an iterator of name-value tuples from the jar.226- See iterkeys() and itervalues()."""231+ """Dict-like iteritems() that returns an iterator of name-value tuples232+ from the jar. See iterkeys() and itervalues()."""233 for cookie in iter(self):234 yield cookie.name, cookie.value235 236 def items(self):231- """Dict-like items() that returns a list of name-value tuples from the jar.232- See keys() and values(). Allows client-code to call "dict(RequestsCookieJar)233- and get a vanilla python dict of key value pairs."""237+ """Dict-like items() that returns a list of name-value tuples from the238+ jar. See keys() and values(). Allows client-code to call239+ ``dict(RequestsCookieJar)`` and get a vanilla python dict of key value240+ pairs."""241 return list(self.iteritems())242 243 def list_domains(self):244 """Utility method to list all the domains in the jar."""21 unmodified lines266 domains.append(cookie.domain)267 return False # there is only one domain in jar268 269 def get_dict(self, domain=None, path=None):263- """Takes as an argument an optional domain and path and returns a plain old264- Python dict of name-value pairs of cookies that meet the requirements."""270+ """Takes as an argument an optional domain and path and returns a plain271+ old Python dict of name-value pairs of cookies that meet the272+ requirements."""273 dictionary = {}274 for cookie in iter(self):275 if (domain is None or cookie.domain == domain) and (path is None276 or cookie.path == path):277 dictionary[cookie.name] = cookie.value278 return dictionary279 280 def __getitem__(self, name):273- """Dict-like __getitem__() for compatibility with client code. Throws exception274- if there are more than one cookie with name. In that case, use the more275- explicit get() method instead. Caution: operation is O(n), not O(1)."""281+ """Dict-like __getitem__() for compatibility with client code. Throws282+ exception if there are more than one cookie with name. In that case,283+ use the more explicit get() method instead.284 285+ .. warning:: operation is O(n), not O(1)."""286+287 return self._find_no_duplicates(name)288 289 def __setitem__(self, name, value):280- """Dict-like __setitem__ for compatibility with client code. Throws exception281- if there is already a cookie of that name in the jar. In that case, use the more282- explicit set() method instead."""290+ """Dict-like __setitem__ for compatibility with client code. Throws291+ exception if there is already a cookie of that name in the jar. In that292+ case, use the more explicit set() method instead."""293 294 self.set(name, value)295 296 def __delitem__(self, name):287- """Deletes a cookie given a name. Wraps cookielib.CookieJar's remove_cookie_by_name()."""297+ """Deletes a cookie given a name. Wraps ``cookielib.CookieJar``'s298+ ``remove_cookie_by_name()``."""299 remove_cookie_by_name(self, name)300 301 def set_cookie(self, cookie, *args, **kwargs):302 if hasattr(cookie.value, 'startswith') and cookie.value.startswith('"') and cookie.value.endswith('"'):3 unmodified lines306 def update(self, other):307 """Updates this jar with cookies from another CookieJar or dict-like"""308 if isinstance(other, cookielib.CookieJar):309 for cookie in other:299- self.set_cookie(cookie)310+ self.set_cookie(copy.copy(cookie))311 else:312 super(RequestsCookieJar, self).update(other)313 314 def _find(self, name, domain=None, path=None):304- """Requests uses this method internally to get cookie values. Takes as args name305- and optional domain and path. Returns a cookie.value. If there are conflicting cookies,306- _find arbitrarily chooses one. See _find_no_duplicates if you want an exception thrown307- if there are conflicting cookies."""315+ """Requests uses this method internally to get cookie values. Takes as316+ args name and optional domain and path. Returns a cookie.value. If317+ there are conflicting cookies, _find arbitrarily chooses one. See318+ _find_no_duplicates if you want an exception thrown if there are319+ conflicting cookies."""320 for cookie in iter(self):321 if cookie.name == name:322 if domain is None or cookie.domain == domain:323 if path is None or cookie.path == path:1 unmodified line325 326 raise KeyError('name=%r, domain=%r, path=%r' % (name, domain, path))327 328 def _find_no_duplicates(self, name, domain=None, path=None):317- """__get_item__ and get call _find_no_duplicates -- never used in Requests internally.318- Takes as args name and optional domain and path. Returns a cookie.value.319- Throws KeyError if cookie is not found and CookieConflictError if there are320- multiple cookies that match name and optionally domain and path."""329+ """Both ``__get_item__`` and ``get`` call this function: it's never330+ used elsewhere in Requests. Takes as args name and optional domain and331+ path. Returns a cookie.value. Throws KeyError if cookie is not found332+ and CookieConflictError if there are multiple cookies that match name333+ and optionally domain and path."""334 toReturn = None335 for cookie in iter(self):336 if cookie.name == name:337 if domain is None or cookie.domain == domain:25 unmodified lines363 new_cj.update(self)364 return new_cj365 366 367+def _copy_cookie_jar(jar):368+ if jar is None:369+ return None370+371+ if hasattr(jar, 'copy'):372+ # We're dealing with an instance of RequestsCookieJar373+ return jar.copy()374+ # We're dealing with a generic CookieJar instance375+ new_jar = copy.copy(jar)376+ new_jar.clear()377+ for cookie in jar:378+ new_jar.set_cookie(copy.copy(cookie))379+ return new_jar380+381+382 def create_cookie(name, value, **kwargs):383 """Make a cookie from underspecified parameters.384 385 By default, the pair of `name` and `value` will be set for the domain ''32 unmodified lines418 """Convert a Morsel object into a Cookie containing the one k/v pair."""419 420 expires = None421 if morsel['max-age']:394- expires = time.time() + morsel['max-age']422+ try:423+ expires = int(time.time() + int(morsel['max-age']))424+ except ValueError:425+ raise TypeError('max-age: %s must be integer' % morsel['max-age'])426 elif morsel['expires']:427 time_template = '%a, %d-%b-%Y %H:%M:%S GMT'397- expires = calendar.timegm(time.strptime(morsel['expires'],398- time_template))428+ expires = calendar.timegm(429+ time.strptime(morsel['expires'], time_template)430+ )431 return create_cookie(432 comment=morsel['comment'],433 comment_url=bool(morsel['comment']),434 discard=False,37 unmodified lines472 :param cookies: Dictionary or CookieJar object to be added.473 """474 if not isinstance(cookiejar, cookielib.CookieJar):475 raise ValueError('You can only merge into CookieJar')444- 476+477 if isinstance(cookies, dict):478 cookiejar = cookiejar_from_dict(479 cookies, cookiejar=cookiejar, overwrite=False)480 elif isinstance(cookies, cookielib.CookieJar):7 unmodified linesmodified:requests/exceptions.py+52 added-6 removed
12 unmodified lines13 class RequestException(IOError):14 """There was an ambiguous exception that occurred while handling your15 request."""16 17+ def __init__(self, *args, **kwargs):18+ """19+ Initialize RequestException with `request` and `response` objects.20+ """21+ response = kwargs.pop('response', None)22+ self.response = response23+ self.request = kwargs.pop('request', None)24+ if (response is not None and not self.request and25+ hasattr(response, 'request')):26+ self.request = self.response.request27+ super(RequestException, self).__init__(*args, **kwargs)28 29+30 class HTTPError(RequestException):31 """An HTTP error occurred."""32 21- def __init__(self, *args, **kwargs):22- """ Initializes HTTPError with optional `response` object. """23- self.response = kwargs.pop('response', None)24- super(HTTPError, self).__init__(*args, **kwargs)33 26-34 class ConnectionError(RequestException):35 """A Connection error occurred."""36 37 5 unmodified lines43 """An SSL error occurred."""44 45 46 class Timeout(RequestException):40- """The request timed out."""47+ """The request timed out.48 49+ Catching this error will catch both50+ :exc:`~requests.exceptions.ConnectTimeout` and51+ :exc:`~requests.exceptions.ReadTimeout` errors.52+ """53 54+55+class ConnectTimeout(ConnectionError, Timeout):56+ """The request timed out while trying to connect to the remote server.57+58+ Requests that produced this error are safe to retry.59+ """60+61+62+class ReadTimeout(Timeout):63+ """The server did not send any data in the allotted amount of time."""64+65+66 class URLRequired(RequestException):67 """A valid URL is required to make a request."""68 69 18 unmodified lines88 89 90 class ContentDecodingError(RequestException, BaseHTTPError):91 """Failed to decode response content"""92+93+94+class StreamConsumedError(RequestException, TypeError):95+ """The content for this response was already consumed"""96+97+98+class RetryError(RequestException):99+ """Custom retries logic failed"""100+101+102+# Warnings103+104+105+class RequestsWarning(Warning):106+ """Base warning for Requests."""107+ pass108+109+110+class FileModeWarning(RequestsWarning, DeprecationWarning):111+ """112+ A file was opened in text mode, but Requests determined its binary length.113+ """114+ passmodified:requests/hooks.py+3 added-14 removed
10 unmodified lines11 ``response``:12 The response generated from a Request.13 14 """15-16-15 HOOKS = ['response']16 19-17 def default_hooks():21- hooks = {}22- for event in HOOKS:23- hooks[event] = []24- return hooks18+ return dict((event, []) for event in HOOKS)19 20 # TODO: response is the only one21 22 23 def dispatch_hook(key, hooks, hook_data, **kwargs):24 """Dispatches a hook dictionary on a given piece of data."""31-25 hooks = hooks or dict()33-34- if key in hooks:35- hooks = hooks.get(key)36-26+ hooks = hooks.get(key)27+ if hooks:28 if hasattr(hooks, '__call__'):29 hooks = [hooks]39-30 for hook in hooks:31 _hook_data = hook(hook_data, **kwargs)32 if _hook_data is not None:33 hook_data = _hook_data44-34 return hook_datamodified:requests/models.py+158 added-88 removed
6 unmodified lines7 This module contains the primary objects that power Requests.8 """9 10 import collections11-import logging11 import datetime12 13 from io import BytesIO, UnsupportedOperation14 from .hooks import default_hooks15 from .structures import CaseInsensitiveDict16 17 from .auth import HTTPBasicAuth19-from .cookies import cookiejar_from_dict, get_cookie_header18+from .cookies import cookiejar_from_dict, get_cookie_header, _copy_cookie_jar19 from .packages.urllib3.fields import RequestField20 from .packages.urllib3.filepost import encode_multipart_formdata21 from .packages.urllib3.util import parse_url23-from .packages.urllib3.exceptions import DecodeError22+from .packages.urllib3.exceptions import (23+ DecodeError, ReadTimeoutError, ProtocolError, LocationParseError)24 from .exceptions import (25- HTTPError, RequestException, MissingSchema, InvalidURL,26- ChunkedEncodingError, ContentDecodingError)25+ HTTPError, MissingSchema, InvalidURL, ChunkedEncodingError,26+ ContentDecodingError, ConnectionError, StreamConsumedError)27 from .utils import (28 guess_filename, get_auth_from_url, requote_uri,29 stream_decode_response_unicode, to_key_val_list, parse_header_links,30 iter_slices, guess_json_utf, super_len, to_native_string)31 from .compat import (32 cookielib, urlunparse, urlsplit, urlencode, str, bytes, StringIO,33- is_py2, chardet, json, builtin_str, basestring, IncompleteRead)33+ is_py2, chardet, builtin_str, basestring)34+from .compat import json as complexjson35+from .status_codes import codes36 37+#: The set of HTTP status codes that indicate an automatically38+#: processable redirect.39+REDIRECT_STATI = (40+ codes.moved, # 30141+ codes.found, # 30242+ codes.other, # 30343+ codes.temporary_redirect, # 30744+ codes.permanent_redirect, # 30845+)46+47+DEFAULT_REDIRECT_LIMIT = 3048 CONTENT_CHUNK_SIZE = 10 * 102449 ITER_CHUNK_SIZE = 51250 38-log = logging.getLogger(__name__)51 40-52 class RequestEncodingMixin(object):53 @property54 def path_url(self):55 """Build the path URL to use."""86 unmodified lines142 fn, fp, ft, fh = v143 else:144 fn = guess_filename(v) or k145 fp = v135- if isinstance(fp, str):136- fp = StringIO(fp)137- if isinstance(fp, bytes):138- fp = BytesIO(fp)146 140- rf = RequestField(name=k, data=fp.read(),141- filename=fn, headers=fh)147+ if isinstance(fp, (str, bytes, bytearray)):148+ fdata = fp149+ else:150+ fdata = fp.read()151+152+ rf = RequestField(name=k, data=fdata, filename=fn, headers=fh)153 rf.make_multipart(content_type=ft)154 new_fields.append(rf)155 156 body, content_type = encode_multipart_formdata(new_fields)33 unmodified lines190 :param method: HTTP method to use.191 :param url: URL to send.192 :param headers: dictionary of headers to send.193 :param files: dictionary of {filename: fileobject} files to multipart upload.183- :param data: the body to attach the request. If a dictionary is provided, form-encoding will take place.194+ :param data: the body to attach to the request. If a dictionary is provided, form-encoding will take place.195+ :param json: json for the body to attach to the request (if files or data is not specified).196 :param params: dictionary of URL parameters to append to the URL.197 :param auth: Auth handler or (user, pass) tuple.198 :param cookies: dictionary or CookieJar of cookies to attach to this request.199 :param hooks: dictionary of callback hooks, for internal usage.5 unmodified lines205 >>> req.prepare()206 <PreparedRequest [GET]>207 208 """197- def __init__(self,198- method=None,199- url=None,200- headers=None,201- files=None,202- data=None,203- params=None,204- auth=None,205- cookies=None,206- hooks=None):209+ def __init__(self, method=None, url=None, headers=None, files=None,210+ data=None, params=None, auth=None, cookies=None, hooks=None, json=None):211 212 # Default empty dicts for dict params.213 data = [] if data is None else data214 files = [] if files is None else files9 unmodified lines224 self.url = url225 self.headers = headers226 self.files = files227 self.data = data228+ self.json = json229 self.params = params230 self.auth = auth231 self.cookies = cookies232 8 unmodified lines241 url=self.url,242 headers=self.headers,243 files=self.files,244 data=self.data,245+ json=self.json,246 params=self.params,247 auth=self.auth,248 cookies=self.cookies,249 hooks=self.hooks,35 unmodified lines285 #: dictionary of callback hooks, for internal usage.286 self.hooks = default_hooks()287 288 def prepare(self, method=None, url=None, headers=None, files=None,283- data=None, params=None, auth=None, cookies=None, hooks=None):289+ data=None, params=None, auth=None, cookies=None, hooks=None, json=None):290 """Prepares the entire request with the given parameters."""291 292 self.prepare_method(method)293 self.prepare_url(url, params)294 self.prepare_headers(headers)295 self.prepare_cookies(cookies)290- self.prepare_body(data, files)296+ self.prepare_body(data, files, json)297 self.prepare_auth(auth, url)298+299 # Note that prepare_auth must be last to enable authentication schemes300 # such as OAuth to work on a fully prepared request.301 302 # This MUST go after prepare_auth. Authenticators could add a hook5 unmodified lines308 def copy(self):309 p = PreparedRequest()310 p.method = self.method311 p.url = self.url305- p.headers = self.headers.copy()306- p._cookies = self._cookies.copy()312+ p.headers = self.headers.copy() if self.headers is not None else None313+ p._cookies = _copy_cookie_jar(self._cookies)314 p.body = self.body315 p.hooks = self.hooks316 return p317 318 def prepare_method(self, method):319 """Prepares the given HTTP method."""320 self.method = method321 if self.method is not None:315- self.method = self.method.upper()322+ self.method = to_native_string(self.method.upper())323 324 def prepare_url(self, url, params):325 """Prepares the given HTTP URL."""326 #: Accept objects that have string representations.320- try:321- url = unicode(url)322- except NameError:323- # We're on Python 3.324- url = str(url)325- except UnicodeDecodeError:326- pass327+ #: We're unable to blindly call unicode/str functions328+ #: as this will include the bytestring indicator (b'')329+ #: on python 3.x.330+ #: https://github.com/kennethreitz/requests/pull/2238331+ if isinstance(url, bytes):332+ url = url.decode('utf8')333+ else:334+ url = unicode(url) if is_py2 else str(url)335 328- # Don't do any URL preparation for oddball schemes336+ # Don't do any URL preparation for non-HTTP schemes like `mailto`,337+ # `data` etc to work around exceptions from `url_parse`, which338+ # handles RFC 3986 only.339 if ':' in url and not url.lower().startswith('http'):340 self.url = url341 return342 343 # Support for unicode domain names and paths.344+ try:334- scheme, auth, host, port, path, query, fragment = parse_url(url)345+ scheme, auth, host, port, path, query, fragment = parse_url(url)346+ except LocationParseError as e:347+ raise InvalidURL(*e.args)348 349 if not scheme:337- raise MissingSchema("Invalid URL {0!r}: No schema supplied. "338- "Perhaps you meant http://{0}?".format(url))350+ error = ("Invalid URL {0!r}: No schema supplied. Perhaps you meant http://{0}?")351+ error = error.format(to_native_string(url, 'utf8'))352 353+ raise MissingSchema(error)354+355 if not host:356 raise InvalidURL("Invalid URL %r: No host supplied" % url)357 358 # Only want to apply IDNA to the hostname25 unmodified lines384 query = query.encode('utf-8')385 if isinstance(fragment, str):386 fragment = fragment.encode('utf-8')387 388+ if isinstance(params, (str, bytes)):389+ params = to_native_string(params)390+391 enc_params = self._encode_params(params)392 if enc_params:393 if query:394 query = '%s&%s' % (query, enc_params)10 unmodified lines405 self.headers = CaseInsensitiveDict((to_native_string(name), value) for name, value in headers.items())406 else:407 self.headers = CaseInsensitiveDict()408 391- def prepare_body(self, data, files):409+ def prepare_body(self, data, files, json=None):410 """Prepares the given HTTP body data."""411 412 # Check if file, fo, generator, iterator.413 # If not, run through normal process.2 unmodified lines416 body = None417 content_type = None418 length = None419 420+ if not data and json is not None:421+ content_type = 'application/json'422+ body = complexjson.dumps(json)423+424 is_stream = all([425 hasattr(data, '__iter__'),404- not isinstance(data, basestring),405- not isinstance(data, list),406- not isinstance(data, dict)426+ not isinstance(data, (basestring, list, tuple, dict))427 ])428 429 try:430 length = super_len(data)5 unmodified lines436 437 if files:438 raise NotImplementedError('Streamed bodies and files are mutually exclusive.')439 420- if length is not None:440+ if length:441 self.headers['Content-Length'] = builtin_str(length)442 else:443 self.headers['Transfer-Encoding'] = 'chunked'444 else:2 unmodified lines447 (body, content_type) = self._encode_files(files, data)448 else:449 if data:450 body = self._encode_params(data)431- if isinstance(data, str) or isinstance(data, builtin_str) or hasattr(data, 'read'):451+ if isinstance(data, basestring) or hasattr(data, 'read'):452 content_type = None453 else:454 content_type = 'application/x-www-form-urlencoded'455 456 self.prepare_content_length(body)457 458 # Add content-type if it wasn't explicitly provided.439- if (content_type) and (not 'content-type' in self.headers):459+ if content_type and ('content-type' not in self.headers):460 self.headers['Content-Type'] = content_type461 462 self.body = body463 5 unmodified lines469 elif body is not None:470 l = super_len(body)471 if l:472 self.headers['Content-Length'] = builtin_str(l)453- elif self.method not in ('GET', 'HEAD'):473+ elif (self.method not in ('GET', 'HEAD')) and (self.headers.get('Content-Length') is None):474 self.headers['Content-Length'] = '0'475 476 def prepare_auth(self, auth, url=''):477 """Prepares the given HTTP auth data."""17 unmodified lines495 # Recompute Content-Length496 self.prepare_content_length(self.body)497 498 def prepare_cookies(self, cookies):479- """Prepares the given HTTP cookie data."""499+ """Prepares the given HTTP cookie data.500 501+ This function eventually generates a ``Cookie`` header from the502+ given cookies using cookielib. Due to cookielib's design, the header503+ will not be regenerated if it already exists, meaning this function504+ can only be called once for the life of the505+ :class:`PreparedRequest <PreparedRequest>` object. Any subsequent calls506+ to ``prepare_cookies`` will have no actual effect, unless the "Cookie"507+ header is removed beforehand."""508+509 if isinstance(cookies, cookielib.CookieJar):510 self._cookies = cookies511 else:512 self._cookies = cookiejar_from_dict(cookies)3 unmodified lines516 self.headers['Cookie'] = cookie_header517 518 def prepare_hooks(self, hooks):519 """Prepares the given hooks."""520+ # hooks can be passed as None to the prepare method and to this521+ # method. To prevent iterating over None, simply use an empty list522+ # if hooks is False-y523+ hooks = hooks or []524 for event in hooks:525 self.register_hook(event, hooks[event])526 527 2 unmodified lines530 server's response to an HTTP request.531 """532 533 __attrs__ = [502- '_content',503- 'status_code',504- 'headers',505- 'url',506- 'history',507- 'encoding',508- 'reason',509- 'cookies',510- 'elapsed',511- 'request',534+ '_content', 'status_code', 'headers', 'url', 'history',535+ 'encoding', 'reason', 'cookies', 'elapsed', 'request'536 ]537 538 def __init__(self):539 super(Response, self).__init__()540 541 self._content = False542 self._content_consumed = False543 520- #: Integer Code of responded HTTP Status.544+ #: Integer Code of responded HTTP Status, e.g. 404 or 200.545 self.status_code = None546 547 #: Case-insensitive Dictionary of Response Headers.548 #: For example, ``headers['content-encoding']`` will return the15 unmodified lines564 #: the history of the Request. Any redirect responses will end565 #: up here. The list is sorted from the oldest to the most recent request.566 self.history = []567 568+ #: Textual reason of responded HTTP Status, e.g. "Not Found" or "OK".569 self.reason = None570 571 #: A CookieJar of Cookies the server sent back.572 self.cookies = cookiejar_from_dict({})573 574 #: The amount of time elapsed between sending the request550- #: and the arrival of the response (as a timedelta)575+ #: and the arrival of the response (as a timedelta).576+ #: This property specifically measures the time taken between sending577+ #: the first byte of the request and finishing parsing the headers. It578+ #: is therefore unaffected by consuming the response content or the579+ #: value of the ``stream`` keyword argument.580 self.elapsed = datetime.timedelta(0)581 582+ #: The :class:`PreparedRequest <PreparedRequest>` object to which this583+ #: is a response.584+ self.request = None585+586 def __getstate__(self):587 # Consume everything; accessing the content attribute makes588 # sure the content has been fully read.589 if not self._content_consumed:9 unmodified lines599 setattr(self, name, value)600 601 # pickled objects do not have .raw602 setattr(self, '_content_consumed', True)603+ setattr(self, 'raw', None)604 605 def __repr__(self):606 return '<Response [%s]>' % (self.status_code)607 12 unmodified lines620 @property621 def ok(self):622 try:623 self.raise_for_status()590- except RequestException:624+ except HTTPError:625 return False626 return True627 628 @property629+ def is_redirect(self):630+ """True if this Response is a well-formed HTTP redirect that could have631+ been processed automatically (by :meth:`Session.resolve_redirects`).632+ """633+ return ('location' in self.headers and self.status_code in REDIRECT_STATI)634+635+ @property636+ def is_permanent_redirect(self):637+ """True if this Response one of the permanent versions of redirect"""638+ return ('location' in self.headers and self.status_code in (codes.moved_permanently, codes.permanent_redirect))639+640+ @property641 def apparent_encoding(self):596- """The apparent encoding, provided by the lovely Charade library597- (Thanks, Ian!)."""642+ """The apparent encoding, provided by the chardet library"""643 return chardet.detect(self.content)['encoding']644 645 def iter_content(self, chunk_size=1, decode_unicode=False):646 """Iterates over the response data. When stream=True is set on the647 request, this avoids reading the content at once into memory for648 large responses. The chunk size is the number of bytes it should649 read into memory. This is not necessarily the length of each item650 returned as decoding can take place.651+652+ If decode_unicode is True, content will be decoded using the best653+ available encoding based on the response.654 """607- if self._content_consumed:608- # simulate reading small chunks of the content609- return iter_slices(self._content, chunk_size)655 656 def generate():612- try:613- # Special case for urllib3.657+ # Special case for urllib3.658+ if hasattr(self.raw, 'stream'):659 try:615- for chunk in self.raw.stream(chunk_size,616- decode_content=True):660+ for chunk in self.raw.stream(chunk_size, decode_content=True):661 yield chunk618- except IncompleteRead as e:662+ except ProtocolError as e:663 raise ChunkedEncodingError(e)664 except DecodeError as e:665 raise ContentDecodingError(e)622- except AttributeError:666+ except ReadTimeoutError as e:667+ raise ConnectionError(e)668+ else:669 # Standard file-like object.670 while True:671 chunk = self.raw.read(chunk_size)672 if not chunk:1 unmodified line674 yield chunk675 676 self._content_consumed = True677 632- gen = generate()678+ if self._content_consumed and isinstance(self._content, bool):679+ raise StreamConsumedError()680+ # simulate reading small chunks of the content681+ reused_chunks = iter_slices(self._content, chunk_size)682 683+ stream_chunks = generate()684+685+ chunks = reused_chunks if self._content_consumed else stream_chunks686+687 if decode_unicode:635- gen = stream_decode_response_unicode(gen, self)688+ chunks = stream_decode_response_unicode(chunks, self)689 637- return gen690+ return chunks691 639- def iter_lines(self, chunk_size=ITER_CHUNK_SIZE, decode_unicode=None):692+ def iter_lines(self, chunk_size=ITER_CHUNK_SIZE, decode_unicode=None, delimiter=None):693 """Iterates over the response data, one line at a time. When694 stream=True is set on the request, this avoids reading the695 content at once into memory for large responses.696+697+ .. note:: This method is not reentrant safe.698 """699 700 pending = None701 647- for chunk in self.iter_content(chunk_size=chunk_size,648- decode_unicode=decode_unicode):702+ for chunk in self.iter_content(chunk_size=chunk_size, decode_unicode=decode_unicode):703 704 if pending is not None:705 chunk = pending + chunk652- lines = chunk.splitlines()706 707+ if delimiter:708+ lines = chunk.split(delimiter)709+ else:710+ lines = chunk.splitlines()711+712 if lines and lines[-1] and chunk and lines[-1][-1] == chunk[-1]:713 pending = lines.pop()714 else:715 pending = None34 unmodified lines750 751 If Response.encoding is None, encoding will be guessed using752 ``chardet``.753 696- The encoding of the response content is determined based soley on HTTP754+ The encoding of the response content is determined based solely on HTTP755 headers, following RFC 2616 to the letter. If you can take advantage of756 non-HTTP knowledge to make a better guess at the encoding, you should757 set ``r.encoding`` appropriately before accessing this property.758 """35 unmodified lines794 # decoding fails, fall back to `self.text` (using chardet to make795 # a best guess).796 encoding = guess_json_utf(self.content)797 if encoding is not None:740- return json.loads(self.content.decode(encoding), **kwargs)741- return json.loads(self.text, **kwargs)798+ try:799+ return complexjson.loads(800+ self.content.decode(encoding), **kwargs801+ )802+ except UnicodeDecodeError:803+ # Wrong UTF codec detected; usually because it's not UTF-8804+ # but some other 8-bit codec. This is an RFC violation,805+ # and the server didn't bother to tell us what codec *was*806+ # used.807+ pass808+ return complexjson.loads(self.text, **kwargs)809 810 @property811 def links(self):812 """Returns the parsed header links of the response, if any."""17 unmodified lines830 831 http_error_msg = ''832 833 if 400 <= self.status_code < 500:767- http_error_msg = '%s Client Error: %s' % (self.status_code, self.reason)834+ http_error_msg = '%s Client Error: %s for url: %s' % (self.status_code, self.reason, self.url)835 836 elif 500 <= self.status_code < 600:770- http_error_msg = '%s Server Error: %s' % (self.status_code, self.reason)837+ http_error_msg = '%s Server Error: %s for url: %s' % (self.status_code, self.reason, self.url)838 839 if http_error_msg:840 raise HTTPError(http_error_msg, response=self)841 842 def close(self):776- """Closes the underlying file descriptor and releases the connection777- back to the pool.843+ """Releases the connection back to the pool. Once this method has been844+ called the underlying ``raw`` object must not be accessed again.845 846 *Note: Should not normally need to be called explicitly.*847 """848+ if not self._content_consumed:849+ return self.raw.close()850+851 return self.raw.release_conn()modified:requests/sessions.py+214 added-87 removed
10 unmodified lines11 import os12 from collections import Mapping13 from datetime import datetime14 15+from .auth import _basic_auth_str15-from .compat import cookielib, OrderedDict, urljoin, urlparse, builtin_str16+from .compat import cookielib, OrderedDict, urljoin, urlparse17 from .cookies import (18 cookiejar_from_dict, extract_cookies_to_jar, RequestsCookieJar, merge_cookies)18-from .models import Request, PreparedRequest19+from .models import Request, PreparedRequest, DEFAULT_REDIRECT_LIMIT20 from .hooks import default_hooks, dispatch_hook20-from .utils import to_key_val_list, default_headers21-from .exceptions import TooManyRedirects, InvalidSchema21+from .utils import to_key_val_list, default_headers, to_native_string22+from .exceptions import (23+ TooManyRedirects, InvalidSchema, ChunkedEncodingError, ContentDecodingError)24+from .packages.urllib3._collections import RecentlyUsedContainer25 from .structures import CaseInsensitiveDict26 27 from .adapters import HTTPAdapter28 26-from .utils import requote_uri, get_environ_proxies, get_netrc_auth29+from .utils import (30+ requote_uri, get_environ_proxies, get_netrc_auth, should_bypass_proxies,31+ get_auth_from_url32+)33 34 from .status_codes import codes29-REDIRECT_STATI = (30- codes.moved, # 30131- codes.found, # 30232- codes.other, # 30333- codes.temporary_moved, # 30734-)35-DEFAULT_REDIRECT_LIMIT = 3035 36+# formerly defined here, reexposed here for backward compatibility37+from .models import REDIRECT_STATI38 39+REDIRECT_CACHE_SIZE = 100040+41+42 def merge_setting(request_setting, session_setting, dict_class=OrderedDict):43 """44 Determines appropriate setting for a given request, taking into account the45 explicit setting on that request, and the setting in the session. If a15 unmodified lines61 62 merged_setting = dict_class(to_key_val_list(session_setting))63 merged_setting.update(to_key_val_list(request_setting))64 61- # Remove keys that are set to None.62- for (k, v) in request_setting.items():63- if v is None:64- del merged_setting[k]65+ # Remove keys that are set to None. Extract keys first to avoid altering66+ # the dictionary during iteration.67+ none_keys = [k for (k, v) in merged_setting.items() if v is None]68+ for key in none_keys:69+ del merged_setting[key]70 71 return merged_setting72 73 14 unmodified lines88 89 90 class SessionRedirectMixin(object):91 def resolve_redirects(self, resp, req, stream=False, timeout=None,87- verify=True, cert=None, proxies=None):92+ verify=True, cert=None, proxies=None, **adapter_kwargs):93 """Receives a Response. Returns a generator of Responses."""94 95 i = 096+ hist = [] # keep track of history97 92- # ((resp.status_code is codes.see_other))93- while ('location' in resp.headers and resp.status_code in REDIRECT_STATI):98+ while resp.is_redirect:99 prepared_request = req.copy()100 96- resp.content # Consume socket so it can be released101+ if i > 0:102+ # Update history and keep track of redirects.103+ hist.append(resp)104+ new_hist = list(hist)105+ resp.history = new_hist106 107+ try:108+ resp.content # Consume socket so it can be released109+ except (ChunkedEncodingError, ContentDecodingError, RuntimeError):110+ resp.raw.read(decode_content=False)111+112 if i >= self.max_redirects:113 raise TooManyRedirects('Exceeded %s redirects.' % self.max_redirects)114 115 # Release the connection back into the pool.10 unmodified lines126 # The scheme should be lower case...127 parsed = urlparse(url)128 url = parsed.geturl()129 116- # Facilitate non-RFC2616-compliant 'location' headers130+ # Facilitate relative 'location' headers, as allowed by RFC 7231.131 # (e.g. '/path/to/resource' instead of 'http://domain.tld/path/to/resource')132 # Compliant with RFC3986, we percent encode the url.119- if not urlparse(url).netloc:133+ if not parsed.netloc:134 url = urljoin(resp.url, requote_uri(url))135 else:136 url = requote_uri(url)137 124- prepared_request.url = url138+ prepared_request.url = to_native_string(url)139+ # Cache the url, unless it redirects to itself.140+ if resp.is_permanent_redirect and req.url != prepared_request.url:141+ self.redirect_cache[req.url] = prepared_request.url142 126- # http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.3.4143+ # http://tools.ietf.org/html/rfc7231#section-6.4.4144 if (resp.status_code == codes.see_other and145 method != 'HEAD'):146 method = 'GET'147 9 unmodified lines157 158 prepared_request.method = method159 160 # https://github.com/kennethreitz/requests/issues/1084144- if resp.status_code not in (codes.temporary, codes.resume):161+ if resp.status_code not in (codes.temporary_redirect, codes.permanent_redirect):162 if 'Content-Length' in prepared_request.headers:163 del prepared_request.headers['Content-Length']164 165 prepared_request.body = None3 unmodified lines169 del headers['Cookie']170 except KeyError:171 pass172 156- extract_cookies_to_jar(prepared_request._cookies,157- prepared_request, resp.raw)173+ # Extract any cookies sent on the response to the cookiejar174+ # in the new request. Because we've mutated our copied prepared175+ # request, use the old one that we haven't yet touched.176+ extract_cookies_to_jar(prepared_request._cookies, req, resp.raw)177 prepared_request._cookies.update(self.cookies)178 prepared_request.prepare_cookies(prepared_request._cookies)179 180+ # Rebuild auth and proxy information.181+ proxies = self.rebuild_proxies(prepared_request, proxies)182+ self.rebuild_auth(prepared_request, resp)183+184+ # Override the original request.185+ req = prepared_request186+187 resp = self.send(162- prepared_request,188+ req,189 stream=stream,190 timeout=timeout,191 verify=verify,192 cert=cert,193 proxies=proxies,194 allow_redirects=False,195+ **adapter_kwargs196 )197 198 extract_cookies_to_jar(self.cookies, prepared_request, resp.raw)199 200 i += 1201 yield resp202 203+ def rebuild_auth(self, prepared_request, response):204+ """205+ When being redirected we may want to strip authentication from the206+ request to avoid leaking credentials. This method intelligently removes207+ and reapplies authentication where possible to avoid credential loss.208+ """209+ headers = prepared_request.headers210+ url = prepared_request.url211 212+ if 'Authorization' in headers:213+ # If we get redirected to a new host, we should strip out any214+ # authentication headers.215+ original_parsed = urlparse(response.request.url)216+ redirect_parsed = urlparse(url)217+218+ if (original_parsed.hostname != redirect_parsed.hostname):219+ del headers['Authorization']220+221+ # .netrc might have more auth for us on our new host.222+ new_auth = get_netrc_auth(url) if self.trust_env else None223+ if new_auth is not None:224+ prepared_request.prepare_auth(new_auth)225+226+ return227+228+ def rebuild_proxies(self, prepared_request, proxies):229+ """230+ This method re-evaluates the proxy configuration by considering the231+ environment variables. If we are redirected to a URL covered by232+ NO_PROXY, we strip the proxy configuration. Otherwise, we set missing233+ proxy keys for this URL (in case they were stripped by a previous234+ redirect).235+236+ This method also replaces the Proxy-Authorization header where237+ necessary.238+ """239+ headers = prepared_request.headers240+ url = prepared_request.url241+ scheme = urlparse(url).scheme242+ new_proxies = proxies.copy() if proxies is not None else {}243+244+ if self.trust_env and not should_bypass_proxies(url):245+ environ_proxies = get_environ_proxies(url)246+247+ proxy = environ_proxies.get(scheme)248+249+ if proxy:250+ new_proxies.setdefault(scheme, environ_proxies[scheme])251+252+ if 'Proxy-Authorization' in headers:253+ del headers['Proxy-Authorization']254+255+ try:256+ username, password = get_auth_from_url(new_proxies[scheme])257+ except KeyError:258+ username, password = None, None259+260+ if username and password:261+ headers['Proxy-Authorization'] = _basic_auth_str(username, password)262+263+ return new_proxies264+265+266 class Session(SessionRedirectMixin):267 """A Requests session.268 269 Provides cookie persistence, connection-pooling, and configuration.2 unmodified lines272 273 >>> import requests274 >>> s = requests.Session()275 >>> s.get('http://httpbin.org/get')187- 200276+ <Response [200]>277+278+ Or as a context manager::279+280+ >>> with requests.Session() as s:281+ >>> s.get('http://httpbin.org/get')282+ <Response [200]>283 """284 285 __attrs__ = [191- 'headers', 'cookies', 'auth', 'timeout', 'proxies', 'hooks',192- 'params', 'verify', 'cert', 'prefetch', 'adapters', 'stream',193- 'trust_env', 'max_redirects']286+ 'headers', 'cookies', 'auth', 'proxies', 'hooks', 'params', 'verify',287+ 'cert', 'prefetch', 'adapters', 'stream', 'trust_env',288+ 'max_redirects',289+ ]290 291 def __init__(self):292 293 #: A case-insensitive dictionary of headers to be sent on each4 unmodified lines298 #: Default Authentication tuple or object to attach to299 #: :class:`Request <Request>`.300 self.auth = None301 206- #: Dictionary mapping protocol to the URL of the proxy (e.g.207- #: {'http': 'foo.bar:3128'}) to be used on each208- #: :class:`Request <Request>`.302+ #: Dictionary mapping protocol or protocol and host to the URL of the proxy303+ #: (e.g. {'http': 'foo.bar:3128', 'http://host.name': 'foo.bar:4012'}) to304+ #: be used on each :class:`Request <Request>`.305 self.proxies = {}306 307 #: Event-handling hooks.308 self.hooks = default_hooks()15 unmodified lines324 #: Maximum number of redirects allowed. If the request exceeds this325 #: limit, a :class:`TooManyRedirects` exception is raised.326 self.max_redirects = DEFAULT_REDIRECT_LIMIT327 232- #: Should we trust the environment?328+ #: Trust environment settings for proxy configuration, default329+ #: authentication and similar.330 self.trust_env = True331 332 #: A CookieJar containing all currently outstanding cookies set on this333 #: session. By default it is a5 unmodified lines339 self.adapters = OrderedDict()340 self.mount('https://', HTTPAdapter())341 self.mount('http://', HTTPAdapter())342 343+ # Only store 1000 redirects to prevent using infinite memory344+ self.redirect_cache = RecentlyUsedContainer(REDIRECT_CACHE_SIZE)345+346 def __enter__(self):347 return self348 349 def __exit__(self, *args):29 unmodified lines379 method=request.method.upper(),380 url=request.url,381 files=request.files,382 data=request.data,383+ json=request.json,384 headers=merge_setting(request.headers, self.headers, dict_class=CaseInsensitiveDict),385 params=merge_setting(request.params, self.params),386 auth=merge_setting(auth, self.auth),387 cookies=merged_cookies,13 unmodified lines401 proxies=None,402 hooks=None,403 stream=None,404 verify=None,304- cert=None):405+ cert=None,406+ json=None):407 """Constructs a :class:`Request <Request>`, prepares it and sends it.408 Returns :class:`Response <Response>` object.409 410 :param method: method for the new :class:`Request` object.411 :param url: URL for the new :class:`Request` object.412 :param params: (optional) Dictionary or bytes to be sent in the query413 string for the :class:`Request`.312- :param data: (optional) Dictionary or bytes to send in the body of the414+ :param data: (optional) Dictionary, bytes, or file-like object to send415+ in the body of the :class:`Request`.416+ :param json: (optional) json to send in the body of the417 :class:`Request`.418 :param headers: (optional) Dictionary of HTTP Headers to send with the419 :class:`Request`.420 :param cookies: (optional) Dict or CookieJar object to send with the421 :class:`Request`.318- :param files: (optional) Dictionary of 'filename': file-like-objects422+ :param files: (optional) Dictionary of ``'filename': file-like-objects``423 for multipart encoding upload.424 :param auth: (optional) Auth tuple or callable to enable425 Basic/Digest/Custom HTTP Auth.322- :param timeout: (optional) Float describing the timeout of the323- request.324- :param allow_redirects: (optional) Boolean. Set to True by default.325- :param proxies: (optional) Dictionary mapping protocol to the URL of326- the proxy.426+ :param timeout: (optional) How long to wait for the server to send427+ data before giving up, as a float, or a :ref:`(connect timeout,428+ read timeout) <timeouts>` tuple.429+ :type timeout: float or tuple430+ :param allow_redirects: (optional) Set to True by default.431+ :type allow_redirects: bool432+ :param proxies: (optional) Dictionary mapping protocol or protocol and433+ hostname to the URL of the proxy.434 :param stream: (optional) whether to immediately download the response435 content. Defaults to ``False``.329- :param verify: (optional) if ``True``, the SSL cert will be verified.330- A CA_BUNDLE path can also be provided.436+ :param verify: (optional) whether the SSL cert will be verified.437+ A CA_BUNDLE path can also be provided. Defaults to ``True``.438 :param cert: (optional) if String, path to ssl client cert file (.pem).439 If Tuple, ('cert', 'key') pair.440 """334-335- method = builtin_str(method)336-441 # Create the Request.442 req = Request(443 method = method.upper(),444 url = url,445 headers = headers,446 files = files,447 data = data or {},448+ json = json,449 params = params or {},450 auth = auth,451 cookies = cookies,452 hooks = hooks,1 unmodified line454 prep = self.prepare_request(req)455 456 proxies = proxies or {}457 353- # Gather clues from the surrounding environment.354- if self.trust_env:355- # Set environment's proxies.356- env_proxies = get_environ_proxies(url) or {}357- for (k, v) in env_proxies.items():358- proxies.setdefault(k, v)458+ settings = self.merge_environment_settings(459+ prep.url, proxies, stream, verify, cert460+ )461 360- # Look for configuration.361- if not verify and verify is not False:362- verify = os.environ.get('REQUESTS_CA_BUNDLE')363-364- # Curl compatibility.365- if not verify and verify is not False:366- verify = os.environ.get('CURL_CA_BUNDLE')367-368- # Merge all the kwargs.369- proxies = merge_setting(proxies, self.proxies)370- stream = merge_setting(stream, self.stream)371- verify = merge_setting(verify, self.verify)372- cert = merge_setting(cert, self.cert)373-462 # Send the request.463 send_kwargs = {376- 'stream': stream,464 'timeout': timeout,378- 'verify': verify,379- 'cert': cert,380- 'proxies': proxies,465 'allow_redirects': allow_redirects,466 }467+ send_kwargs.update(settings)468 resp = self.send(prep, **send_kwargs)469 470 return resp471 26 unmodified lines498 499 kwargs.setdefault('allow_redirects', False)500 return self.request('HEAD', url, **kwargs)501 417- def post(self, url, data=None, **kwargs):502+ def post(self, url, data=None, json=None, **kwargs):503 """Sends a POST request. Returns :class:`Response` object.504 505 :param url: URL for the new :class:`Request` object.506 :param data: (optional) Dictionary, bytes, or file-like object to send in the body of the :class:`Request`.507+ :param json: (optional) json to send in the body of the :class:`Request`.508 :param \*\*kwargs: Optional arguments that ``request`` takes.509 """510 425- return self.request('POST', url, data=data, **kwargs)511+ return self.request('POST', url, data=data, json=json, **kwargs)512 513 def put(self, url, data=None, **kwargs):514 """Sends a PUT request. Returns :class:`Response` object.515 36 unmodified lines552 # Guard against that specific failure case.553 if not isinstance(request, PreparedRequest):554 raise ValueError('You can only send PreparedRequests.')555 470- # Set up variables needed for resolve_redirects and dispatching of471- # hooks556+ checked_urls = set()557+ while request.url in self.redirect_cache:558+ checked_urls.add(request.url)559+ new_url = self.redirect_cache.get(request.url)560+ if new_url in checked_urls:561+ break562+ request.url = new_url563+564+ # Set up variables needed for resolve_redirects and dispatching of hooks565 allow_redirects = kwargs.pop('allow_redirects', True)566 stream = kwargs.get('stream')474- timeout = kwargs.get('timeout')475- verify = kwargs.get('verify')476- cert = kwargs.get('cert')477- proxies = kwargs.get('proxies')567 hooks = request.hooks568 569 # Get the appropriate adapter to use570 adapter = self.get_adapter(url=request.url)571 572 # Start time (approximately) of the request573 start = datetime.utcnow()574+575 # Send the request576 r = adapter.send(request, **kwargs)577+578 # Total elapsed time of the request (approximately)579 r.elapsed = datetime.utcnow() - start580 581 # Response manipulation hooks582 r = dispatch_hook('response', hooks, r, **kwargs)583 584 # Persist cookies585 if r.history:586+587 # If the hooks create history then we want those cookies too588 for resp in r.history:589 extract_cookies_to_jar(self.cookies, resp.request, resp.raw)590+591 extract_cookies_to_jar(self.cookies, request, r.raw)592 593 # Redirect resolving generator.501- gen = self.resolve_redirects(r, request, stream=stream,502- timeout=timeout, verify=verify, cert=cert,503- proxies=proxies)594+ gen = self.resolve_redirects(r, request, **kwargs)595 596 # Resolve redirects if allowed.597 history = [resp for resp in gen] if allow_redirects else []598 2 unmodified lines601 # Insert the first (original) request at the start602 history.insert(0, r)603 # Get the last request made604 r = history.pop()514- r.history = tuple(history)605+ r.history = history606 607+ if not stream:608+ r.content609+610 return r611 612+ def merge_environment_settings(self, url, proxies, stream, verify, cert):613+ """Check the environment and merge it with some settings."""614+ # Gather clues from the surrounding environment.615+ if self.trust_env:616+ # Set environment's proxies.617+ env_proxies = get_environ_proxies(url) or {}618+ for (k, v) in env_proxies.items():619+ proxies.setdefault(k, v)620+621+ # Look for requests environment configuration and be compatible622+ # with cURL.623+ if verify is True or verify is None:624+ verify = (os.environ.get('REQUESTS_CA_BUNDLE') or625+ os.environ.get('CURL_CA_BUNDLE'))626+627+ # Merge all the kwargs.628+ proxies = merge_setting(proxies, self.proxies)629+ stream = merge_setting(stream, self.stream)630+ verify = merge_setting(verify, self.verify)631+ cert = merge_setting(cert, self.cert)632+633+ return {'verify': verify, 'proxies': proxies, 'stream': stream,634+ 'cert': cert}635+636 def get_adapter(self, url):519- """Returns the appropriate connnection adapter for the given URL."""637+ """Returns the appropriate connection adapter for the given URL."""638 for (prefix, adapter) in self.adapters.items():639 640 if url.lower().startswith(prefix):641 return adapter9 unmodified lines651 def mount(self, prefix, adapter):652 """Registers a connection adapter to a prefix.653 654 Adapters are sorted in descending order by key length."""655+656 self.adapters[prefix] = adapter657 keys_to_move = [k for k in self.adapters if len(k) < len(prefix)]658+659 for key in keys_to_move:660 self.adapters[key] = self.adapters.pop(key)661 662 def __getstate__(self):543- return dict((attr, getattr(self, attr, None)) for attr in self.__attrs__)663+ state = dict((attr, getattr(self, attr, None)) for attr in self.__attrs__)664+ state['redirect_cache'] = dict(self.redirect_cache)665+ return state666 667 def __setstate__(self, state):668+ redirect_cache = state.pop('redirect_cache', {})669 for attr, value in state.items():670 setattr(self, attr, value)671 672+ self.redirect_cache = RecentlyUsedContainer(REDIRECT_CACHE_SIZE)673+ for redirect, to in redirect_cache.items():674+ self.redirect_cache[redirect] = to675 676+677 def session():678 """Returns a :class:`Session` for context-management."""679 680 return Session()modified:requests/status_codes.py+4 added-2 removed
28 unmodified lines29 304: ('not_modified',),30 305: ('use_proxy',),31 306: ('switch_proxy',),32 307: ('temporary_redirect', 'temporary_moved', 'temporary'),33- 308: ('resume_incomplete', 'resume'),33+ 308: ('permanent_redirect',34+ 'resume_incomplete', 'resume',), # These 2 to be removed in 3.035 36 # Client Error.37 400: ('bad_request', 'bad'),38 401: ('unauthorized',),38 unmodified lines77 506: ('variant_also_negotiates',),78 507: ('insufficient_storage',),79 509: ('bandwidth_limit_exceeded', 'bandwidth'),80 510: ('not_extended',),81+ 511: ('network_authentication_required', 'network_auth', 'network_authentication'),82 }83 84 codes = LookupDict(name='status_codes')85 84-for (code, titles) in list(_codes.items()):86+for code, titles in _codes.items():87 for title in titles:88 setattr(codes, title, code)89 if not title.startswith('\\'):90 setattr(codes, title.upper(), code)modified:requests/structures.py+2 added-26 removed
6 unmodified lines7 Data structures that power Requests.8 9 """10 11-import os11 import collections13-from itertools import islice12 13 16-class IteratorProxy(object):17- """docstring for IteratorProxy"""18- def __init__(self, i):19- self.i = i20- # self.i = chain.from_iterable(i)21-22- def __iter__(self):23- return self.i24-25- def __len__(self):26- if hasattr(self.i, '__len__'):27- return len(self.i)28- if hasattr(self.i, 'len'):29- return self.i.len30- if hasattr(self.i, 'fileno'):31- return os.fstat(self.i.fileno()).st_size32-33- def read(self, n):34- return "".join(islice(self.i, None, n))35-36-14 class CaseInsensitiveDict(collections.MutableMapping):15 """16 A case-insensitive ``dict``-like object.17 4 unmodified lines22 All keys are expected to be strings. The structure remembers the23 case of the last key to be set, and ``iter(instance)``,24 ``keys()``, ``items()``, ``iterkeys()``, and ``iteritems()``25 will contain case-sensitive keys. However, querying and contains49- testing is case insensitive:26+ testing is case insensitive::27 28 cid = CaseInsensitiveDict()29 cid['Accept'] = 'application/json'30 cid['aCCEPT'] == 'application/json' # True51 unmodified lines82 def copy(self):83 return CaseInsensitiveDict(self._store.values())84 85 def __repr__(self):109- return '%s(%r)' % (self.__class__.__name__, dict(self.items()))86+ return str(dict(self.items()))87 111-88 class LookupDict(dict):89 """Dictionary lookup object."""90 91 def __init__(self, name=None):13 unmodified linesmodified:requests/utils.py+130 added-74 removed
17 unmodified lines18 import re19 import sys20 import socket21 import struct22+import warnings23 24 from . import __version__25 from . import certs26 from .compat import parse_http_list as _parse_list_header27 from .compat import (quote, urlparse, bytes, str, OrderedDict, unquote, is_py2,27- builtin_str, getproxies, proxy_bypass)28+ builtin_str, getproxies, proxy_bypass, urlunparse,29+ basestring)30 from .cookies import RequestsCookieJar, cookiejar_from_dict31 from .structures import CaseInsensitiveDict30-from .exceptions import MissingSchema, InvalidURL32+from .exceptions import InvalidURL, FileModeWarning33 34 _hush_pyflakes = (RequestsCookieJar,)35 36 NETRC_FILES = ('.netrc', '_netrc')10 unmodified lines47 return d48 49 50 def super_len(o):51+ total_length = 052+ current_position = 053+54 if hasattr(o, '__len__'):50- return len(o)55+ total_length = len(o)56 52- if hasattr(o, 'len'):53- return o.len57+ elif hasattr(o, 'len'):58+ total_length = o.len59 60+ elif hasattr(o, 'getvalue'):61+ # e.g. BytesIO, cStringIO.StringIO62+ total_length = len(o.getvalue())63+55- if hasattr(o, 'fileno'):64+ elif hasattr(o, 'fileno'):65 try:66 fileno = o.fileno()67 except io.UnsupportedOperation:68 pass69 else:61- return os.fstat(fileno).st_size70+ total_length = os.fstat(fileno).st_size71 63- if hasattr(o, 'getvalue'):64- # e.g. BytesIO, cStringIO.StringI65- return len(o.getvalue())72+ # Having used fstat to determine the file length, we need to73+ # confirm that this file was opened up in binary mode.74+ if 'b' not in o.mode:75+ warnings.warn((76+ "Requests has determined the content-length for this "77+ "request using the binary size of the file: however, the "78+ "file has been opened in text mode (i.e. without the 'b' "79+ "flag in the mode). This may lead to an incorrect "80+ "content-length. In Requests 3.0, support will be removed "81+ "for files in text mode."),82+ FileModeWarning83+ )84 85+ if hasattr(o, 'tell'):86+ current_position = o.tell()87 88+ return max(0, total_length - current_position)89+90+68-def get_netrc_auth(url):91+def get_netrc_auth(url, raise_errors=False):92 """Returns the Requests tuple auth for a given url from netrc."""93 94 try:95 from netrc import netrc, NetrcParseError29 unmodified lines125 login_i = (0 if _netrc[0] else 1)126 return (_netrc[login_i], _netrc[2])127 except (NetrcParseError, IOError):128 # If there was a parsing error or a permissions issue reading the file,106- # we'll just skip netrc auth107- pass129+ # we'll just skip netrc auth unless explicitly asked to raise errors.130+ if raise_errors:131+ raise132 133 # AppEngine hackiness.134 except (ImportError, AttributeError):135 pass1 unmodified line137 138 def guess_filename(obj):139 """Tries to guess the filename of the given object."""140 name = getattr(obj, 'name', None)117- if name and name[0] != '<' and name[-1] != '>':141+ if (name and isinstance(name, basestring) and name[0] != '<' and142+ name[-1] != '>'):143 return os.path.basename(name)144 145 146 def from_key_val_list(value):164 unmodified lines311 """Returns encodings from given content string.312 313 :param content: bytestring to extract encodings from.314 """315+ warnings.warn((316+ 'In requests 3.0, get_encodings_from_content will be removed. For '317+ 'more information, please see the discussion on issue #2266. (This'318+ ' warning should only appear once.)'),319+ DeprecationWarning)320 321 charset_re = re.compile(r'<meta.*?charset=["\']*(.+?)["\'>]', flags=re.I)322 pragma_re = re.compile(r'<meta.*?content=["\']*;?charset=(.+?)["\'>]', flags=re.I)323 xml_re = re.compile(r'^<\?xml.*?encoding=["\']*(.+?)["\'>]')56 unmodified lines380 381 Tried:382 383 1. charset from content-type384+ 2. fall back and replace all unicode characters385 355- 2. every encodings from ``<meta ... charset=XXX>``356-357- 3. fall back and replace all unicode characters358-386 """387+ warnings.warn((388+ 'In requests 3.0, get_unicode_from_response will be removed. For '389+ 'more information, please see the discussion on issue #2266. (This'390+ ' warning should only appear once.)'),391+ DeprecationWarning)392 393 tried_encodings = []394 395 # Try charset from content-type45 unmodified lines441 442 This function passes the given URI through an unquote/quote cycle to443 ensure that it is fully and consistently quoted.444 """445+ safe_with_percent = "!#$%&'()*+,/:;=?@[]~"446+ safe_without_percent = "!#$&'()*+,/:;=?@[]~"447+ try:413- # Unquote only the unreserved characters414- # Then quote only illegal characters (do not quote reserved, unreserved,415- # or '%')416- return quote(unquote_unreserved(uri), safe="!#$%&'()*+,/:;=?@[]~")448+ # Unquote only the unreserved characters449+ # Then quote only illegal characters (do not quote reserved,450+ # unreserved, or '%')451+ return quote(unquote_unreserved(uri), safe=safe_with_percent)452+ except InvalidURL:453+ # We couldn't unquote the given URI, so let's try quoting it, but454+ # there may be unquoted '%'s in the URI. We need to make sure they're455+ # properly quoted so they do not cause issues elsewhere.456+ return quote(uri, safe=safe_without_percent)457 458 459 def address_in_network(ip, net):460 """44 unmodified lines505 return False506 return True507 508 469-def get_environ_proxies(url):470- """Return a dict of environment proxies."""471-509+def should_bypass_proxies(url):510+ """511+ Returns whether we should bypass proxies or not.512+ """513 get_proxy = lambda k: os.environ.get(k) or os.environ.get(k.upper())514 515 # First check whether no_proxy is defined. If it is, check that the URL516 # we're getting isn't in the no_proxy list.2 unmodified lines519 520 if no_proxy:521 # We need to check whether we match here. We need to see if we match522 # the end of the netloc, both with and without the port.482- no_proxy = no_proxy.replace(' ', '').split(',')523+ no_proxy = (524+ host for host in no_proxy.replace(' ', '').split(',') if host525+ )526 527 ip = netloc.split(':')[0]528 if is_ipv4_address(ip):529 for proxy_ip in no_proxy:530 if is_valid_cidr(proxy_ip):531 if address_in_network(ip, proxy_ip):489- return {}532+ return True533 else:534 for host in no_proxy:535 if netloc.endswith(host) or netloc.split(':')[0].endswith(host):536 # The URL does match something in no_proxy, so we don't want537 # to apply the proxies on this URL.495- return {}538+ return True539 540 # If the system proxy settings indicate that this URL should be bypassed,541 # don't proxy.542 # The proxy_bypass function is incredibly buggy on OS X in early versions5 unmodified lines548 except (TypeError, socket.gaierror):549 bypass = False550 551 if bypass:552+ return True553+554+ return False555+556+def get_environ_proxies(url):557+ """Return a dict of environment proxies."""558+ if should_bypass_proxies(url):559 return {}560+ else:561+ return getproxies()562 511- # If we get here, we either didn't have no_proxy set or we're not going512- # anywhere that no_proxy applies to, and the system settings don't require513- # bypassing the proxy for the current URL.514- return getproxies()563+def select_proxy(url, proxies):564+ """Select a proxy for the url, if applicable.565 566+ :param url: The url being for the request567+ :param proxies: A dictionary of schemes or schemes and hosts to proxy URLs568+ """569+ proxies = proxies or {}570+ urlparts = urlparse(url)571+ proxy = proxies.get(urlparts.scheme+'://'+urlparts.hostname)572+ if proxy is None:573+ proxy = proxies.get(urlparts.scheme)574+ return proxy575 576 def default_user_agent(name="python-requests"):577 """Return a string representing the default user agent."""519- _implementation = platform.python_implementation()578+ return '%s/%s' % (name, __version__)579 521- if _implementation == 'CPython':522- _implementation_version = platform.python_version()523- elif _implementation == 'PyPy':524- _implementation_version = '%s.%s.%s' % (sys.pypy_version_info.major,525- sys.pypy_version_info.minor,526- sys.pypy_version_info.micro)527- if sys.pypy_version_info.releaselevel != 'final':528- _implementation_version = ''.join([_implementation_version, sys.pypy_version_info.releaselevel])529- elif _implementation == 'Jython':530- _implementation_version = platform.python_version() # Complete Guess531- elif _implementation == 'IronPython':532- _implementation_version = platform.python_version() # Complete Guess533- else:534- _implementation_version = 'Unknown'580 536- try:537- p_system = platform.system()538- p_release = platform.release()539- except IOError:540- p_system = 'Unknown'541- p_release = 'Unknown'542-543- return " ".join(['%s/%s' % (name, __version__),544- '%s/%s' % (_implementation, _implementation_version),545- '%s/%s' % (p_system, p_release)])546-547-581 def default_headers():582 return CaseInsensitiveDict({583 'User-Agent': default_user_agent(),551- 'Accept-Encoding': ', '.join(('gzip', 'deflate', 'compress')),552- 'Accept': '*/*'584+ 'Accept-Encoding': ', '.join(('gzip', 'deflate')),585+ 'Accept': '*/*',586+ 'Connection': 'keep-alive',587 })588 589 590 def parse_header_links(value):6 unmodified lines597 links = []598 599 replace_chars = " '\""600 567- for val in value.split(","):601+ for val in re.split(", *<", value):602 try:603 url, params = val.split(";", 1)604 except ValueError:605 url, params = val, ''49 unmodified lines655 # Did not detect a valid UTF-32 ascii-range character656 return None657 658 625-def except_on_missing_scheme(url):626- """Given a URL, raise a MissingSchema exception if the scheme is missing.627- """628- scheme, netloc, path, params, query, fragment = urlparse(url)659+def prepend_scheme_if_needed(url, new_scheme):660+ '''Given a URL that may or may not have a scheme, prepend the given scheme.661+ Does not replace a present scheme with the one provided as an argument.'''662+ scheme, netloc, path, params, query, fragment = urlparse(url, new_scheme)663 630- if not scheme:631- raise MissingSchema('Proxy URLs must have explicit schemes.')664+ # urlparse is a finicky beast, and sometimes decides that there isn't a665+ # netloc present. Assume that it's being over-cautious, and switch netloc666+ # and path if urlparse decided there was no netloc.667+ if not netloc:668+ netloc, path = path, netloc669 670+ return urlunparse((scheme, netloc, path, params, query, fragment))671 672+673 def get_auth_from_url(url):674 """Given a url with authentication components, extract them into a tuple of675 username,password."""637- if url:638- url = unquote(url)639- parsed = urlparse(url)676+ parsed = urlparse(url)640- return (parsed.username, parsed.password)641- else:642- return ('', '')677 678+ try:679+ auth = (unquote(parsed.username), unquote(parsed.password))680+ except (AttributeError, TypeError):681+ auth = ('', '')682 683+ return auth684+685+686 def to_native_string(string, encoding='ascii'):687 """688 Given a string object, regardless of type, returns a representation of that689 string in the native string type, encoding and decoding where necessary.9 unmodified lines699 else:700 out = string.decode(encoding)701 702 return out703+704+705+def urldefragauth(url):706+ """707+ Given a url remove the fragment and the authentication part708+ """709+ scheme, netloc, path, params, query, fragment = urlparse(url)710+711+ # see func:`prepend_scheme_if_needed`712+ if not netloc:713+ netloc, path = path, netloc714+715+ netloc = netloc.rsplit('@', 1)[-1]716+717+ return urlunparse((scheme, netloc, path, params, query, ''))modified:.gitignore+1 added
19 unmodified lines20 21 t.py22 23 t2.py24+distmodified:AUTHORS.rst+51 added-35 removed
1 Requests is written and maintained by Kenneth Reitz and2 various contributors:3 4-Development Lead5-````````````````4+Keepers of the Three Crystals5+`````````````````````````````6 7-- Kenneth Reitz <me@kennethreitz.com>7+- Kenneth Reitz <me@kennethreitz.org> `@kennethreitz <https://github.com/kennethreitz>`_, Keeper of the Master Crystal.8+- Cory Benfield <cory@lukasa.co.uk> `@lukasa <https://github.com/lukasa>`_9+- Ian Cordasco <graffatcolmingov@gmail.com> `@sigmavirus24 <https://github.com/sigmavirus24>`_10 11 12+13 Urllib314 ```````15 16 - Andrey Petrov <andrey.petrov@shazow.net>24 unmodified lines41 - Rubén Abad42 - Peter Manser43 - Jeremy Selier44 - Jens Diemer42-- Alex <@alopatin>45+- Alex (`@alopatin <https://github.com/alopatin>`_)46 - Tom Hogans <tomhsx@gmail.com>47 - Armin Ronacher48 - Shrikant Sharat Kandula49 - Mikko Ohtamaa28 unmodified lines78 - Frank Kumro Jr79 - Chase Sterling80 - Marty Alchin81 - takluyver79-- Ben Toews (mastahyeti)82+- Ben Toews (`@mastahyeti <https://github.com/mastahyeti>`_)83 - David Kemp84 - Brendon Crawford82-- Denis (Telofy)83-- Cory Benfield (Lukasa)85+- Denis (`@Telofy <https://github.com/Telofy>`_)86 - Matt Giuca87 - Adam Tauber88 - Honza Javorek89 - Brendan Maguire <maguire.brendan@gmail.com>8 unmodified lines98 - Michael Newman <newmaniese@gmail.com>99 - Jonty Wareing <jonty@jonty.co.uk>100 - Shivaram Lingamneni101 - Miguel Turner100-- Rohan Jain (crodjer)102+- Rohan Jain (`@crodjer <https://github.com/crodjer>`_)103 - Justin Barber <barber.justin@gmail.com>102-- Roman Haritonov <@reclosedev>104+- Roman Haritonov (`@reclosedev <https://github.com/reclosedev>`_)105 - Josh Imhoff <joshimhoff13@gmail.com>106 - Arup Malakar <amalakar@gmail.com>105-- Danilo Bargen (dbrgn)107+- Danilo Bargen (`@dbrgn <https://github.com/dbrgn>`_)108 - Torsten Landschoff107-- Michael Holler (apotheos)109+- Michael Holler (`@apotheos <https://github.com/apotheos>`_)110 - Timnit Gebru111 - Sarah Gonzalez112 - Victoria Mo113 - Leila Muhtasib114 - Matthias Rahlf <matthias@webding.de>115 - Jakub Roztocil <jakub@roztocil.name>114-- Ian Cordasco <graffatcolmingov@gmail.com> @sigmavirus24116 - Rhys Elsmore116-- André Graf (dergraf)117-- Stephen Zhuang (everbird)117+- André Graf (`@dergraf <https://github.com/dergraf>`_)118+- Stephen Zhuang (`@everbird <https://github.com/everbird>`_)119 - Martijn Pieters120 - Jonatan Heyman120-- David Bonner <dbonner@gmail.com> @rascalking121+- David Bonner <dbonner@gmail.com> (`@rascalking <https://github.com/rascalking>`_)122 - Vinod Chandru123 - Johnny Goodnow <j.goodnow29@gmail.com>124 - Denis Ryzhkov <denisr@denisr.com>124-- Wilfred Hughes <me@wilfred.me.uk> @dontYetKnow125+- Wilfred Hughes <me@wilfred.me.uk>126 - Dmitry Medvinsky <me@dmedvinsky.name>126-- Bryce Boe <bbzbryce@gmail.com> @bboe127-- Colin Dunklau <colin.dunklau@gmail.com> @cdunklau128-- Bob Carroll <bob.carroll@alum.rit.edu> @rcarz129-- Hugo Osvaldo Barrera <hugo@osvaldobarrera.com.ar> @hobarrera130-- Łukasz Langa <lukasz@langa.pl> @llanga127+- Bryce Boe <bbzbryce@gmail.com> (`@bboe <https://github.com/bboe>`_)128+- Colin Dunklau <colin.dunklau@gmail.com> (`@cdunklau <https://github.com/cdunklau>`_)129+- Bob Carroll <bob.carroll@alum.rit.edu> (`@rcarz <https://github.com/rcarz>`_)130+- Hugo Osvaldo Barrera <hugo@osvaldobarrera.com.ar> (`@hobarrera <https://github.com/hobarrera>`_)131+- Łukasz Langa <lukasz@langa.pl>132 - Dave Shawley <daveshawley@gmail.com>132-- James Clarke (jam)133+- James Clarke (`@jam <https://github.com/jam>`_)134 - Kevin Burke <kev@inburke.com>135 - Flavio Curella135-- David Pursehouse <david.pursehouse@gmail.com> @dpursehouse136-- Jon Parise137-- Alexander Karpinsky @homm86138-- Marc Schlaich @schlamar139-- Park Ilsu <daftonshady@gmail.com> @daftshady140-- Matt Spitz @mattspitz141-- Vikram Oberoi @voberoi142-- Can Ibanoglu <can.ibanoglu@gmail.com> @canibanoglu143-- Thomas Weißschuh <thomas@t-8ch.de> @t-8ch144-- Jayson Vantuyl <jayson@aggressive.ly> @kagato136+- David Pursehouse <david.pursehouse@gmail.com> (`@dpursehouse <https://github.com/dpursehouse>`_)137+- Jon Parise (`@jparise <https://github.com/jparise>`_)138+- Alexander Karpinsky (`@homm86 <https://twitter.com/homm86>`_)139+- Marc Schlaich (`@schlamar <https://github.com/schlamar>`_)140+- Park Ilsu <daftonshady@gmail.com> (`@daftshady <https://github.com/daftshady>`_)141+- Matt Spitz (`@mattspitz <https://github.com/mattspitz>`_)142+- Vikram Oberoi (`@voberoi <https://github.com/voberoi>`_)143+- Can Ibanoglu <can.ibanoglu@gmail.com> (`@canibanoglu <https://github.com/canibanoglu>`_)144+- Thomas Weißschuh <thomas@t-8ch.de> (`@t-8ch <https://github.com/t-8ch>`_)145+- Jayson Vantuyl <jayson@aggressive.ly>146 - Pengfei.X <pengphy@gmail.com>147 - Kamil Madac <kamil.madac@gmail.com>147-- Michael Becker <mike@beckerfuffle.com> @beckerfuffle148-- Erik Wickstrom <erik@erikwickstrom.com> @erikwickstrom149-- Константин Подшумок @podshumok148+- Michael Becker <mike@beckerfuffle.com> (`@beckerfuffle <https://twitter.com/beckerfuffle>`_)149+- Erik Wickstrom <erik@erikwickstrom.com> (`@erikwickstrom <https://github.com/erikwickstrom>`_)150+- Константин Подшумок (`@podshumok <https://github.com/podshumok>`_)151+- Ben Bass (`@codedstructure <https://github.com/codedstructure>`_)152+- Jonathan Wong <evolutionace@gmail.com> (`@ContinuousFunction <https://github.com/ContinuousFunction>`_)153+- Martin Jul (`@mjul <https://github.com/mjul>`_)154+- Joe Alcorn (`@buttscicles <https://github.com/buttscicles>`_)155+- Syed Suhail Ahmed <ssuhail.ahmed93@gmail.com> (`@syedsuhail <https://github.com/syedsuhail>`_)156+- Scott Sadler (`@ssadler <https://github.com/ssadler>`_)157+- Arthur Darcet (`@arthurdarcet <https://github.com/arthurdarcet>`_)158+- Ulrich Petri (`@ulope <https://github.com/ulope>`_)159+- Muhammad Yasoob Ullah Khalid <yasoob.khld@gmail.com> (`@yasoob <https://github.com/yasoob>`_)160+- Paul van der Linden (`@pvanderlinden <https://github.com/pvanderlinden>`_)161+- Colin Dickson (`@colindickson <https://github.com/colindickson>`_)162+- Smiley Barry (`@smiley <https://github.com/smiley>`_)163+- Shagun Sodhani (`@shagunsodhani <https://github.com/shagunsodhani>`_)164+- Robin Linderborg (`@vienno <https://github.com/vienno>`_)165+- Brian Samek(`@bsamek <https://github.com/bsamek`_)added:CONTRIBUTING.md+57 added
1+# Contribution Guidelines2+3+Before opening any issues or proposing any pull requests, please do the4+following:5+6+1. Read our [Contributor's Guide](http://docs.python-requests.org/en/latest/dev/contributing/).7+2. Understand our [development philosophy](http://docs.python-requests.org/en/latest/dev/philosophy/).8+9+To get the greatest chance of helpful responses, please also observe the10+following additional notes.11+12+## Questions13+14+The GitHub issue tracker is for *bug reports* and *feature requests*. Please do15+not use it to ask questions about how to use Requests. These questions should16+instead be directed to [Stack Overflow](https://stackoverflow.com/). Make sure17+that your question is tagged with the `python-requests` tag when asking it on18+Stack Overflow, to ensure that it is answered promptly and accurately.19+20+## Good Bug Reports21+22+Please be aware of the following things when filing bug reports:23+24+1. Avoid raising duplicate issues. *Please* use the GitHub issue search feature25+ to check whether your bug report or feature request has been mentioned in26+ the past. Duplicate bug reports and feature requests are a huge maintenance27+ burden on the limited resources of the project. If it is clear from your28+ report that you would have struggled to find the original, that's ok, but29+ if searching for a selection of words in your issue title would have found30+ the duplicate then the issue will likely be closed extremely abruptly.31+2. When filing bug reports about exceptions or tracebacks, please include the32+ *complete* traceback. Partial tracebacks, or just the exception text, are33+ not helpful. Issues that do not contain complete tracebacks may be closed34+ without warning.35+3. Make sure you provide a suitable amount of information to work with. This36+ means you should provide:37+38+ - Guidance on **how to reproduce the issue**. Ideally, this should be a39+ *small* code sample that can be run immediately by the maintainers.40+ Failing that, let us know what you're doing, how often it happens, what41+ environment you're using, etc. Be thorough: it prevents us needing to ask42+ further questions.43+ - Tell us **what you expected to happen**. When we run your example code,44+ what are we expecting to happen? What does "success" look like for your45+ code?46+ - Tell us **what actually happens**. It's not helpful for you to say "it47+ doesn't work" or "it fails". Tell us *how* it fails: do you get an48+ exception? A hang? A non-200 status code? How was the actual result49+ different from your expected result?50+ - Tell us **what version of Requests you're using**, and51+ **how you installed it**. Different versions of Requests behave52+ differently and have different bugs, and some distributors of Requests53+ ship patches on top of the code we supply.54+55+ If you do not provide all of these things, it will take us much longer to56+ fix your problem. If we ask you to clarify these and you never respond, we57+ will close your issue without fixing it.modified:HISTORY.rst+361 added-9 removed
1 unmodified line2 3 Release History4 ---------------5 6+2.9.0 (2015-12-15)7+++++++++++++++++++8+9+**Minor Improvements** (Backwards compatible)10+11+- The ``verify`` keyword argument now supports being passed a path to a12+ directory of CA certificates, not just a single-file bundle.13+- Warnings are now emitted when sending files opened in text mode.14+- Added the 511 Network Authentication Required status code to the status code15+ registry.16+17+**Bugfixes**18+19+- For file-like objects that are not seeked to the very beginning, we now20+ send the content length for the number of bytes we will actually read, rather21+ than the total size of the file, allowing partial file uploads.22+- When uploading file-like objects, if they are empty or have no obvious23+ content length we set ``Transfer-Encoding: chunked`` rather than24+ ``Content-Length: 0``.25+- We correctly receive the response in buffered mode when uploading chunked26+ bodies.27+- We now handle being passed a query string as a bytestring on Python 3, by28+ decoding it as UTF-8.29+- Sessions are now closed in all cases (exceptional and not) when using the30+ functional API rather than leaking and waiting for the garbage collector to31+ clean them up.32+- Correctly handle digest auth headers with a malformed ``qop`` directive that33+ contains no token, by treating it the same as if no ``qop`` directive was34+ provided at all.35+- Minor performance improvements when removing specific cookies by name.36+37+2.8.1 (2015-10-13)38+++++++++++++++++++39+40+**Bugfixes**41+42+- Update certificate bundle to match ``certifi`` 2015.9.6.2's weak certificate43+ bundle.44+- Fix a bug in 2.8.0 where requests would raise ``ConnectTimeout`` instead of45+ ``ConnectionError``46+- When using the PreparedRequest flow, requests will now correctly respect the47+ ``json`` parameter. Broken in 2.8.0.48+- When using the PreparedRequest flow, requests will now correctly handle a49+ Unicode-string method name on Python 2. Broken in 2.8.0.50+51+2.8.0 (2015-10-05)52+++++++++++++++++++53+54+**Minor Improvements** (Backwards Compatible)55+56+- Requests now supports per-host proxies. This allows the ``proxies``57+ dictionary to have entries of the form58+ ``{'<scheme>://<hostname>': '<proxy>'}``. Host-specific proxies will be used59+ in preference to the previously-supported scheme-specific ones, but the60+ previous syntax will continue to work.61+- ``Response.raise_for_status`` now prints the URL that failed as part of the62+ exception message.63+- ``requests.utils.get_netrc_auth`` now takes an ``raise_errors`` kwarg,64+ defaulting to ``False``. When ``True``, errors parsing ``.netrc`` files cause65+ exceptions to be thrown.66+- Change to bundled projects import logic to make it easier to unbundle67+ requests downstream.68+- Changed the default User-Agent string to avoid leaking data on Linux: now69+ contains only the requests version.70+71+**Bugfixes**72+73+- The ``json`` parameter to ``post()`` and friends will now only be used if74+ neither ``data`` nor ``files`` are present, consistent with the75+ documentation.76+- We now ignore empty fields in the ``NO_PROXY`` environment variable.77+- Fixed problem where ``httplib.BadStatusLine`` would get raised if combining78+ ``stream=True`` with ``contextlib.closing``.79+- Prevented bugs where we would attempt to return the same connection back to80+ the connection pool twice when sending a Chunked body.81+- Miscellaneous minor internal changes.82+- Digest Auth support is now thread safe.83+84+**Updates**85+86+- Updated urllib3 to 1.12.87+88+2.7.0 (2015-05-03)89+++++++++++++++++++90+91+This is the first release that follows our new release process. For more, see92+`our documentation93+<http://docs.python-requests.org/en/latest/community/release-process/>`_.94+95+**Bugfixes**96+97+- Updated urllib3 to 1.10.4, resolving several bugs involving chunked transfer98+ encoding and response framing.99+100+2.6.2 (2015-04-23)101+++++++++++++++++++102+103+**Bugfixes**104+105+- Fix regression where compressed data that was sent as chunked data was not106+ properly decompressed. (#2561)107+108+2.6.1 (2015-04-22)109+++++++++++++++++++110+111+**Bugfixes**112+113+- Remove VendorAlias import machinery introduced in v2.5.2.114+115+- Simplify the PreparedRequest.prepare API: We no longer require the user to116+ pass an empty list to the hooks keyword argument. (c.f. #2552)117+118+- Resolve redirects now receives and forwards all of the original arguments to119+ the adapter. (#2503)120+121+- Handle UnicodeDecodeErrors when trying to deal with a unicode URL that122+ cannot be encoded in ASCII. (#2540)123+124+- Populate the parsed path of the URI field when performing Digest125+ Authentication. (#2426)126+127+- Copy a PreparedRequest's CookieJar more reliably when it is not an instance128+ of RequestsCookieJar. (#2527)129+130+2.6.0 (2015-03-14)131+++++++++++++++++++132+133+**Bugfixes**134+135+- CVE-2015-2296: Fix handling of cookies on redirect. Previously a cookie136+ without a host value set would use the hostname for the redirected URL137+ exposing requests users to session fixation attacks and potentially cookie138+ stealing. This was disclosed privately by Matthew Daley of139+ `BugFuzz <https://bugfuzz.com>`_. This affects all versions of requests from140+ v2.1.0 to v2.5.3 (inclusive on both ends).141+142+- Fix error when requests is an ``install_requires`` dependency and ``python143+ setup.py test`` is run. (#2462)144+145+- Fix error when urllib3 is unbundled and requests continues to use the146+ vendored import location.147+148+- Include fixes to ``urllib3``'s header handling.149+150+- Requests' handling of unvendored dependencies is now more restrictive.151+152+**Features and Improvements**153+154+- Support bytearrays when passed as parameters in the ``files`` argument.155+ (#2468)156+157+- Avoid data duplication when creating a request with ``str``, ``bytes``, or158+ ``bytearray`` input to the ``files`` argument.159+160+2.5.3 (2015-02-24)161+++++++++++++++++++162+163+**Bugfixes**164+165+- Revert changes to our vendored certificate bundle. For more context see166+ (#2455, #2456, and http://bugs.python.org/issue23476)167+168+2.5.2 (2015-02-23)169+++++++++++++++++++170+171+**Features and Improvements**172+173+- Add sha256 fingerprint support. (`shazow/urllib3#540`_)174+175+- Improve the performance of headers. (`shazow/urllib3#544`_)176+177+**Bugfixes**178+179+- Copy pip's import machinery. When downstream redistributors remove180+ requests.packages.urllib3 the import machinery will continue to let those181+ same symbols work. Example usage in requests' documentation and 3rd-party182+ libraries relying on the vendored copies of urllib3 will work without having183+ to fallback to the system urllib3.184+185+- Attempt to quote parts of the URL on redirect if unquoting and then quoting186+ fails. (#2356)187+188+- Fix filename type check for multipart form-data uploads. (#2411)189+190+- Properly handle the case where a server issuing digest authentication191+ challenges provides both auth and auth-int qop-values. (#2408)192+193+- Fix a socket leak. (`shazow/urllib3#549`_)194+195+- Fix multiple ``Set-Cookie`` headers properly. (`shazow/urllib3#534`_)196+197+- Disable the built-in hostname verification. (`shazow/urllib3#526`_)198+199+- Fix the behaviour of decoding an exhausted stream. (`shazow/urllib3#535`_)200+201+**Security**202+203+- Pulled in an updated ``cacert.pem``.204+205+- Drop RC4 from the default cipher list. (`shazow/urllib3#551`_)206+207+.. _shazow/urllib3#551: https://github.com/shazow/urllib3/pull/551208+.. _shazow/urllib3#549: https://github.com/shazow/urllib3/pull/549209+.. _shazow/urllib3#544: https://github.com/shazow/urllib3/pull/544210+.. _shazow/urllib3#540: https://github.com/shazow/urllib3/pull/540211+.. _shazow/urllib3#535: https://github.com/shazow/urllib3/pull/535212+.. _shazow/urllib3#534: https://github.com/shazow/urllib3/pull/534213+.. _shazow/urllib3#526: https://github.com/shazow/urllib3/pull/526214+215+2.5.1 (2014-12-23)216+++++++++++++++++++217+218+**Behavioural Changes**219+220+- Only catch HTTPErrors in raise_for_status (#2382)221+222+**Bugfixes**223+224+- Handle LocationParseError from urllib3 (#2344)225+- Handle file-like object filenames that are not strings (#2379)226+- Unbreak HTTPDigestAuth handler. Allow new nonces to be negotiated (#2389)227+228+2.5.0 (2014-12-01)229+++++++++++++++++++230+231+**Improvements**232+233+- Allow usage of urllib3's Retry object with HTTPAdapters (#2216)234+- The ``iter_lines`` method on a response now accepts a delimiter with which235+ to split the content (#2295)236+237+**Behavioural Changes**238+239+- Add deprecation warnings to functions in requests.utils that will be removed240+ in 3.0 (#2309)241+- Sessions used by the functional API are always closed (#2326)242+- Restrict requests to HTTP/1.1 and HTTP/1.0 (stop accepting HTTP/0.9) (#2323)243+244+**Bugfixes**245+246+- Only parse the URL once (#2353)247+- Allow Content-Length header to always be overridden (#2332)248+- Properly handle files in HTTPDigestAuth (#2333)249+- Cap redirect_cache size to prevent memory abuse (#2299)250+- Fix HTTPDigestAuth handling of redirects after authenticating successfully251+ (#2253)252+- Fix crash with custom method parameter to Session.request (#2317)253+- Fix how Link headers are parsed using the regular expression library (#2271)254+255+**Documentation**256+257+- Add more references for interlinking (#2348)258+- Update CSS for theme (#2290)259+- Update width of buttons and sidebar (#2289)260+- Replace references of Gittip with Gratipay (#2282)261+- Add link to changelog in sidebar (#2273)262+263+2.4.3 (2014-10-06)264+++++++++++++++++++265+266+**Bugfixes**267+268+- Unicode URL improvements for Python 2.269+- Re-order JSON param for backwards compat.270+- Automatically defrag authentication schemes from host/pass URIs. (`#2249 <https://github.com/kennethreitz/requests/issues/2249>`_)271+272+273+2.4.2 (2014-10-05)274+++++++++++++++++++275+276+**Improvements**277+278+- FINALLY! Add json parameter for uploads! (`#2258 <https://github.com/kennethreitz/requests/pull/2258>`_)279+- Support for bytestring URLs on Python 3.x (`#2238 <https://github.com/kennethreitz/requests/pull/2238>`_)280+281+**Bugfixes**282+283+- Avoid getting stuck in a loop (`#2244 <https://github.com/kennethreitz/requests/pull/2244>`_)284+- Multiple calls to iter* fail with unhelpful error. (`#2240 <https://github.com/kennethreitz/requests/issues/2240>`_, `#2241 <https://github.com/kennethreitz/requests/issues/2241>`_)285+286+**Documentation**287+288+- Correct redirection introduction (`#2245 <https://github.com/kennethreitz/requests/pull/2245/>`_)289+- Added example of how to send multiple files in one request. (`#2227 <https://github.com/kennethreitz/requests/pull/2227/>`_)290+- Clarify how to pass a custom set of CAs (`#2248 <https://github.com/kennethreitz/requests/pull/2248/>`_)291+292+293+294+2.4.1 (2014-09-09)295+++++++++++++++++++296+297+- Now has a "security" package extras set, ``$ pip install requests[security]``298+- Requests will now use Certifi if it is available.299+- Capture and re-raise urllib3 ProtocolError300+- Bugfix for responses that attempt to redirect to themselves forever (wtf?).301+302+303+2.4.0 (2014-08-29)304+++++++++++++++++++305+306+**Behavioral Changes**307+308+- ``Connection: keep-alive`` header is now sent automatically.309+310+**Improvements**311+312+- Support for connect timeouts! Timeout now accepts a tuple (connect, read) which is used to set individual connect and read timeouts.313+- Allow copying of PreparedRequests without headers/cookies.314+- Updated bundled urllib3 version.315+- Refactored settings loading from environment -- new `Session.merge_environment_settings`.316+- Handle socket errors in iter_content.317+318+319+2.3.0 (2014-05-16)320+++++++++++++++++++321+322+**API Changes**323+324+- New ``Response`` property ``is_redirect``, which is true when the325+ library could have processed this response as a redirection (whether326+ or not it actually did).327+- The ``timeout`` parameter now affects requests with both ``stream=True`` and328+ ``stream=False`` equally.329+- The change in v2.0.0 to mandate explicit proxy schemes has been reverted.330+ Proxy schemes now default to ``http://``.331+- The ``CaseInsensitiveDict`` used for HTTP headers now behaves like a normal332+ dictionary when references as string or viewed in the interpreter.333+334+**Bugfixes**335+336+- No longer expose Authorization or Proxy-Authorization headers on redirect.337+ Fix CVE-2014-1829 and CVE-2014-1830 respectively.338+- Authorization is re-evaluated each redirect.339+- On redirect, pass url as native strings.340+- Fall-back to autodetected encoding for JSON when Unicode detection fails.341+- Headers set to ``None`` on the ``Session`` are now correctly not sent.342+- Correctly honor ``decode_unicode`` even if it wasn't used earlier in the same343+ response.344+- Stop advertising ``compress`` as a supported Content-Encoding.345+- The ``Response.history`` parameter is now always a list.346+- Many, many ``urllib3`` bugfixes.347+348+2.2.1 (2014-01-23)349+++++++++++++++++++350+351+**Bugfixes**352+353+- Fixes incorrect parsing of proxy credentials that contain a literal or encoded '#' character.354+- Assorted urllib3 fixes.355+356 2.2.0 (2014-01-09)357 ++++++++++++++++++358 359 **API Changes**3 unmodified lines363 364 **Bugfixes**365 366 - Avoid many many exceptions from the buggy implementation of ``proxy_bypass`` on OS X in Python 2.6.17-- Avoid crashing when attempting to get authentication credentions from ~/.netrc when running as a user without a home directory.367+- Avoid crashing when attempting to get authentication credentials from ~/.netrc when running as a user without a home directory.368 - Use the correct pool size for pools of connections to proxies.369 - Fix iteration of ``CookieJar`` objects.370 - Ensure that cookies are persisted over redirect.371 - Switch back to using chardet, since it has merged with charade.97 unmodified lines469 470 1.2.1 (2013-05-20)471 ++++++++++++++++++472 473+- 301 and 302 redirects now change the verb to GET for all verbs, not just474+ POST, improving browser compatibility.475 - Python 3.3.2 compatibility476 - Always percent-encode location headers477 - Fix connection adapter matching to be most-specific first478 - new argument to the default connection adapter for passing a block argument76 unmodified lines555 556 - Improved mime-compatible JSON handling557 - Proxy fixes558 - Path hack fixes207-- Case-Insensistive Content-Encoding headers559+- Case-Insensitive Content-Encoding headers560 - Support for CJK parameters in form posts561 562 563 0.14.1 (2012-10-01)27 unmodified lines591 - Support for (key, value) lists everywhere.592 - Digest Authentication improvements.593 - Ensure proxy exclusions work properly.594 - Clearer UnicodeError exceptions.243-- Automatic casting of URLs to tsrings (fURL and such)595+- Automatic casting of URLs to strings (fURL and such)596 - Bugfixes.597 598 0.13.6 (2012-08-06)599 +++++++++++++++++++42 unmodified lines642 0.13.0 (2012-05-29)643 +++++++++++++++++++644 645 - Removal of Requests.async in favor of `grequests <https://github.com/kennethreitz/grequests>`_294-- Allow disabling of cookie persistiance.295-- New implimentation of safe_mode646+- Allow disabling of cookie persistence.647+- New implementation of safe_mode648 - cookies.get now supports default argument649 - Session cookies not saved when Session.request is called with return_response=False650 - Env: no_proxy support.651 - RequestsCookieJar improvements.108 unmodified lines760 +++++++++++++++++++761 762 * ``Response.content`` is now bytes-only. (*Backwards Incompatible*)763 * New ``Response.text`` is unicode-only.412-* If no ``Response.encoding`` is specified and ``chardet`` is available, ``Respoonse.text`` will guess an encoding.764+* If no ``Response.encoding`` is specified and ``chardet`` is available, ``Response.text`` will guess an encoding.765 * Default to ISO-8859-1 (Western) encoding for "text" subtypes.766 * Removal of `decode_unicode`. (*Backwards Incompatible*)767 * New multiple-hooks system.768 * New ``Response.register_hook`` for registering hooks within the pipeline.111 unmodified lines880 881 0.7.5 (2011-11-04)882 ++++++++++++++++++883 532-* Response.content = None if there was an invalid repsonse.884+* Response.content = None if there was an invalid response.885 * Redirection auth handling.886 887 0.7.4 (2011-10-26)888 ++++++++++++++++++78 unmodified lines967 0.6.0 (2011-08-17)968 ++++++++++++++++++969 970 * New callback hook system619-* New persistient sessions object and context manager971+* New persistent sessions object and context manager972 * Transparent Dict-cookie handling973 * Status code reference object974 * Removed Response.cached975 * Added Response.request25 unmodified lines1001 * HTTPBin Test Suite1002 * Redirect Fixes1003 * settings.verbose stream writing1004 * Querystrings for all methods653-* URLErrors (Connection Refused, Timeout, Invalid URLs) are treated as explicity raised1005+* URLErrors (Connection Refused, Timeout, Invalid URLs) are treated as explicitly raised1006 ``r.requests.get('hwe://blah'); r.raise_for_status()``1007 1008 1009 0.4.1 (2011-05-22)104 unmodified linesmodified:LICENSE+1 added-1 removed
1-Copyright 2014 Kenneth Reitz1+Copyright 2015 Kenneth Reitz2 3 Licensed under the Apache License, Version 2.0 (the "License");4 you may not use this file except in compliance with the License.5 You may obtain a copy of the License at8 unmodified linesmodified:Makefile+5 added-9 removed
2 unmodified lines3 init:4 pip install -r requirements.txt5 6 test:7- py.test7+ # This runs all of the tests. To run an individual test, run py.test with8+ # the -k flag, like "py.test -k test_path_is_not_double_encoded"9+ py.test test_requests.py10 11 coverage:12 py.test --verbose --cov-report term --cov=requests test_requests.py13 5 unmodified lines19 20 deps: urllib3 chardet21 22 urllib3:21- rm -fr requests/packages/urllib322- git clone https://github.com/shazow/urllib3.git23- mv urllib3/urllib3 requests/packages/24- rm -fr urllib323+ git clone https://github.com/shazow/urllib3.git && rm -fr requests/packages/urllib3 && mv urllib3/urllib3 requests/packages/ && rm -fr urllib324 25 chardet:27- rm -fr requests/packages/chardet28- git clone https://github.com/chardet/chardet.git29- mv chardet/chardet requests/packages/30- rm -fr chardet26+ git clone https://github.com/chardet/chardet.git && rm -fr requests/packages/chardet && mv chardet/chardet requests/packages/ && rm -fr chardet27 28 publish:29 python setup.py register30 python setup.py sdist upload9 unmodified linesmodified:NOTICE+23 added-64 removed
6 unmodified lines7 8 Copyright 2008-2011 Andrey Petrov and contributors (see CONTRIBUTORS.txt),9 Modifications copyright 2012 Kenneth Reitz.10 11-Permission is hereby granted, free of charge, to any person obtaining a copy of this12-software and associated documentation files (the "Software"), to deal in the Software13-without restriction, including without limitation the rights to use, copy, modify, merge,14-publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons15-to whom the Software is furnished to do so, subject to the following conditions:11+Permission is hereby granted, free of charge, to any person obtaining12+a copy of this software and associated documentation files (the13+"Software"), to deal in the Software without restriction, including14+without limitation the rights to use, copy, modify, merge, publish,15+distribute, sublicense, and/or sell copies of the Software, and to16+permit persons to whom the Software is furnished to do so, subject to17+the following conditions:18 17-The above copyright notice and this permission notice shall be included in all copies or18-substantial portions of the Software.19+The above copyright notice and this permission notice shall be20+included in all copies or substantial portions of the Software.21 20-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,21-INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR22-PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE23-FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR24-OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER25-DEALINGS IN THE SOFTWARE.22+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,23+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF24+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND25+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE26+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION27+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION28+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.29 27-Charade License28-================30+Chardet License31+===============32 33 This library is free software; you can redistribute it and/or34 modify it under the terms of the GNU Lesser General Public35 License as published by the Free Software Foundation; either9 unmodified lines45 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA46 02110-1301 USA47 48 49+CA Bundle License50+=================51 47-Bundle of CA Root Certificates48-==============================49-50-This library is free software; you can redistribute it and/or51-modify it under the terms of the GNU Lesser General Public52-License as published by the Free Software Foundation; either53-version 2.1 of the License, or (at your option) any later version.54-55-This library is distributed in the hope that it will be useful,56-but WITHOUT ANY WARRANTY; without even the implied warranty of57-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU58-Lesser General Public License for more details.59-60-You should have received a copy of the GNU Lesser General Public61-License along with this library; if not, write to the Free Software62-Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA63-02110-130164-65-66-OAuthlib67-========68-69-Copyright (c) 2011 Idan Gazit and contributors70-All rights reserved.71-72-Redistribution and use in source and binary forms, with or without73-modification, are permitted provided that the following conditions are met:74-75- 1. Redistributions of source code must retain the above copyright notice,76- this list of conditions and the following disclaimer.77-78- 2. Redistributions in binary form must reproduce the above copyright79- notice, this list of conditions and the following disclaimer in the80- documentation and/or other materials provided with the distribution.81-82- 3. Neither the name of this project nor the names of its contributors may83- be used to endorse or promote products derived from this software without84- specific prior written permission.85-86-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"87-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE88-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE89-DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE90-FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL91-DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR92-SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER93-CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,94-OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE95-OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.52+This Source Code Form is subject to the terms of the Mozilla Public53+License, v. 2.0. If a copy of the MPL was not distributed with this54+file, You can obtain one at http://mozilla.org/MPL/2.0/.modified:README.rst+7 added-14 removed
1 Requests: HTTP for Humans2 =========================3 4-.. image:: https://badge.fury.io/py/requests.png5- :target: http://badge.fury.io/py/requests4+.. image:: https://img.shields.io/pypi/v/requests.svg5+ :target: https://pypi.python.org/pypi/requests6 7-.. image:: https://pypip.in/d/requests/badge.png8- :target: https://crate.io/packages/requests/7+.. image:: https://img.shields.io/pypi/dm/requests.svg8+ :target: https://pypi.python.org/pypi/requests9 10 11+12+13 Requests is an Apache2 Licensed HTTP library, written in Python, for human14 beings.15 16 Most existing Python modules for sending HTTP requests are extremely3 unmodified lines20 perform the simplest of tasks.21 22 Things shouldn't be this way. Not in Python.23 22-.. code-block:: pycon24+.. code-block:: python25 26 >>> r = requests.get('https://api.github.com', auth=('user', 'pass'))27 >>> r.status_code28 20436 unmodified lines65 .. code-block:: bash66 67 $ pip install requests68 67-Or, if you absolutely must:69 69-.. code-block:: bash70-71- $ easy_install requests72-73-But, you really shouldn't do that.74-75-70 Documentation71 -------------72 73 Documentation is available at http://docs.python-requests.org/.2 unmodified lines76 Contribute77 ----------78 79 #. Check for open issues or open a fresh issue to start a discussion around a feature idea or a bug. There is a `Contributor Friendly`_ tag for issues that should be ideal for people who are not very familiar with the codebase yet.86-#. If you feel uncomfortable or uncertain about an issue or your changes, feel free to email @sigmavirus24 and he will happily help you via email, Skype, remote pairing or whatever you are comfortable with.80 #. Fork `the repository`_ on GitHub to start making your changes to the **master** branch (or branch off of it).81 #. Write a test which shows that the bug was fixed or that the feature works as expected.82 #. Send a pull request and bug the maintainer until it gets merged and published. :) Make sure to add yourself to AUTHORS_.83 3 unmodified linesmodified:requirements.txt+5 added-4 removed
1-py==1.4.122-pytest==2.3.43-pytest-cov==1.64-invoke==0.2.01+py==1.4.302+pytest==2.8.13+pytest-cov==2.1.04+pytest-httpbin==0.0.75+httpbin==0.4.06 wheelmodified:setup.py+21 added-10 removed
1 #!/usr/bin/env python2 3 import os4+import re5 import sys6 6-import requests7+from codecs import open8 9 try:10 from setuptools import setup11 except ImportError:9 unmodified lines21 'requests.packages.chardet',22 'requests.packages.urllib3',23 'requests.packages.urllib3.packages',24 'requests.packages.urllib3.contrib',24- 'requests.packages.urllib3.packages.ssl_match_hostname'25+ 'requests.packages.urllib3.util',26+ 'requests.packages.urllib3.packages.ssl_match_hostname',27 ]28 29 requires = []30 31+version = ''32+with open('requests/__init__.py', 'r') as fd:33+ version = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]',34+ fd.read(), re.MULTILINE).group(1)35+36+if not version:37+ raise RuntimeError('Cannot find version information')38+29-with open('README.rst') as f:39+with open('README.rst', 'r', 'utf-8') as f:40 readme = f.read()31-with open('HISTORY.rst') as f:41+with open('HISTORY.rst', 'r', 'utf-8') as f:42 history = f.read()33-with open('LICENSE') as f:34- license = f.read()43 44 setup(45 name='requests',38- version=requests.__version__,46+ version=version,47 description='Python HTTP for Humans.',48 long_description=readme + '\n\n' + history,49 author='Kenneth Reitz',50 author_email='me@kennethreitz.com',2 unmodified lines53 package_data={'': ['LICENSE', 'NOTICE'], 'requests': ['*.pem']},54 package_dir={'requests': 'requests'},55 include_package_data=True,56 install_requires=requires,49- license=license,57+ license='Apache 2.0',58 zip_safe=False,59 classifiers=(60 'Development Status :: 5 - Production/Stable',61 'Intended Audience :: Developers',62 'Natural Language :: English',63 'License :: OSI Approved :: Apache Software License',64 'Programming Language :: Python',57- 'Programming Language :: Python :: 2.6',65 'Programming Language :: Python :: 2.7',66 'Programming Language :: Python :: 3',67 'Programming Language :: Python :: 3.3',61-68+ 'Programming Language :: Python :: 3.4',69+ 'Programming Language :: Python :: 3.5',70 ),71+ extras_require={72+ 'security': ['pyOpenSSL>=0.13', 'ndg-httpsclient', 'pyasn1'],73+ },74 )modified:test_requests.py+720 added-130 removed
6 unmodified lines7 import json8 import os9 import pickle10 import unittest11+import collections12+import contextlib13 14+import io15 import requests16 import pytest17 from requests.adapters import HTTPAdapter15-from requests.auth import HTTPDigestAuth18+from requests.auth import HTTPDigestAuth, _basic_auth_str19 from requests.compat import (17- Morsel, cookielib, getproxies, str, urljoin, urlparse)20+ Morsel, cookielib, getproxies, str, urljoin, urlparse, is_py3,21+ builtin_str, OrderedDict22+ )23 from requests.cookies import cookiejar_from_dict, morsel_to_cookie19-from requests.exceptions import InvalidURL, MissingSchema24+from requests.exceptions import (ConnectionError, ConnectTimeout,25+ InvalidSchema, InvalidURL, MissingSchema,26+ ReadTimeout, Timeout, RetryError)27+from requests.models import PreparedRequest28 from requests.structures import CaseInsensitiveDict29+from requests.sessions import SessionRedirectMixin30+from requests.models import urlencode31+from requests.hooks import default_hooks32 33 try:34 import StringIO35 except ImportError:36 import io as StringIO37 27-HTTPBIN = os.environ.get('HTTPBIN_URL', 'http://httpbin.org/')28-# Issue #1483: Make sure the URL always has a trailing slash29-HTTPBIN = HTTPBIN.rstrip('/') + '/'38+try:39+ from multiprocessing.pool import ThreadPool40+except ImportError:41+ ThreadPool = None42 43+if is_py3:44+ def u(s):45+ return s46+else:47+ def u(s):48+ return s.decode('unicode-escape')49 32-def httpbin(*suffix):33- """Returns url for HTTPBIN resource."""34- return urljoin(HTTPBIN, '/'.join(suffix))50 51+@pytest.fixture52+def httpbin(httpbin):53+ # Issue #1483: Make sure the URL always has a trailing slash54+ httpbin_url = httpbin.url.rstrip('/') + '/'55 37-class RequestsTestCase(unittest.TestCase):56+ def inner(*suffix):57+ return urljoin(httpbin_url, '/'.join(suffix))58 59+ return inner60+61+62+@pytest.fixture63+def httpsbin_url(httpbin_secure):64+ # Issue #1483: Make sure the URL always has a trailing slash65+ httpbin_url = httpbin_secure.url.rstrip('/') + '/'66+67+ def inner(*suffix):68+ return urljoin(httpbin_url, '/'.join(suffix))69+70+ return inner71+72+73+# Requests to this URL should always fail with a connection timeout (nothing74+# listening on that port)75+TARPIT = "http://10.255.255.1"76+77+class TestRequests(object):78+79 _multiprocess_can_split_ = True80 81 def setUp(self):82 """Create simple data set with headers."""16 unmodified lines99 100 def test_invalid_url(self):101 with pytest.raises(MissingSchema):102 requests.get('hiwpefhipowhefopw')103+ with pytest.raises(InvalidSchema):104+ requests.get('localhost:3128')105+ with pytest.raises(InvalidSchema):106+ requests.get('localhost.localdomain:3128/')107+ with pytest.raises(InvalidSchema):108+ requests.get('10.122.1.1:3128/')109 with pytest.raises(InvalidURL):110 requests.get('http://')111 112 def test_basic_building(self):4 unmodified lines117 pr = req.prepare()118 assert pr.url == req.url119 assert pr.body == 'life=42'120 75- def test_no_content_length(self):121+ def test_no_content_length(self, httpbin):122 get_req = requests.Request('GET', httpbin('get')).prepare()123 assert 'Content-Length' not in get_req.headers124 head_req = requests.Request('HEAD', httpbin('head')).prepare()125 assert 'Content-Length' not in head_req.headers126 127+ def test_override_content_length(self, httpbin):128+ headers = {129+ 'Content-Length': 'not zero'130+ }131+ r = requests.Request('POST', httpbin('post'), headers=headers).prepare()132+ assert 'Content-Length' in r.headers133+ assert r.headers['Content-Length'] == 'not zero'134+135 def test_path_is_not_double_encoded(self):136 request = requests.Request('GET', "http://0.0.0.0/get/test case").prepare()137 138 assert request.path_url == '/get/test%20case'5 unmodified lines144 request = requests.Request('GET',145 "http://example.com/path?key=value#fragment", params={"a": "b"}).prepare()146 assert request.url == "http://example.com/path?key=value&a=b#fragment"147 148+ def test_params_original_order_is_preserved_by_default(self):149+ param_ordered_dict = OrderedDict((('z', 1), ('a', 1), ('k', 1), ('d', 1)))150+ session = requests.Session()151+ request = requests.Request('GET', 'http://example.com/', params=param_ordered_dict)152+ prep = session.prepare_request(request)153+ assert prep.url == 'http://example.com/?z=1&a=1&k=1&d=1'154+155+ def test_params_bytes_are_encoded(self):156+ request = requests.Request('GET', 'http://example.com',157+ params=b'test=foo').prepare()158+ assert request.url == 'http://example.com/?test=foo'159+160+ def test_binary_put(self):161+ request = requests.Request('PUT', 'http://example.com',162+ data=u"ööö".encode("utf-8")).prepare()163+ assert isinstance(request.body, bytes)164+94- def test_mixed_case_scheme_acceptable(self):165+ def test_mixed_case_scheme_acceptable(self, httpbin):166 s = requests.Session()167 s.proxies = getproxies()168 parts = urlparse(httpbin('get'))98- schemes = ['http://', 'HTTP://', 'hTTp://', 'HttP://',99- 'https://', 'HTTPS://', 'hTTps://', 'HttPs://']169+ schemes = ['http://', 'HTTP://', 'hTTp://', 'HttP://']170 for scheme in schemes:171 url = scheme + parts.netloc + parts.path172 r = requests.Request('GET', url)173 r = s.send(r.prepare())174 assert r.status_code == 200, 'failed for scheme {0}'.format(scheme)175 106- def test_HTTP_200_OK_GET_ALTERNATIVE(self):176+ def test_HTTP_200_OK_GET_ALTERNATIVE(self, httpbin):177 r = requests.Request('GET', httpbin('get'))178 s = requests.Session()179 s.proxies = getproxies()180 181 r = s.send(r.prepare())182 183 assert r.status_code == 200184 115- def test_HTTP_302_ALLOW_REDIRECT_GET(self):185+ def test_HTTP_302_ALLOW_REDIRECT_GET(self, httpbin):186 r = requests.get(httpbin('redirect', '1'))187 assert r.status_code == 200188+ assert r.history[0].status_code == 302189+ assert r.history[0].is_redirect190 191 # def test_HTTP_302_ALLOW_REDIRECT_POST(self):192 # r = requests.post(httpbin('status', '302'), data={'some': 'data'})193 # self.assertEqual(r.status_code, 200)194 123- def test_HTTP_200_OK_GET_WITH_PARAMS(self):195+ def test_HTTP_200_OK_GET_WITH_PARAMS(self, httpbin):196 heads = {'User-agent': 'Mozilla/5.0'}197 198 r = requests.get(httpbin('user-agent'), headers=heads)199 200 assert heads['User-agent'] in r.text201 assert r.status_code == 200202 131- def test_HTTP_200_OK_GET_WITH_MIXED_PARAMS(self):203+ def test_HTTP_200_OK_GET_WITH_MIXED_PARAMS(self, httpbin):204 heads = {'User-agent': 'Mozilla/5.0'}205 206 r = requests.get(httpbin('get') + '?test=true', params={'q': 'test'}, headers=heads)207 assert r.status_code == 200208 137- def test_set_cookie_on_301(self):209+ def test_set_cookie_on_301(self, httpbin):210 s = requests.session()211 url = httpbin('cookies/set?foo=bar')140- r = s.get(url)212+ s.get(url)213 assert s.cookies['foo'] == 'bar'214 143- def test_cookie_sent_on_redirect(self):215+ def test_cookie_sent_on_redirect(self, httpbin):216 s = requests.session()217 s.get(httpbin('cookies/set?foo=bar'))218 r = s.get(httpbin('redirect/1')) # redirects to httpbin('get')219 assert 'Cookie' in r.json()['headers']220 149- def test_cookie_removed_on_expire(self):221+ def test_cookie_removed_on_expire(self, httpbin):222 s = requests.session()223 s.get(httpbin('cookies/set?foo=bar'))224 assert s.cookies['foo'] == 'bar'225 s.get(4 unmodified lines230 }231 )232 assert 'foo' not in s.cookies233 162- def test_cookie_quote_wrapped(self):234+ def test_cookie_quote_wrapped(self, httpbin):235 s = requests.session()236 s.get(httpbin('cookies/set?foo="bar:baz"'))237 assert s.cookies['foo'] == '"bar:baz"'238 167- def test_cookie_persists_via_api(self):239+ def test_cookie_persists_via_api(self, httpbin):240 s = requests.session()241 r = s.get(httpbin('redirect/1'), cookies={'foo': 'bar'})242 assert 'foo' in r.request.headers['Cookie']243 assert 'foo' in r.history[0].request.headers['Cookie']244 173- def test_request_cookie_overrides_session_cookie(self):245+ def test_request_cookie_overrides_session_cookie(self, httpbin):246 s = requests.session()247 s.cookies['foo'] = 'bar'248 r = s.get(httpbin('cookies'), cookies={'foo': 'baz'})249 assert r.json()['cookies']['foo'] == 'baz'250 # Session cookie should not be modified251 assert s.cookies['foo'] == 'bar'252 181- def test_request_cookies_not_persisted(self):253+ def test_request_cookies_not_persisted(self, httpbin):254 s = requests.session()255 s.get(httpbin('cookies'), cookies={'foo': 'baz'})256 # Sending a request with cookies should not add cookies to the session257 assert not s.cookies258 187- def test_generic_cookiejar_works(self):259+ def test_generic_cookiejar_works(self, httpbin):260 cj = cookielib.CookieJar()261 cookiejar_from_dict({'foo': 'bar'}, cj)262 s = requests.session()263 s.cookies = cj1 unmodified line265 # Make sure the cookie was sent266 assert r.json()['cookies']['foo'] == 'bar'267 # Make sure the session cj is still the custom one268 assert s.cookies is cj197- 198- def test_param_cookiejar_works(self):269+270+ def test_param_cookiejar_works(self, httpbin):271 cj = cookielib.CookieJar()200- cookiejar_from_dict({'foo' : 'bar'}, cj)272+ cookiejar_from_dict({'foo': 'bar'}, cj)273 s = requests.session()274 r = s.get(httpbin('cookies'), cookies=cj)275 # Make sure the cookie was sent276 assert r.json()['cookies']['foo'] == 'bar'277 206- def test_requests_in_history_are_not_overridden(self):278+ def test_requests_in_history_are_not_overridden(self, httpbin):279 resp = requests.get(httpbin('redirect/3'))280 urls = [r.url for r in resp.history]281 req_urls = [r.request.url for r in resp.history]282 assert urls == req_urls283 212- def test_user_agent_transfers(self):284+ def test_history_is_always_a_list(self, httpbin):285+ """286+ Show that even with redirects, Response.history is always a list.287+ """288+ resp = requests.get(httpbin('get'))289+ assert isinstance(resp.history, list)290+ resp = requests.get(httpbin('redirect/1'))291+ assert isinstance(resp.history, list)292+ assert not isinstance(resp.history, tuple)293 294+ def test_headers_on_session_with_None_are_not_sent(self, httpbin):295+ """Do not send headers in Session.headers with None values."""296+ ses = requests.Session()297+ ses.headers['Accept-Encoding'] = None298+ req = requests.Request('GET', httpbin('get'))299+ prep = ses.prepare_request(req)300+ assert 'Accept-Encoding' not in prep.headers301+302+ def test_user_agent_transfers(self, httpbin):303+304 heads = {305 'User-agent': 'Mozilla/5.0 (github.com/kennethreitz/requests)'306 }307 6 unmodified lines314 315 r = requests.get(httpbin('user-agent'), headers=heads)316 assert heads['user-agent'] in r.text317 228- def test_HTTP_200_OK_HEAD(self):318+ def test_HTTP_200_OK_HEAD(self, httpbin):319 r = requests.head(httpbin('get'))320 assert r.status_code == 200321 232- def test_HTTP_200_OK_PUT(self):322+ def test_HTTP_200_OK_PUT(self, httpbin):323 r = requests.put(httpbin('put'))324 assert r.status_code == 200325 236- def test_BASICAUTH_TUPLE_HTTP_200_OK_GET(self):326+ def test_BASICAUTH_TUPLE_HTTP_200_OK_GET(self, httpbin):327 auth = ('user', 'pass')328 url = httpbin('basic-auth', 'user', 'pass')329 330 r = requests.get(url, auth=auth)6 unmodified lines337 s.auth = auth338 r = s.get(url)339 assert r.status_code == 200340 251- def test_basicauth_with_netrc(self):341+ def test_connection_error_invalid_domain(self):342+ """Connecting to an unknown domain should raise a ConnectionError"""343+ with pytest.raises(ConnectionError):344+ requests.get("http://doesnotexist.google.com")345+346+ def test_connection_error_invalid_port(self):347+ """Connecting to an invalid port should raise a ConnectionError"""348+ with pytest.raises(ConnectionError):349+ requests.get("http://localhost:1", timeout=1)350+351+ def test_LocationParseError(self):352+ """Inputing a URL that cannot be parsed should raise an InvalidURL error"""353+ with pytest.raises(InvalidURL):354+ requests.get("http://fe80::5054:ff:fe5a:fc0")355+356+ def test_basicauth_with_netrc(self, httpbin):357 auth = ('user', 'pass')358 wrong_auth = ('wronguser', 'wrongpass')359 url = httpbin('basic-auth', 'user', 'pass')360 256- def get_netrc_auth_mock(url):257- return auth258- requests.sessions.get_netrc_auth = get_netrc_auth_mock361+ old_auth = requests.sessions.get_netrc_auth362 260- # Should use netrc and work.261- r = requests.get(url)262- assert r.status_code == 200363+ try:364+ def get_netrc_auth_mock(url):365+ return auth366+ requests.sessions.get_netrc_auth = get_netrc_auth_mock367 264- # Given auth should override and fail.265- r = requests.get(url, auth=wrong_auth)266- assert r.status_code == 401368+ # Should use netrc and work.369+ r = requests.get(url)370+ assert r.status_code == 200371 268- s = requests.session()372+ # Given auth should override and fail.373+ r = requests.get(url, auth=wrong_auth)374+ assert r.status_code == 401375 270- # Should use netrc and work.271- r = s.get(url)272- assert r.status_code == 200376+ s = requests.session()377 274- # Given auth should override and fail.275- s.auth = wrong_auth276- r = s.get(url)277- assert r.status_code == 401378+ # Should use netrc and work.379+ r = s.get(url)380+ assert r.status_code == 200381 279- def test_DIGEST_HTTP_200_OK_GET(self):382+ # Given auth should override and fail.383+ s.auth = wrong_auth384+ r = s.get(url)385+ assert r.status_code == 401386+ finally:387+ requests.sessions.get_netrc_auth = old_auth388 389+ def test_DIGEST_HTTP_200_OK_GET(self, httpbin):390+391 auth = HTTPDigestAuth('user', 'pass')392 url = httpbin('digest-auth', 'auth', 'user', 'pass')393 394 r = requests.get(url, auth=auth)6 unmodified lines401 s.auth = HTTPDigestAuth('user', 'pass')402 r = s.get(url)403 assert r.status_code == 200404 295- def test_DIGEST_AUTH_RETURNS_COOKIE(self):405+ def test_DIGEST_AUTH_RETURNS_COOKIE(self, httpbin):406 url = httpbin('digest-auth', 'auth', 'user', 'pass')407 auth = HTTPDigestAuth('user', 'pass')408 r = requests.get(url)409 assert r.cookies['fake'] == 'fake_value'410 411 r = requests.get(url, auth=auth)412 assert r.status_code == 200413 304- def test_DIGEST_AUTH_SETS_SESSION_COOKIES(self):414+ def test_DIGEST_AUTH_SETS_SESSION_COOKIES(self, httpbin):415 url = httpbin('digest-auth', 'auth', 'user', 'pass')416 auth = HTTPDigestAuth('user', 'pass')417 s = requests.Session()418 s.get(url, auth=auth)419 assert s.cookies['fake'] == 'fake_value'420 311- def test_DIGEST_STREAM(self):421+ def test_DIGEST_STREAM(self, httpbin):422 423 auth = HTTPDigestAuth('user', 'pass')424 url = httpbin('digest-auth', 'auth', 'user', 'pass')425 2 unmodified lines428 429 r = requests.get(url, auth=auth, stream=False)430 assert r.raw.read() == b''431 322- def test_DIGESTAUTH_WRONG_HTTP_401_GET(self):432+ def test_DIGESTAUTH_WRONG_HTTP_401_GET(self, httpbin):433 434 auth = HTTPDigestAuth('user', 'wrongpass')435 url = httpbin('digest-auth', 'auth', 'user', 'pass')436 7 unmodified lines444 s.auth = auth445 r = s.get(url)446 assert r.status_code == 401447 338- def test_DIGESTAUTH_QUOTES_QOP_VALUE(self):448+ def test_DIGESTAUTH_QUOTES_QOP_VALUE(self, httpbin):449 450 auth = HTTPDigestAuth('user', 'pass')451 url = httpbin('digest-auth', 'auth', 'user', 'pass')452 453 r = requests.get(url, auth=auth)454 assert '"auth"' in r.request.headers['Authorization']455 346- def test_POSTBIN_GET_POST_FILES(self):456+ def test_POSTBIN_GET_POST_FILES(self, httpbin):457 458 url = httpbin('post')459 post1 = requests.post(url).raise_for_status()460 7 unmodified lines468 post4 = requests.post(url, data='[{"some": "json"}]')469 assert post4.status_code == 200470 471 with pytest.raises(ValueError):362- requests.post(url, files = ['bad file data'])472+ requests.post(url, files=['bad file data'])473 364- def test_POSTBIN_GET_POST_FILES_WITH_DATA(self):474+ def test_POSTBIN_GET_POST_FILES_WITH_DATA(self, httpbin):475 476 url = httpbin('post')477 post1 = requests.post(url).raise_for_status()478 479 post1 = requests.post(url, data={'some': 'data'})480 assert post1.status_code == 200481 482 with open('requirements.txt') as f:373- post2 = requests.post(url, data={'some': 'data'}, files={'some': f})483+ post2 = requests.post(url,484+ data={'some': 'data'}, files={'some': f})485 assert post2.status_code == 200486 487 post4 = requests.post(url, data='[{"some": "json"}]')488 assert post4.status_code == 200489 490 with pytest.raises(ValueError):380- requests.post(url, files = ['bad file data'])491+ requests.post(url, files=['bad file data'])492 382- def test_conflicting_post_params(self):493+ def test_conflicting_post_params(self, httpbin):494 url = httpbin('post')495 with open('requirements.txt') as f:496 pytest.raises(ValueError, "requests.post(url, data='[{\"some\": \"data\"}]', files={'some': f})")386- pytest.raises(ValueError, "requests.post(url, data=u'[{\"some\": \"data\"}]', files={'some': f})")497+ pytest.raises(ValueError, "requests.post(url, data=u('[{\"some\": \"data\"}]'), files={'some': f})")498 388- def test_request_ok_set(self):499+ def test_request_ok_set(self, httpbin):500 r = requests.get(httpbin('status', '404'))501 assert not r.ok502 392- def test_status_raising(self):503+ def test_status_raising(self, httpbin):504 r = requests.get(httpbin('status', '404'))505 with pytest.raises(requests.exceptions.HTTPError):506 r.raise_for_status()507 508 r = requests.get(httpbin('status', '500'))509 assert not r.ok510 400- def test_decompress_gzip(self):511+ def test_decompress_gzip(self, httpbin):512 r = requests.get(httpbin('gzip'))513 r.content.decode('ascii')514 404- def test_unicode_get(self):515+ def test_unicode_get(self, httpbin):516 url = httpbin('/get')517 requests.get(url, params={'foo': 'føø'})518 requests.get(url, params={'føø': 'føø'})519 requests.get(url, params={'føø': 'føø'})520 requests.get(url, params={'foo': 'foo'})521 requests.get(httpbin('ø'), params={'foo': 'foo'})522 412- def test_unicode_header_name(self):413- requests.put(httpbin('put'), headers={str('Content-Type'): 'application/octet-stream'}, data='\xff') # compat.str is unicode.523+ def test_unicode_header_name(self, httpbin):524+ requests.put(525+ httpbin('put'),526+ headers={str('Content-Type'): 'application/octet-stream'},527+ data='\xff') # compat.str is unicode.528 415- def test_urlencoded_get_query_multivalued_param(self):529+ def test_pyopenssl_redirect(self, httpsbin_url, httpbin_ca_bundle):530+ requests.get(httpsbin_url('status', '301'), verify=httpbin_ca_bundle)531 532+ def test_urlencoded_get_query_multivalued_param(self, httpbin):533+534 r = requests.get(httpbin('get'), params=dict(test=['foo', 'baz']))535 assert r.status_code == 200536 assert r.url == httpbin('get?test=foo&test=baz')537 421- def test_different_encodings_dont_break_post(self):538+ def test_different_encodings_dont_break_post(self, httpbin):539 r = requests.post(httpbin('post'),423- data={'stuff': json.dumps({'a': 123})},424- params={'blah': 'asdf1234'},425- files={'file': ('test_requests.py', open(__file__, 'rb'))})540+ data={'stuff': json.dumps({'a': 123})},541+ params={'blah': 'asdf1234'},542+ files={'file': ('test_requests.py', open(__file__, 'rb'))})543 assert r.status_code == 200544 428- def test_unicode_multipart_post(self):545+ def test_unicode_multipart_post(self, httpbin):546 r = requests.post(httpbin('post'),430- data={'stuff': u'ëlïxr'},431- files={'file': ('test_requests.py', open(__file__, 'rb'))})547+ data={'stuff': u('ëlïxr')},548+ files={'file': ('test_requests.py', open(__file__, 'rb'))})549 assert r.status_code == 200550 551 r = requests.post(httpbin('post'),435- data={'stuff': u'ëlïxr'.encode('utf-8')},436- files={'file': ('test_requests.py', open(__file__, 'rb'))})552+ data={'stuff': u('ëlïxr').encode('utf-8')},553+ files={'file': ('test_requests.py', open(__file__, 'rb'))})554 assert r.status_code == 200555 556 r = requests.post(httpbin('post'),440- data={'stuff': 'elixr'},441- files={'file': ('test_requests.py', open(__file__, 'rb'))})557+ data={'stuff': 'elixr'},558+ files={'file': ('test_requests.py', open(__file__, 'rb'))})559 assert r.status_code == 200560 561 r = requests.post(httpbin('post'),445- data={'stuff': 'elixr'.encode('utf-8')},446- files={'file': ('test_requests.py', open(__file__, 'rb'))})562+ data={'stuff': 'elixr'.encode('utf-8')},563+ files={'file': ('test_requests.py', open(__file__, 'rb'))})564 assert r.status_code == 200565 449- def test_unicode_multipart_post_fieldnames(self):566+ def test_unicode_multipart_post_fieldnames(self, httpbin):567 filename = os.path.splitext(__file__)[0] + '.py'568 r = requests.Request(method='POST',569 url=httpbin('post'),570 data={'stuff'.encode('utf-8'): 'elixr'},2 unmodified lines573 prep = r.prepare()574 assert b'name="stuff"' in prep.body575 assert b'name="b\'stuff\'"' not in prep.body576 460- def test_unicode_method_name(self):577+ def test_unicode_method_name(self, httpbin):578 files = {'file': open('test_requests.py', 'rb')}462- r = requests.request(method=u'POST', url=httpbin('post'), files=files)579+ r = requests.request(580+ method=u('POST'), url=httpbin('post'), files=files)581 assert r.status_code == 200582 583+ def test_unicode_method_name_with_request_object(self, httpbin):584+ files = {'file': open('test_requests.py', 'rb')}585+ s = requests.Session()586+ req = requests.Request(u("POST"), httpbin('post'), files=files)587+ prep = s.prepare_request(req)588+ assert isinstance(prep.method, builtin_str)589+ assert prep.method == "POST"590+591+ resp = s.send(prep)592+ assert resp.status_code == 200593+594+ def test_custom_content_type(self, httpbin):465- def test_custom_content_type(self):466- r = requests.post(httpbin('post'),467- data={'stuff': json.dumps({'a': 123})},468- files={'file1': ('test_requests.py', open(__file__, 'rb')),469- 'file2': ('test_requests', open(__file__, 'rb'),470- 'text/py-content-type')})595+ r = requests.post(596+ httpbin('post'),597+ data={'stuff': json.dumps({'a': 123})},598+ files={'file1': ('test_requests.py', open(__file__, 'rb')),599+ 'file2': ('test_requests', open(__file__, 'rb'),600+ 'text/py-content-type')})601 assert r.status_code == 200602 assert b"text/py-content-type" in r.request.body603 474- def test_hook_receives_request_arguments(self):604+ def test_hook_receives_request_arguments(self, httpbin):605 def hook(resp, **kwargs):606 assert resp is not None607 assert kwargs != {}608 479- requests.Request('GET', HTTPBIN, hooks={'response': hook})609+ requests.Request('GET', httpbin(), hooks={'response': hook})610 481- def test_session_hooks_are_used_with_no_request_hooks(self):611+ def test_session_hooks_are_used_with_no_request_hooks(self, httpbin):612 hook = lambda x, *args, **kwargs: x613 s = requests.Session()614 s.hooks['response'].append(hook)485- r = requests.Request('GET', HTTPBIN)615+ r = requests.Request('GET', httpbin())616 prep = s.prepare_request(r)617 assert prep.hooks['response'] != []618 assert prep.hooks['response'] == [hook]619 490- def test_session_hooks_are_overriden_by_request_hooks(self):620+ def test_session_hooks_are_overridden_by_request_hooks(self, httpbin):621 hook1 = lambda x, *args, **kwargs: x622 hook2 = lambda x, *args, **kwargs: x623 assert hook1 is not hook2624 s = requests.Session()625 s.hooks['response'].append(hook2)496- r = requests.Request('GET', HTTPBIN, hooks={'response': [hook1]})626+ r = requests.Request('GET', httpbin(), hooks={'response': [hook1]})627 prep = s.prepare_request(r)628 assert prep.hooks['response'] == [hook1]629 500- def test_prepared_request_hook(self):630+ def test_prepared_request_hook(self, httpbin):631 def hook(resp, **kwargs):632 resp.hook_working = True633 return resp634 505- req = requests.Request('GET', HTTPBIN, hooks={'response': hook})635+ req = requests.Request('GET', httpbin(), hooks={'response': hook})636 prep = req.prepare()637 638 s = requests.Session()639 s.proxies = getproxies()640 resp = s.send(prep)641 642 assert hasattr(resp, 'hook_working')643 514- def test_prepared_from_session(self):644+ def test_prepared_from_session(self, httpbin):645 class DummyAuth(requests.auth.AuthBase):646 def __call__(self, r):647 r.headers['Dummy-Auth-Test'] = 'dummy-auth-test-ok'648 return r6 unmodified lines655 656 prep = s.prepare_request(req)657 resp = s.send(prep)658 529- assert resp.json()['headers']['Dummy-Auth-Test'] == 'dummy-auth-test-ok'659+ assert resp.json()['headers'][660+ 'Dummy-Auth-Test'] == 'dummy-auth-test-ok'661 662+ def test_prepare_request_with_bytestring_url(self):663+ req = requests.Request('GET', b'https://httpbin.org/')664+ s = requests.Session()665+ prep = s.prepare_request(req)666+ assert prep.url == "https://httpbin.org/"667+668 def test_links(self):669 r = requests.Response()670 r.headers = {671 'cache-control': 'public, max-age=60, s-maxage=60',121 unmodified lines793 assert items == list(items)794 # make sure one can use items multiple times795 assert list(items) == list(items)796 660-661- def test_time_elapsed_blank(self):797+ def test_time_elapsed_blank(self, httpbin):798 r = requests.get(httpbin('get'))799 td = r.elapsed800 total_seconds = ((td.microseconds + (td.seconds + td.days * 24 * 3600)801 * 10**6) / 10**6)10 unmodified lines812 r.raw = io813 assert next(iter(r))814 io.close()815 816+ def test_response_decode_unicode(self):817+ """818+ When called with decode_unicode, Response.iter_content should always819+ return unicode.820+ """821+ r = requests.Response()822+ r._content_consumed = True823+ r._content = b'the content'824+ r.encoding = 'ascii'825+826+ chunks = r.iter_content(decode_unicode=True)827+ assert all(isinstance(chunk, str) for chunk in chunks)828+829+ # also for streaming830+ r = requests.Response()831+ r.raw = io.BytesIO(b'the content')832+ r.encoding = 'ascii'833+ chunks = r.iter_content(decode_unicode=True)834+ assert all(isinstance(chunk, str) for chunk in chunks)835+680- def test_request_and_response_are_pickleable(self):836+ def test_request_and_response_are_pickleable(self, httpbin):837 r = requests.get(httpbin('get'))838 839 # verify we can pickle the original request840 assert pickle.loads(pickle.dumps(r.request))16 unmodified lines857 url = 'http://user:pass pass@complex.url.com/path?query=yes'858 assert ('user', 'pass pass') == requests.utils.get_auth_from_url(url)859 860 def test_get_auth_from_url_percent_chars(self):705- url = 'http://user%user:pass@complex.url.com/path?query=yes'861+ url = 'http://user%25user:pass@complex.url.com/path?query=yes'862 assert ('user%user', 'pass') == requests.utils.get_auth_from_url(url)863 864+ def test_get_auth_from_url_encoded_hashes(self):865+ url = 'http://user:pass%23pass@complex.url.com/path?query=yes'866+ assert ('user', 'pass#pass') == requests.utils.get_auth_from_url(url)867+708- def test_cannot_send_unprepared_requests(self):709- r = requests.Request(url=HTTPBIN)868+ def test_cannot_send_unprepared_requests(self, httpbin):869+ r = requests.Request(url=httpbin())870 with pytest.raises(ValueError):871 requests.Session().send(r)872 873 def test_http_error(self):5 unmodified lines879 error = requests.exceptions.HTTPError('message', response=response)880 assert str(error) == 'message'881 assert error.response == response882 723- def test_session_pickling(self):883+ def test_session_pickling(self, httpbin):884 r = requests.Request('GET', httpbin('get'))885 s = requests.Session()886 887 s = pickle.loads(pickle.dumps(s))1 unmodified line889 890 r = s.send(r.prepare())891 assert r.status_code == 200892 733- def test_fixes_1329(self):893+ def test_fixes_1329(self, httpbin):894 """895 Ensure that header updates are done case-insensitively.896 """897 s = requests.Session()4 unmodified lines902 assert headers['accept'] == 'application/json'903 assert headers['Accept'] == 'application/json'904 assert headers['ACCEPT'] == 'application/json'905 746- def test_uppercase_scheme_redirect(self):906+ def test_uppercase_scheme_redirect(self, httpbin):907 parts = urlparse(httpbin('html'))908 url = "HTTP://" + parts.netloc + parts.path909 r = requests.get(httpbin('redirect-to'), params={'url': url})910 assert r.status_code == 20036 unmodified lines947 s2.mount('https://', HTTPAdapter())948 assert 'http://' in s2.adapters949 assert 'https://' in s2.adapters950 791- def test_header_remove_is_case_insensitive(self):951+ def test_header_remove_is_case_insensitive(self, httpbin):952 # From issue #1321953 s = requests.Session()954 s.headers['foo'] = 'bar'955 r = s.get(httpbin('get'), headers={'FOO': None})956 assert 'foo' not in r.request.headers957 798- def test_params_are_merged_case_sensitive(self):958+ def test_params_are_merged_case_sensitive(self, httpbin):959 s = requests.Session()960 s.params['foo'] = 'bar'961 r = s.get(httpbin('get'), params={'FOO': 'bar'})962 assert r.json()['args'] == {'foo': 'bar', 'FOO': 'bar'}963 804-964 def test_long_authinfo_in_url(self):965 url = 'http://{0}:{1}@{2}:9000/path?query#frag'.format(966 'E8A3BE87-9E3F-4620-8858-95478E385B5B',967 'EA770032-DA4D-4D84-8CE9-29C6D910BF1E',1 unmodified line969 )970 r = requests.Request('GET', url).prepare()971 assert r.url == url972 814- def test_header_keys_are_native(self):815- headers = {u'unicode': 'blah', 'byte'.encode('ascii'): 'blah'}973+ def test_header_keys_are_native(self, httpbin):974+ headers = {u('unicode'): 'blah', 'byte'.encode('ascii'): 'blah'}975 r = requests.Request('GET', httpbin('get'), headers=headers)976 p = r.prepare()977 978 # This is testing that they are builtin strings. A bit weird, but there979 # we go.980 assert 'unicode' in p.headers.keys()981 assert 'byte' in p.headers.keys()982 824- def test_can_send_nonstring_objects_with_files(self):983+ def test_can_send_nonstring_objects_with_files(self, httpbin):984 data = {'a': 0.0}985 files = {'b': 'foo'}986 r = requests.Request('POST', httpbin('post'), data=data, files=files)987 p = r.prepare()988 989 assert 'multipart/form-data' in p.headers['Content-Type']990 991+ def test_can_send_bytes_bytearray_objects_with_files(self, httpbin):992+ # Test bytes:993+ data = {'a': 'this is a string'}994+ files = {'b': b'foo'}995+ r = requests.Request('POST', httpbin('post'), data=data, files=files)996+ p = r.prepare()997+ assert 'multipart/form-data' in p.headers['Content-Type']998+ # Test bytearrays:999+ files = {'b': bytearray(b'foo')}1000+ r = requests.Request('POST', httpbin('post'), data=data, files=files)1001+ p = r.prepare()1002+ assert 'multipart/form-data' in p.headers['Content-Type']1003+1004+ def test_can_send_file_object_with_non_string_filename(self, httpbin):1005+ f = io.BytesIO()1006+ f.name = 21007+ r = requests.Request('POST', httpbin('post'), files={'f': f})1008+ p = r.prepare()1009+1010+ assert 'multipart/form-data' in p.headers['Content-Type']1011+832- def test_autoset_header_values_are_native(self):1012+ def test_autoset_header_values_are_native(self, httpbin):1013 data = 'this is a string'1014 length = '16'1015 req = requests.Request('POST', httpbin('post'), data=data)1016 p = req.prepare()1017 1018 assert p.headers['Content-Length'] == length1019 840- def test_oddball_schemes_dont_check_URLs(self):1020+ def test_nonhttp_schemes_dont_check_URLs(self):1021 test_urls = (1022 'data:image/gif;base64,R0lGODlhAQABAHAAACH5BAUAAAAALAAAAAABAAEAAAICRAEAOw==',1023 'file:///etc/passwd',1024 'magnet:?xt=urn:btih:be08f00302bc2d1d3cfa3af02024fa647a271431',2 unmodified lines1027 req = requests.Request('GET', test_url)1028 preq = req.prepare()1029 assert test_url == preq.url1030 1031+ def test_auth_is_stripped_on_redirect_off_host(self, httpbin):1032+ r = requests.get(1033+ httpbin('redirect-to'),1034+ params={'url': 'http://www.google.co.uk'},1035+ auth=('user', 'pass'),1036+ )1037+ assert r.history[0].request.headers['Authorization']1038+ assert not r.request.headers.get('Authorization', '')1039 1040+ def test_auth_is_retained_for_redirect_on_host(self, httpbin):1041+ r = requests.get(httpbin('redirect/1'), auth=('user', 'pass'))1042+ h1 = r.history[0].request.headers['Authorization']1043+ h2 = r.request.headers['Authorization']1044+1045+ assert h1 == h21046+1047+ def test_manual_redirect_with_partial_body_read(self, httpbin):1048+ s = requests.Session()1049+ r1 = s.get(httpbin('redirect/2'), allow_redirects=False, stream=True)1050+ assert r1.is_redirect1051+ rg = s.resolve_redirects(r1, r1.request, stream=True)1052+1053+ # read only the first eight bytes of the response body,1054+ # then follow the redirect1055+ r1.iter_content(8)1056+ r2 = next(rg)1057+ assert r2.is_redirect1058+1059+ # read all of the response via iter_content,1060+ # then follow the redirect1061+ for _ in r2.iter_content():1062+ pass1063+ r3 = next(rg)1064+ assert not r3.is_redirect1065+1066+ def _patch_adapter_gzipped_redirect(self, session, url):1067+ adapter = session.get_adapter(url=url)1068+ org_build_response = adapter.build_response1069+ self._patched_response = False1070+1071+ def build_response(*args, **kwargs):1072+ resp = org_build_response(*args, **kwargs)1073+ if not self._patched_response:1074+ resp.raw.headers['content-encoding'] = 'gzip'1075+ self._patched_response = True1076+ return resp1077+1078+ adapter.build_response = build_response1079+1080+ def test_redirect_with_wrong_gzipped_header(self, httpbin):1081+ s = requests.Session()1082+ url = httpbin('redirect/1')1083+ self._patch_adapter_gzipped_redirect(s, url)1084+ s.get(url)1085+1086+ def test_basic_auth_str_is_always_native(self):1087+ s = _basic_auth_str("test", "test")1088+ assert isinstance(s, builtin_str)1089+ assert s == "Basic dGVzdDp0ZXN0"1090+1091+ def test_requests_history_is_saved(self, httpbin):1092+ r = requests.get(httpbin('redirect/5'))1093+ total = r.history[-1].history1094+ i = 01095+ for item in r.history:1096+ assert item.history == total[0:i]1097+ i = i + 11098+1099+ def test_json_param_post_content_type_works(self, httpbin):1100+ r = requests.post(1101+ httpbin('post'),1102+ json={'life': 42}1103+ )1104+ assert r.status_code == 2001105+ assert 'application/json' in r.request.headers['Content-Type']1106+ assert {'life': 42} == r.json()['json']1107+1108+ def test_json_param_post_should_not_override_data_param(self, httpbin):1109+ r = requests.Request(method='POST', url=httpbin('post'),1110+ data={'stuff': 'elixr'},1111+ json={'music': 'flute'})1112+ prep = r.prepare()1113+ assert 'stuff=elixr' == prep.body1114+1115+ def test_response_iter_lines(self, httpbin):1116+ r = requests.get(httpbin('stream/4'), stream=True)1117+ assert r.status_code == 2001118+1119+ it = r.iter_lines()1120+ next(it)1121+ assert len(list(it)) == 31122+1123+ def test_unconsumed_session_response_closes_connection(self, httpbin):1124+ s = requests.session()1125+1126+ with contextlib.closing(s.get(httpbin('stream/4'), stream=True)) as response:1127+ pass1128+1129+ assert response._content_consumed is False1130+ assert response.raw.closed1131+1132+ @pytest.mark.xfail1133+ def test_response_iter_lines_reentrant(self, httpbin):1134+ """Response.iter_lines() is not reentrant safe"""1135+ r = requests.get(httpbin('stream/4'), stream=True)1136+ assert r.status_code == 2001137+1138+ next(r.iter_lines())1139+ assert len(list(r.iter_lines())) == 31140+1141+1142 class TestContentEncodingDetection(unittest.TestCase):1143 1144 def test_none(self):1145 encodings = requests.utils.get_encodings_from_content('')39 unmodified lines1185 1186 class TestCaseInsensitiveDict(unittest.TestCase):1187 1188 def test_mapping_init(self):899- cid = CaseInsensitiveDict({'Foo': 'foo','BAr': 'bar'})1189+ cid = CaseInsensitiveDict({'Foo': 'foo', 'BAr': 'bar'})1190 assert len(cid) == 21191 assert 'foo' in cid1192 assert 'bar' in cid1193 65 unmodified lines1259 cid = CaseInsensitiveDict()1260 cid['spam'] = 'blueval'1261 cid.update({'sPam': 'notblueval'})1262 assert cid['spam'] == 'notblueval'973- cid = CaseInsensitiveDict({'Foo': 'foo','BAr': 'bar'})1263+ cid = CaseInsensitiveDict({'Foo': 'foo', 'BAr': 'bar'})1264 cid.update({'fOO': 'anotherfoo', 'bAR': 'anotherbar'})1265 assert len(cid) == 21266 assert cid['foo'] == 'anotherfoo'1267 assert cid['bar'] == 'anotherbar'14 unmodified lines1282 assert cid == othercid1283 del othercid['spam']1284 assert cid != othercid1285 assert cid == {'spam': 'blueval', 'eggs': 'redval'}1286+ assert cid != object()1287 1288 def test_setdefault(self):1289 cid = CaseInsensitiveDict({'Spam': 'blueval'})1290 assert cid.setdefault('spam', 'notblueval') == 'blueval'29 unmodified lines1320 assert frozenset(i[0] for i in cid.items()) == keyset1321 assert frozenset(cid.keys()) == keyset1322 assert frozenset(cid) == keyset1323 1324+ def test_copy(self):1325+ cid = CaseInsensitiveDict({1326+ 'Accept': 'application/json',1327+ 'user-Agent': 'requests',1328+ })1329+ cid_copy = cid.copy()1330+ assert cid == cid_copy1331+ cid['changed'] = True1332+ assert cid != cid_copy1333 1334+1335 class UtilsTestCase(unittest.TestCase):1336 1337 def test_super_len_io_streams(self):1338 """ Ensures that we properly deal with different kinds of IO streams. """1 unmodified line1340 from io import BytesIO1341 from requests.utils import super_len1342 1343 assert super_len(StringIO.StringIO()) == 01344+ assert super_len(1043- assert super_len(StringIO.StringIO('with so much drama in the LBC')) == 291345+ StringIO.StringIO('with so much drama in the LBC')) == 291346 1347 assert super_len(BytesIO()) == 01348+ assert super_len(1046- assert super_len(BytesIO(b"it's kinda hard bein' snoop d-o-double-g")) == 401349+ BytesIO(b"it's kinda hard bein' snoop d-o-double-g")) == 401350 1351 try:1352 import cStringIO1353 except ImportError:1354 pass1355 else:1053- assert super_len(cStringIO.StringIO('but some how, some way...')) == 251356+ assert super_len(1357+ cStringIO.StringIO('but some how, some way...')) == 251358 1359+ def test_super_len_correctly_calculates_len_of_partially_read_file(self):1360+ """Ensure that we handle partially consumed file like objects."""1361+ from requests.utils import super_len1362+ s = StringIO.StringIO()1363+ s.write('foobarbogus')1364+ assert super_len(s) == 01365+1366 def test_get_environ_proxies_ip_ranges(self):1056- """ Ensures that IP addresses are correctly matches with ranges in no_proxy variable """1367+ """Ensures that IP addresses are correctly matches with ranges1368+ in no_proxy variable."""1369 from requests.utils import get_environ_proxies1370 os.environ['no_proxy'] = "192.168.0.0/24,127.0.0.1,localhost.localdomain,172.16.1.1"1371 assert get_environ_proxies('http://192.168.0.1:5000/') == {}1372 assert get_environ_proxies('http://192.168.0.1/') == {}2 unmodified lines1375 assert get_environ_proxies('http://192.168.1.1:5000/') != {}1376 assert get_environ_proxies('http://192.168.1.1/') != {}1377 1378 def test_get_environ_proxies(self):1067- """ Ensures that IP addresses are correctly matches with ranges in no_proxy variable """1379+ """Ensures that IP addresses are correctly matches with ranges1380+ in no_proxy variable."""1381 from requests.utils import get_environ_proxies1382 os.environ['no_proxy'] = "127.0.0.1,localhost.localdomain,192.168.0.0/24,172.16.1.1"1070- assert get_environ_proxies('http://localhost.localdomain:5000/v1.0/') == {}1383+ assert get_environ_proxies(1384+ 'http://localhost.localdomain:5000/v1.0/') == {}1385 assert get_environ_proxies('http://www.requests.com/') != {}1386 1387+ def test_select_proxies(self):1388+ """Make sure we can select per-host proxies correctly."""1389+ from requests.utils import select_proxy1390+ proxies = {'http': 'http://http.proxy',1391+ 'http://some.host': 'http://some.host.proxy'}1392+ assert select_proxy('hTTp://u:p@Some.Host/path', proxies) == 'http://some.host.proxy'1393+ assert select_proxy('hTTp://u:p@Other.Host/path', proxies) == 'http://http.proxy'1394+ assert select_proxy('hTTps://Other.Host', proxies) is None1395+1396+ def test_guess_filename_when_int(self):1397+ from requests.utils import guess_filename1398+ assert None is guess_filename(1)1399+1400+ def test_guess_filename_when_filename_is_an_int(self):1401+ from requests.utils import guess_filename1402+ fake = type('Fake', (object,), {'name': 1})()1403+ assert None is guess_filename(fake)1404+1405+ def test_guess_filename_with_file_like_obj(self):1406+ from requests.utils import guess_filename1407+ from requests import compat1408+ fake = type('Fake', (object,), {'name': b'value'})()1409+ guessed_name = guess_filename(fake)1410+ assert b'value' == guessed_name1411+ assert isinstance(guessed_name, compat.bytes)1412+1413+ def test_guess_filename_with_unicode_name(self):1414+ from requests.utils import guess_filename1415+ from requests import compat1416+ filename = b'value'.decode('utf-8')1417+ fake = type('Fake', (object,), {'name': filename})()1418+ guessed_name = guess_filename(fake)1419+ assert filename == guessed_name1420+ assert isinstance(guessed_name, compat.str)1421+1422 def test_is_ipv4_address(self):1423 from requests.utils import is_ipv4_address1424 assert is_ipv4_address('8.8.8.8')1425 assert not is_ipv4_address('8.8.8.8.8')14 unmodified lines1440 from requests.utils import address_in_network1441 assert address_in_network('192.168.1.1', '192.168.1.0/24')1442 assert not address_in_network('172.16.0.1', '192.168.1.0/24')1443 1444+ def test_get_auth_from_url(self):1445+ """Ensures that username and password in well-encoded URI as per1446+ RFC 3986 are correclty extracted."""1447+ from requests.utils import get_auth_from_url1448+ from requests.compat import quote1449+ percent_encoding_test_chars = "%!*'();:@&=+$,/?#[] "1450+ url_address = "request.com/url.html#test"1451+ url = "http://" + quote(1452+ percent_encoding_test_chars, '') + ':' + quote(1453+ percent_encoding_test_chars, '') + '@' + url_address1454+ (username, password) = get_auth_from_url(url)1455+ assert username == percent_encoding_test_chars1456+ assert password == percent_encoding_test_chars1457 1458+ def test_requote_uri_with_unquoted_percents(self):1459+ """Ensure we handle unquoted percent signs in redirects.1460 1461+ See: https://github.com/kennethreitz/requests/issues/23561462+ """1463+ from requests.utils import requote_uri1464+ bad_uri = 'http://example.com/fiz?buz=%ppicture'1465+ quoted = 'http://example.com/fiz?buz=%25ppicture'1466+ assert quoted == requote_uri(bad_uri)1467+1468+ def test_requote_uri_properly_requotes(self):1469+ """Ensure requoting doesn't break expectations."""1470+ from requests.utils import requote_uri1471+ quoted = 'http://example.com/fiz?buz=%25ppicture'1472+ assert quoted == requote_uri(quoted)1473+1474+1475 class TestMorselToCookieExpires(unittest.TestCase):1476 1477 """Tests for morsel_to_cookie when morsel contains expires."""1478 50 unmodified lines1529 with pytest.raises(TypeError):1530 morsel_to_cookie(morsel)1531 1532 1533+class TestTimeout:1534+ def test_stream_timeout(self, httpbin):1535+ try:1536+ requests.get(httpbin('delay/10'), timeout=2.0)1537+ except requests.exceptions.Timeout as e:1538+ assert 'Read timed out' in e.args[0].args[0]1539+1540+ def test_invalid_timeout(self, httpbin):1541+ with pytest.raises(ValueError) as e:1542+ requests.get(httpbin('get'), timeout=(3, 4, 5))1543+ assert '(connect, read)' in str(e)1544+1545+ with pytest.raises(ValueError) as e:1546+ requests.get(httpbin('get'), timeout="foo")1547+ assert 'must be an int or float' in str(e)1548+1549+ def test_none_timeout(self, httpbin):1550+ """ Check that you can set None as a valid timeout value.1551+1552+ To actually test this behavior, we'd want to check that setting the1553+ timeout to None actually lets the request block past the system default1554+ timeout. However, this would make the test suite unbearably slow.1555+ Instead we verify that setting the timeout to None does not prevent the1556+ request from succeeding.1557+ """1558+ r = requests.get(httpbin('get'), timeout=None)1559+ assert r.status_code == 2001560+1561+ def test_read_timeout(self, httpbin):1562+ try:1563+ requests.get(httpbin('delay/10'), timeout=(None, 0.1))1564+ assert False, "The recv() request should time out."1565+ except ReadTimeout:1566+ pass1567+1568+ def test_connect_timeout(self):1569+ try:1570+ requests.get(TARPIT, timeout=(0.1, None))1571+ assert False, "The connect() request should time out."1572+ except ConnectTimeout as e:1573+ assert isinstance(e, ConnectionError)1574+ assert isinstance(e, Timeout)1575+1576+ def test_total_timeout_connect(self):1577+ try:1578+ requests.get(TARPIT, timeout=(0.1, 0.1))1579+ assert False, "The connect() request should time out."1580+ except ConnectTimeout:1581+ pass1582+1583+ def test_encoded_methods(self, httpbin):1584+ """See: https://github.com/kennethreitz/requests/issues/2316"""1585+ r = requests.request(b'GET', httpbin('get'))1586+ assert r.ok1587+1588+1589+SendCall = collections.namedtuple('SendCall', ('args', 'kwargs'))1590+1591+1592+class RedirectSession(SessionRedirectMixin):1593+ def __init__(self, order_of_redirects):1594+ self.redirects = order_of_redirects1595+ self.calls = []1596+ self.max_redirects = 301597+ self.cookies = {}1598+ self.trust_env = False1599+1600+ def send(self, *args, **kwargs):1601+ self.calls.append(SendCall(args, kwargs))1602+ return self.build_response()1603+1604+ def build_response(self):1605+ request = self.calls[-1].args[0]1606+ r = requests.Response()1607+1608+ try:1609+ r.status_code = int(self.redirects.pop(0))1610+ except IndexError:1611+ r.status_code = 2001612+1613+ r.headers = CaseInsensitiveDict({'Location': '/'})1614+ r.raw = self._build_raw()1615+ r.request = request1616+ return r1617+1618+ def _build_raw(self):1619+ string = StringIO.StringIO('')1620+ setattr(string, 'release_conn', lambda *args: args)1621+ return string1622+1623+1624+class TestRedirects:1625+ default_keyword_args = {1626+ 'stream': False,1627+ 'verify': True,1628+ 'cert': None,1629+ 'timeout': None,1630+ 'allow_redirects': False,1631+ 'proxies': {},1632+ }1633+1634+ def test_requests_are_updated_each_time(self, httpbin):1635+ session = RedirectSession([303, 307])1636+ prep = requests.Request('POST', httpbin('post')).prepare()1637+ r0 = session.send(prep)1638+ assert r0.request.method == 'POST'1639+ assert session.calls[-1] == SendCall((r0.request,), {})1640+ redirect_generator = session.resolve_redirects(r0, prep)1641+ for response in redirect_generator:1642+ assert response.request.method == 'GET'1643+ send_call = SendCall((response.request,),1644+ TestRedirects.default_keyword_args)1645+ assert session.calls[-1] == send_call1646+1647+1648+1649+@pytest.fixture1650+def list_of_tuples():1651+ return [1652+ (('a', 'b'), ('c', 'd')),1653+ (('c', 'd'), ('a', 'b')),1654+ (('a', 'b'), ('c', 'd'), ('e', 'f')),1655+ ]1656+1657+1658+def test_data_argument_accepts_tuples(list_of_tuples):1659+ """1660+ Ensure that the data argument will accept tuples of strings1661+ and properly encode them.1662+ """1663+ for data in list_of_tuples:1664+ p = PreparedRequest()1665+ p.prepare(1666+ method='GET',1667+ url='http://www.example.com',1668+ data=data,1669+ hooks=default_hooks()1670+ )1671+ assert p.body == urlencode(data)1672+1673+1674+def assert_copy(p, p_copy):1675+ for attr in ('method', 'url', 'headers', '_cookies', 'body', 'hooks'):1676+ assert getattr(p, attr) == getattr(p_copy, attr)1677+1678+1679+def test_prepared_request_empty_copy():1680+ p = PreparedRequest()1681+ assert_copy(p, p.copy())1682+1683+1684+def test_prepared_request_no_cookies_copy():1685+ p = PreparedRequest()1686+ p.prepare(1687+ method='GET',1688+ url='http://www.example.com',1689+ data='foo=bar',1690+ hooks=default_hooks()1691+ )1692+ assert_copy(p, p.copy())1693+1694+1695+def test_prepared_request_complete_copy():1696+ p = PreparedRequest()1697+ p.prepare(1698+ method='GET',1699+ url='http://www.example.com',1700+ data='foo=bar',1701+ hooks=default_hooks(),1702+ cookies={'foo': 'bar'}1703+ )1704+ assert_copy(p, p.copy())1705+1706+1707+def test_prepare_unicode_url():1708+ p = PreparedRequest()1709+ p.prepare(1710+ method='GET',1711+ url=u('http://www.example.com/üniçø∂é'),1712+ )1713+ assert_copy(p, p.copy())1714+1715+1716+def test_urllib3_retries(httpbin):1717+ from requests.packages.urllib3.util import Retry1718+ s = requests.Session()1719+ s.mount('http://', HTTPAdapter(max_retries=Retry(1720+ total=2, status_forcelist=[500]1721+ )))1722+1723+ with pytest.raises(RetryError):1724+ s.get(httpbin('status/500'))1725+1726+1727+def test_urllib3_pool_connection_closed(httpbin):1728+ s = requests.Session()1729+ s.mount('http://', HTTPAdapter(pool_connections=0, pool_maxsize=0))1730+1731+ try:1732+ s.get(httpbin('status/200'))1733+ except ConnectionError as e:1734+ assert u"Pool is closed." in str(e)1735+1736+1737+def test_vendor_aliases():1738+ from requests.packages import urllib31739+ from requests.packages import chardet1740+1741+ with pytest.raises(ImportError):1742+ from requests.packages import webbrowser1743+1744+1745 if __name__ == '__main__':1746 unittest.main()