Skip to content
Myr

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

83 files+7946 added−3006 removed

modified:docs/_templates/sidebarintro.html+12 added-13 removed
modified:docs/_templates/sidebarlogo.html+4 added-8 removed
modified:docs/_themes/kr/layout.html+13 added
modified:docs/community/faq.rst+26 added
57 unmodified lines
58* Python 2.759* Python 3.160* Python 3.261* Python 3.362* Python 3.463* PyPy 1.964* PyPy 2.26566What are "hostname doesn't match" errors?67-----------------------------------------6869These errors occur when :ref:`SSL certificate verification <verification>`70fails to match the certificate the server responds with to the hostname71Requests thinks it's contacting. If you're certain the server's SSL setup is72correct (for example, because you can visit the site with your browser) and73you're using Python 2.6 or 2.7, a possible explanation is that you need74Server-Name-Indication.7576`Server-Name-Indication`_, or SNI, is an official extension to SSL where the77client tells the server what hostname it is contacting. This is important78when servers are using `Virtual Hosting`_. When such servers are hosting79more than one SSL site they need to be able to return the appropriate80certificate based on the hostname the client is connecting to.8182Python3 and Python 2.7.9+ include native support for SNI in their SSL modules.83For information on using SNI with Requests on Python < 2.7.9 refer to this84`Stack Overflow answer`_.8586.. _`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#18579484
modified:docs/community/out-there.rst+2 added-2 removed
23 unmodified lines
2425Articles & 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:23Recommended Packages and Extensions4===================================56Requests has a great variety of powerful and useful third-party extensions.7This page provides an overview of some of the best of them.89Certifi CA Bundle10-----------------1112`Certifi`_ is a carefully curated collection of Root Certificates for13validating the trustworthiness of SSL certificates while verifying the14identity of TLS hosts. It has been extracted from the Requests project.1516.. _Certifi: http://certifi.io/en/latest/1718CacheControl19------------2021`CacheControl`_ is an extension that adds a full HTTP cache to Requests. This22makes your web requests substantially more efficient, and should be used23whenever you're making a lot of web requests.2425.. _CacheControl: https://cachecontrol.readthedocs.org/en/latest/2627Requests-Toolbelt28-----------------2930`Requests-Toolbelt`_ is a collection of utilities that some users of Requests may desire,31but do not belong in Requests proper. This library is actively maintained32by members of the Requests core team, and reflects the functionality most33requested by users within the community.3435.. _Requests-Toolbelt: http://toolbelt.readthedocs.org/en/latest/index.html3637Requests-OAuthlib38-----------------3940`requests-oauthlib`_ makes it possible to do the OAuth dance from Requests41automatically. This is useful for the large number of websites that use OAuth42to provide authentication. It also provides a lot of tweaks that handle ways43that specific OAuth providers differ from the standard specifications.4445.. _requests-oauthlib: https://requests-oauthlib.readthedocs.org/en/latest/464748Betamax49-------5051`Betamax`_ records your HTTP interactions so the NSA does not have to.52A VCR imitation designed only for Python-Requests.5354.. _betamax: https://github.com/sigmavirus24/betamax555657
added:docs/community/release-process.rst+54 added
1Release Process and Rules2=========================34.. versionadded:: v2.6.256Starting with the version to be released after ``v2.6.2``, the following rules7will govern and describe how the Requests core team produces a new release.89Major Releases10--------------1112A major release will include breaking changes. When it is versioned, it will13be versioned as ``vX.0.0``. For example, if the previous release was14``v10.2.7`` the next version will be ``v11.0.0``.1516Breaking changes are changes that break backwards compatibility with prior17versions. If the project were to change the ``text`` attribute on a18``Response`` object to a method, that would only happen in a Major release.1920Major releases may also include miscellaneous bug fixes and upgrades to21vendored packages. The core developers of Requests are committed to providing22a good user experience. This means we're also committed to preserving23backwards compatibility as much as possible. Major releases will be infrequent24and will need strong justifications before they are considered.2526Minor Releases27--------------2829A minor release will not include breaking changes but may include30miscellaneous bug fixes and upgrades to vendored packages. If the previous31version of Requests released was ``v10.2.7`` a minor release would be32versioned as ``v10.3.0``.3334Minor releases will be backwards compatible with releases that have the same35major version number. In other words, all versions that would start with36``v10.`` should be compatible with each other.3738Hotfix Releases39---------------4041A hotfix release will only include bug fixes that were missed when the project42released the previous version. If the previous version of Requests released43``v10.2.7`` the hotfix release would be versioned as ``v10.2.8``.4445Hotfixes will **not** include upgrades to vendored dependences after46``v2.6.2``4748Reasoning49---------5051In the 2.5 and 2.6 release series, the Requests core team upgraded vendored52dependencies and caused a great deal of headaches for both users and the core53team. To reduce this pain, we're forming a concrete set of procedures so54expectations will be properly set.
modified:docs/community/support.rst+18 added-4 removed
3 unmodified lines
4=======56If you have questions or issues about Requests, there are several options:78StackOverflow9-------------1011If your question does not contain sensitive (possibly proprietary)12information or can be properly anonymized, please ask a question on13`StackOverflow <https://stackoverflow.com/questions/tagged/python-requests>`_14and use the tag ``python-requests``.1516Send a Tweet17------------1819If 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>`_.231424File an Issue25-------------2618If you notice some unexpected behavior in Requests, or want to see support27If you notice some unexpected behaviour in Requests, or want to see support28for a new feature,29`file an issue on GitHub <https://github.com/kennethreitz/requests/issues>`_.3031
10 unmodified lines
4243The official Freenode channel for Requests is44`#python-requests <irc://irc.freenode.net/python-requests>`_4537I'm also available as **kennethreitz** on Freenode.46The core developers of requests are on IRC throughout the day.47You can find them in ``#python-requests`` as:4849- kennethreitz50- lukasa51- sigmavirus24
modified:docs/community/updates.rst+3 added-14 removed
1.. _updates:23454Community Updates5=================67If you'd like to stay up to date on the community and development of Requests,
8 unmodified lines
1617Twitter18-------1922I often tweet about new features and releases of Requests.20The author, Kenneth Reitz, often tweets about new features and releases of Requests.2122Follow `@kennethreitz <https://twitter.com/kennethreitz>`_ for updates.232427Mailing List28------------2530There's a low-volume mailing list for Requests. To subscribe to the31mailing list, send an email to32`requests@librelist.org <mailto:requests@librelist.org>`_.26Release and Version History27===========================2834353637Software Updates38================3929.. include:: ../../HISTORY.rst30
added:docs/community/vulnerabilities.rst+105 added
1Vulnerability Disclosure2========================34If you think you have found a potential security vulnerability in requests,5please email `sigmavirus24 <mailto:graffatcolmingov@gmail.com>`_ and6`Lukasa <mailto:cory@lukasa.co.uk>`_ directly. **Do not file a public issue.**78Our PGP Key fingerprints are:910- 0161 BB7E B208 B5E0 4FDC 9F81 D9DA 0A04 9113 F853 (@sigmavirus24)1112- 90DC AE40 FEA7 4B14 9B70 662D F25F 2144 EEC1 373D (@lukasa)1314If English is not your first language, please try to describe the problem and15its impact to the best of your ability. For greater detail, please use your16native language and we will try our best to translate it using online services.1718Please also include the code you used to find the problem and the shortest19amount of code necessary to reproduce it.2021Please do not disclose this to anyone else. We will retrieve a CVE identifier22if necessary and give you full credit under whatever name or alias you provide.23We will only request an identifier when we have a fix and can publish it in a24release.2526We will respect your privacy and will only publicize your involvement if you27grant us permission.2829Process30-------3132This following information discusses the process the requests project follows33in response to vulnerability disclosures. If you are disclosing a34vulnerability, this section of the documentation lets you know how we will35respond to your disclosure.3637Timeline38~~~~~~~~3940When you report an issue, one of the project members will respond to you within41two days *at the outside*. In most cases responses will be faster, usually42within 12 hours. This initial response will at the very least confirm receipt43of the report.4445If we were able to rapidly reproduce the issue, the initial response will also46contain confirmation of the issue. If we are not, we will often ask for more47information about the reproduction scenario.4849Our goal is to have a fix for any vulnerability released within two weeks of50the initial disclosure. This may potentially involve shipping an interim51release that simply disables function while a more mature fix can be prepared,52but will in the vast majority of cases mean shipping a complete release as soon53as possible.5455Throughout the fix process we will keep you up to speed with how the fix is56progressing. Once the fix is prepared, we will notify you that we believe we57have a fix. Often we will ask you to confirm the fix resolves the problem in58your environment, especially if we are not confident of our reproduction59scenario.6061At this point, we will prepare for the release. We will obtain a CVE number62if one is required, providing you with full credit for the discovery. We will63also decide on a planned release date, and let you know when it is. This64release date will *always* be on a weekday.6566At this point we will reach out to our major downstream packagers to notify67them of an impending security-related patch so they can make arrangements. In68addition, these packagers will be provided with the intended patch ahead of69time, to ensure that they are able to promptly release their downstream70packages. Currently the list of people we actively contact *ahead of a public71release* is:7273- Ralph Bean, Red Hat (@ralphbean)74- Daniele Tricoli, Debian (@eriol)7576We will notify these individuals at least a week ahead of our planned release77date to ensure that they have sufficient time to prepare. If you believe you78should be on this list, please let one of the maintainers know at one of the79email addresses at the top of this article.8081On release day, we will push the patch to our public repository, along with an82updated changelog that describes the issue and credits you. We will then issue83a PyPI release containing the patch.8485At this point, we will publicise the release. This will involve mails to86mailing lists, Tweets, and all other communication mechanisms available to the87core team.8889We will also explicitly mention which commits contain the fix to make it easier90for other distributors and users to easily patch their own versions of requests91if upgrading is not an option.9293Previous CVEs94-------------9596- Fixed in 2.6.09798 - `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/>`_.100101- Fixed in 2.3.0102103 - `CVE 2014-1829 <http://www.cve.mitre.org/cgi-bin/cvename.cgi?name=2014-1829>`_104105 - `CVE 2014-1830 <http://www.cve.mitre.org/cgi-bin/cvename.cgi?name=2014-1830>`_
added:docs/dev/contributing.rst+145 added
1.. _contributing:23Contributor's Guide4===================56If you're reading this you're probably interested in contributing to7Requests. First, We'd like to say: thank you! Open source projects8live-and-die based on the support they receive from others, and the fact that9you're even considering supporting Requests is very generous of10you.1112This document lays out guidelines and advice for contributing to Requests.13If you're thinking of contributing, start by reading this thoroughly and14getting a feel for how contributing to the project works. If you have any15questions, feel free to reach out to either `Ian Cordasco`_ or `Cory Benfield`_,16the primary maintainers.1718The guide is split into sections based on the type of contribution you're19thinking of making, with a section that covers general guidelines for all20contributors.2122.. _Ian Cordasco: http://www.coglib.com/~icordasc/23.. _Cory Benfield: https://lukasa.co.uk/about242526All Contributions27-----------------2829Be Cordial30~~~~~~~~~~3132**Be cordial or be on your way.**3334Requests has one very important rule governing all forms of contribution,35including reporting bugs or requesting features. This golden rule is36`be cordial or be on your way`_. **All contributions are welcome**, as long as37everyone involved is treated with respect.3839.. _be cordial or be on your way: http://kennethreitz.org/be-cordial-or-be-on-your-way/4041.. _early-feedback:4243Get Early Feedback44~~~~~~~~~~~~~~~~~~4546If you are contributing, do not feel the need to sit on your contribution until47it is perfectly polished and complete. It helps everyone involved for you to48seek feedback as early as you possibly can. Submitting an early, unfinished49version of your contribution for feedback in no way prejudices your chances of50getting that contribution accepted, and can save you from putting a lot of work51into a contribution that is not suitable for the project.5253Contribution Suitability54~~~~~~~~~~~~~~~~~~~~~~~~5556The project maintainer has the last word on whether or not a contribution is57suitable for Requests. All contributions will be considered, but from time58to time contributions will be rejected because they do not suit the project.5960If your contribution is rejected, don't despair! So long as you followed these61guidelines, you'll have a much better chance of getting your next contribution62accepted.636465Code Contributions66------------------6768Steps69~~~~~7071When contributing code, you'll want to follow this checklist:72731. Fork the repository on GitHub.742. 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`.783. Write tests that demonstrate your bug or feature. Ensure that they fail.794. Make your change.805. Run the entire test suite again, confirming that all tests pass *including81 the ones you just added*.826. 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.8586The following sub-sections go into more detail on some of the points above.8788Code Review89~~~~~~~~~~~9091Contributions will not be merged until they've been code reviewed. You should92implement any code review feedback unless you strongly object to it. In the93event that you object to the code review feedback, you should make your case94clearly and calmly. If, after doing so, the feedback is judged to still apply,95you must either apply the feedback or withdraw your contribution.9697New Contributors98~~~~~~~~~~~~~~~~99100If you are new or relatively new to Open Source, welcome! Requests aims to101be a gentle introduction to the world of Open Source. If you're concerned about102how best to contribute, please consider mailing a maintainer (listed above) and103asking for help.104105Please also check the :ref:`early-feedback` section.106107Documentation Contributions108---------------------------109110Documentation improvements are always welcome! The documentation files live in111the ``docs/`` directory of the codebase. They're written in112`reStructuredText`_, and use `Sphinx`_ to generate the full suite of113documentation.114115When contributing documentation, please attempt to follow the style of the116documentation files. This means a soft-limit of 79 characters wide in your text117files and a semi-formal prose style.118119.. _reStructuredText: http://docutils.sourceforge.net/rst.html120.. _Sphinx: http://sphinx-doc.org/index.html121122123.. _bug-reports:124125Bug Reports126-----------127128Bug reports are hugely important! Before you raise one, though, please check129through the `GitHub issues`_, **both open and closed**, to confirm that the bug130hasn't been reported before. Duplicate bug reports are a huge drain on the time131of other contributors, and should be avoided as much as possible.132133.. _GitHub issues: https://github.com/kennethreitz/requests/issues134135136Feature Requests137----------------138139Requests is in a perpetual feature freeze. The maintainers believe that140requests contains every major feature currently required by the vast majority141of users.142143If you believe there is a feature missing, feel free to raise a feature144request, but please do be aware that the overwhelming likelihood is that your145feature request will not be accepted.
deleted:docs/dev/internals.rst
modified:docs/dev/philosophy.rst+5 added-3 removed
2 unmodified lines
34Requests is an open but opinionated library, created by an open but opinionated developer.567Benevolent Dictator8~~~~~~~~~~~~~~~~~~~7Management Style8~~~~~~~~~~~~~~~~910`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.1112`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.1314Values15~~~~~~1617- Simplicity is always better than functionality.
26 unmodified lines
modified:docs/dev/todo.rst+1 added-2 removed
22 unmodified lines
2324You'll need to install py.test in order to run the Requests' test suite::2526 $ pip install -r requirements.txt27 $ invoke test28 py.test27 $ py.test28 platform darwin -- Python 2.7.3 -- pytest-2.3.429 collected 25 items3031 test_requests.py .........................
28 unmodified lines
modified:docs/user/advanced.rst+267 added-38 removed
3 unmodified lines
4==============56This document covers some of Requests more advanced features.78.. _session-objects:910Session Objects11---------------1213The Session object allows you to persist certain parameters across14requests. It also persists cookies across all requests made from the14Session instance.15Session instance, and will use ``urllib3``'s `connection pooling`_. So if16you're making several requests to the same host, the underlying TCP17connection will be reused, which can result in a significant performance18increase (see `HTTP persistent connection`_).1920A Session object has all the methods of the main Requests API.2122Let's persist some cookies across requests::
17 unmodified lines
40 # both 'x-test' and 'x-test2' are sent41 s.get('http://httpbin.org/headers', headers={'x-test2': 'true'})424340Any 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.44Any dictionaries that you pass to a request method will be merged with the45session-level values that are set. The method-level parameters override session46parameters.4748Note, however, that method-level parameters will *not* be persisted across49requests, even if using a session. This example will only send the cookies50with the first request, but not the second::5152 s = requests.Session()53 r = s.get('http://httpbin.org/cookies', cookies={'from-my': 'browser'})54 print(r.text)55 # '{"cookies": {"from-my": "browser"}}'5657 r = s.get('http://httpbin.org/cookies')58 print(r.text)59 # '{"cookies": {}}'606162If 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>`.6566Sessions can also be used as context managers::6768 with requests.Session() as s:69 s.get('http://httpbin.org/cookies/set/sessioncookie/123456789')7071This will make sure the session is closed as soon as the ``with`` block is72exited, even if unhandled exceptions occurred.737475.. admonition:: Remove a Value From a Dict Parameter7644 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.8046All values that are contained within a session are directly available to you. See the :ref:`Session API Docs <sessionapi>` to learn more.81All values that are contained within a session are directly available to you.82See the :ref:`Session API Docs <sessionapi>` to learn more.8384.. _request-and-response-objects:8586Request and Response Objects87----------------------------8889Whenever a call is made to ``requests.get()`` and friends you are doing two
24 unmodified lines
114 >>> r.request.headers115 {'Accept-Encoding': 'identity, deflate, compress, gzip',116 'Accept': '*/*', 'User-Agent': 'python-requests/1.2.0'}117118.. _prepared-requests:119120Prepared Requests121-----------------12283Whenever you receive a :class:`Response <requests.models.Response>` object123Whenever you receive a :class:`Response <requests.Response>` object124from 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 extra126work to the body or headers (or anything else really) before sending a127request. The simple recipe for this is the following::
22 unmodified lines
150151Since you are not doing anything special with the ``Request`` object, you152prepare it immediately and modify the ``PreparedRequest`` object. You then153send that with the other parameters you would have sent to ``requests.*`` or114``Sesssion.*``.154``Session.*``.155156However, 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 will159not get applied to your request. To get a120:class:`PreparedRequest <requests.models.PreparedRequest>` with that state160:class:`PreparedRequest <requests.PreparedRequest>` with that state161applied, 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 lines
184 )185186 print(resp.status_code)187188.. _verification:189190SSL Cert Verification191---------------------192151Requests 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::193Requests can verify SSL certificates for HTTPS requests, just like a web browser.194To check a host's SSL certificate, you can use the ``verify`` argument::195196 >>> 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 line
200201 >>> requests.get('https://github.com', verify=True)202 <Response [200]>203161You can also pass ``verify`` the path to a CA_BUNDLE file for private certs. You can also set the ``REQUESTS_CA_BUNDLE`` environment variable.204You can pass ``verify`` the path to a CA_BUNDLE file or directory with certificates of trusted CAs::205206 >>> requests.get('https://github.com', verify='/path/to/certfile')207208This list of trusted CAs can also be specified through the ``REQUESTS_CA_BUNDLE`` environment variable.209210Requests can also ignore verifying the SSL certificate if you set ``verify`` to False.211212::213
1 unmodified line
215 <Response [200]>216217By default, ``verify`` is set to True. Option ``verify`` only applies to host certs.218172You 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::219You can also specify a local cert to use as client side certificate, as a single220file (containing the private key and the certificate) or as a tuple of both221file's path::222223 >>> requests.get('https://kennethreitz.com', cert=('/path/server.crt', '/path/key'))224 <Response [200]>225
1 unmodified line
227228 >>> 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 lib230231.. _ca-certificates:232233CA Certificates234---------------235236By 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 Requests238version. This means that if you pin a Requests version your certificates can239become extremely out of date.240241From Requests version 2.4.0 onwards, Requests will attempt to use certificates242from `certifi`_ if it is present on the system. This allows for users to update243their trusted certificates without having to change the code that runs on their244system.245246For the sake of security we recommend upgrading certifi frequently!247248.. _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.txt252253.. _body-content-workflow:254255Body Content Workflow256---------------------257258By default, when you make a request, the body of the response is downloaded187immediately. You can override this behavior and defer downloading the response259immediately. You can override this behaviour and defer downloading the response260body until you access the :class:`Response.content <requests.Response.content>`261attribute with the ``stream`` parameter::262263 tarball_url = 'https://github.com/kennethreitz/requests/tarball/master'264 r = requests.get(tarball_url, stream=True)265194At this point only the response headers have been downloaded and the connection remains open, hence allowing us to make content retrieval conditional::266At this point only the response headers have been downloaded and the connection267remains open, hence allowing us to make content retrieval conditional::268269 if int(r.headers['content-length']) < TOO_LONG:270 content = r.content271 ...272200You 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>`.273You can further control the workflow by use of the :class:`Response.iter_content <requests.Response.iter_content>`274and :class:`Response.iter_lines <requests.Response.iter_lines>` methods.275Alternatively, you can read the undecoded body from the underlying276urllib3 :class:`urllib3.HTTPResponse <urllib3.response.HTTPResponse>` at277:class:`Response.raw <requests.Response.raw>`.278279If you set ``stream`` to ``True`` when making a request, Requests cannot280release the connection back to the pool unless you consume all the data or call281:class:`Response.close <requests.Response.close>`. This can lead to282inefficiency with connections. If you find yourself partially reading request283bodies (or not reading them at all) while using ``stream=True``, you should284consider using ``contextlib.closing`` (`documented here`_), like this::285286 from contextlib import closing287288 with closing(requests.get('http://httpbin.org/get', stream=True)) as r:289 # Do things with the response here.290291.. _`documented here`: http://docs.python.org/2/library/contextlib.html#contextlib.closing292293.. _keep-alive:294295Keep-Alive296----------297206Excellent 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!298Excellent news — thanks to urllib3, keep-alive is 100% automatic within a session!299Any requests that you make within a session will automatically reuse the appropriate300connection!301208Note 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.302Note that connections are only released back to the pool for reuse once all body303data has been read; be sure to either set ``stream`` to ``False`` or read the304``content`` property of the ``Response`` object.305306.. _streaming-uploads:307308Streaming Uploads309-----------------310214Requests 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::311Requests supports streaming uploads, which allow you to send large streams or312files without reading them into memory. To stream and upload, simply provide a313file-like object for your body::314216 with open('massive-body') as f:315 with open('massive-body', 'rb') as f:316 requests.post('http://some.url/streamed', data=f)317318.. 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*.323324.. _binary mode: https://docs.python.org/2/tutorial/inputoutput.html#reading-and-writing-files325326327.. _chunk-encoding:328329Chunk-Encoded Requests330----------------------331223Requests 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::332Requests also supports Chunked transfer encoding for outgoing and incoming requests.333To send a chunk-encoded request, simply provide a generator (or any iterator without334a length) for your body::335225336 def gen():337 yield 'hi'338 yield 'there'339340 requests.post('http://some.url/chunked', data=gen())341342For chunked encoded responses, it's best to iterate over the data using343:meth:`Response.iter_content() <requests.models.Response.iter_content>`. In344an ideal situation you'll have set ``stream=True`` on the request, in which345case you can iterate chunk-by-chunk by calling ``iter_content`` with a chunk346size parameter of ``None``. If you want to set a maximum size of the chunk,347you can set a chunk size parameter to any integer.348349350.. _multipart:351352POST Multiple Multipart-Encoded Files353-------------------------------------354355You can send multiple files in one request. For example, suppose you want to356upload image files to an HTML form with a multiple file field 'images':357358 <input type="file" name="images" multiple="true" required="true"/>359360To do that, just set files to a list of tuples of (form_field_name, file_info):361362 >>> 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 }373374.. 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*.379380.. _binary mode: https://docs.python.org/2/tutorial/inputoutput.html#reading-and-writing-files381382383.. _event-hooks:384385Event Hooks386-----------387388Requests has a hook system that you can use to manipulate portions of
30 unmodified lines
419 >>> requests.get('http://httpbin.org', hooks=dict(response=print_url))420 http://httpbin.org421 <Response [200]>422423.. _custom-auth:424425Custom Authentication426---------------------427
35 unmodified lines
463------------------464465With :class:`requests.Response.iter_lines()` you can easily466iterate over streaming APIs such as the `Twitter Streaming314API <https://dev.twitter.com/docs/streaming-api>`_. Simply467API <https://dev.twitter.com/streaming/overview>`_. Simply468set ``stream`` to ``True`` and iterate over the response with469:class:`~requests.Response.iter_lines()`::470471 import json
4 unmodified lines
476 for line in r.iter_lines():477478 # filter out keep-alive new lines479 if line:327 print json.loads(line)480 print(json.loads(line))481482.. warning::483484 :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::488489 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)494495.. _proxies:496497Proxies498-------499500If you need to use a proxy, you can configure individual requests with the
24 unmodified lines
525 proxies = {526 "http": "http://user:pass@10.10.1.10:3128/",527 }528529To give a proxy for a specific scheme and host, use the530`scheme://hostname` form for the key. This will match for531any request to the given scheme and exact hostname.532533::534535 proxies = {536 "http://10.20.1.128": "http://10.10.1.10:5323",537 }538539Note that proxy URLs must include the scheme.540541.. _compliance:542543Compliance544----------545546Requests is intended to be compliant with all relevant specifications and
18 unmodified lines
565specification in this case. If you require a different encoding, you can566manually set the :attr:`Response.encoding <requests.Response.encoding>`567property, or use the raw :attr:`Response.content <requests.Response.content>`.568569.. _http-verbs:570571HTTP Verbs572----------573574Requests provides access to almost the full range of HTTP verbs: GET, OPTIONS,
12 unmodified lines
587588We should confirm that GitHub responded correctly. If it has, we want to work589out what type of content it is. Do this like so::590410 >>> 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-8595596So, GitHub returns JSON. That's great, we can use the :meth:`r.json
1 unmodified line
598599::600601 >>> 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' history608609So far, so simple. Well, let's investigate the GitHub API a little bit. Now,610we could look at the documentation, but we might have a little more fun if we
14 unmodified lines
625626::627628 >>> verbs = requests.options('http://a-good-website.com/api/cats')448 >>> print verbs.headers['allow']629 >>> print(verbs.headers['allow'])630 GET,HEAD,POST,OPTIONS631632Turning to the documentation, we see that the only other method allowed for633commits is POST, which creates a new commit. As we're using the Requests repo,
8 unmodified lines
642 >>> 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 3650651Cool, we have three comments. Let's take a look at the last of them.652
2 unmodified lines
655 >>> 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" section663664Well, that seems like a silly place. Let's post a comment telling the poster665that he's silly. Who is the poster, anyway?666667::668488 >>> print comments[2][u'user'][u'login']669 >>> print(comments[2][u'user'][u'login'])670 kennethreitz671672OK, so let's tell this Kenneth guy that we think this example should go in the673quickstart guide instead. According to the GitHub API doc, the way to do this
18 unmodified lines
692 >>> 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.698699Brilliant. Oh, wait, no! I meant to add that it would take me a while, because700I had to go feed my cat. If only I could edit this comment! Happily, GitHub
1 unmodified line
702that.703704::705525 >>> 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 lines
731732::733734 >>> 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 ...740741Excellent. Time to write a Python program that abuses the GitHub API in all742kinds of exciting ways, 4995 more times.743744.. _link-headers:745746Link Headers747------------748566Many HTTP APIs feature Link headers. They make APIs more self describing and discoverable.749Many HTTP APIs feature Link headers. They make APIs more self describing and750discoverable.751568GitHub uses these for `pagination <http://developer.github.com/v3/#pagination>`_ in their API, for example::752GitHub uses these for `pagination <http://developer.github.com/v3/#pagination>`_753in their API, for example::754755 >>> 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 lines
764765 >>> r.links["last"]766 {'url': 'https://api.github.com/users/kennethreitz/repos?page=7&per_page=10', 'rel': 'last'}767768.. _transport-adapters:769770Transport Adapters771------------------772773As of v1.0.0, Requests has moved to a modular internal design. Part of the
57 unmodified lines
831 maxsize=maxsize,832 block=block,833 ssl_version=ssl.PROTOCOL_SSLv3)834648.. _`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/urllib3837838.. _blocking-or-nonblocking:839840Blocking Or Non-Blocking?841-------------------------842843With the default Transport Adapter in place, Requests does not provide any kind
8 unmodified lines
852Two excellent examples are `grequests`_ and `requests-futures`_.853854.. _`grequests`: https://github.com/kennethreitz/grequests855.. _`requests-futures`: https://github.com/ross/requests-futures856857.. _timeouts:858859Timeouts860--------861862Most requests to external servers should have a timeout attached, in case the863server is not responding in a timely manner. Without a timeout, your code may864hang for minutes or more.865866The **connect** timeout is the number of seconds Requests will wait for your867client to establish a connection to a remote machine (corresponding to the868`connect()`_) call on the socket. It's a good practice to set connect timeouts869to slightly larger than a multiple of 3, which is the default `TCP packet870retransmission window <http://www.hjp.at/doc/rfc/rfc2988.txt>`_.871872Once 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 server874to send a response. (Specifically, it's the number of seconds that the client875will wait *between* bytes sent from the server. In 99.9% of cases, this is the876time before the server sends the first byte).877878If you specify a single value for the timeout, like this::879880 r = requests.get('https://github.com', timeout=5)881882The timeout value will be applied to both the ``connect`` and the ``read``883timeouts. Specify a tuple if you would like to set the values separately::884885 r = requests.get('https://github.com', timeout=(3.05, 27))886887If the remote server is very slow, you can tell Requests to wait forever for888a response, by passing None as a timeout value and then retrieving a cup of889coffee.890891.. code-block:: python892893 r = requests.get('https://github.com', timeout=None)894895.. _`connect()`: http://linux.die.net/man/2/connect
modified:docs/user/authentication.rst+1 added-1 removed
97 unmodified lines
98If you can't find a good implementation of the form of authentication you99want, you can implement it yourself. Requests makes it easy to add your own100forms of authentication.101102To do so, subclass :class:`requests.auth.AuthBase` and implement the102To do so, subclass :class:`AuthBase <requests.auth.AuthBase>` and implement the103``__call__()`` method::104105 >>> import requests106 >>> class MyAuth(requests.auth.AuthBase):
22 unmodified lines
modified:docs/user/install.rst+4 added-13 removed
8 unmodified lines
910Distribute & Pip11----------------1213Installing Requests is simple with `pip <http://www.pip-installer.org/>`_::13Installing Requests is simple with `pip <https://pip.pypa.io>`_, just run14this in your terminal::1516 $ pip install requests1718or, with `easy_install <http://pypi.python.org/pypi/setuptools>`_::1920 $ easy_install requests2121But, you really `shouldn't do that <http://www.pip-installer.org/en/latest/other-tools.html#pip-compared-to-easy-install>`_.22But, you really `shouldn't do that <https://stackoverflow.com/questions/3220404/why-use-pip-over-easy-install>`_.23242425Cheeseshop (PyPI) Mirror26------------------------2728If the Cheeseshop (a.k.a. PyPI) is down, you can also install Requests from one29of the mirrors. `Crate.io <http://crate.io>`_ is one of them::3031 $ pip install -i http://simple.crate.io/ requests323325Get the Code26------------2728Requests is actively developed on GitHub, where the code is29`always available <https://github.com/kennethreitz/requests>`_.3031You can either clone the public repository::3242 git clone git://github.com/kennethreitz/requests.git33 $ git clone git://github.com/kennethreitz/requests.git3435Download the `tarball <https://github.com/kennethreitz/requests/tarball/master>`_::3637 $ curl -OL https://github.com/kennethreitz/requests/tarball/master
10 unmodified lines
modified:docs/user/quickstart.rst+91 added-33 removed
4 unmodified lines
56.. module:: requests.models78Eager to get started? This page gives a good introduction in how to get started9with Requests. This assumes you already have Requests installed. If you do not,10head over to the :ref:`Installation <install>` section.9with Requests.1011First, make sure that:1213* Requests is :ref:`installed <install>`
14 unmodified lines
2829Now, let's try to get a webpage. For this example, let's get GitHub's public30timeline ::3133 >>> r = requests.get('https://github.com/timeline.json')32 >>> r = requests.get('https://api.github.com/events')3335Now, we have a :class:`Response` object called ``r``. We can get all the36information we need from this object.34Now, we have a :class:`Response <requests.Response>` object called ``r``. We can35get all the information we need from this object.3637Requests' simple API means that all forms of HTTP request are as obvious. For38example, this is how you make an HTTP POST request::3941 >>> r = requests.post("http://httpbin.org/post")40 >>> r = requests.post("http://httpbin.org/post", data = {"key":"value"})4142Nice, right? What about the other HTTP request types: PUT, DELETE, HEAD and43OPTIONS? These are all just as simple::4446 >>> 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 lines
7273Note that any dictionary key whose value is ``None`` will not be added to the74URL's query string.7576You can also pass a list of items as a value::7778 >>> 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=value38283Response Content84----------------8586We can read the content of the server's response. Consider the GitHub timeline87again::8889 >>> 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/...9394Requests will automatically decode content from the server. Most unicode
44 unmodified lines
139140There's also a builtin JSON decoder, in case you're dealing with JSON data::141142 >>> 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/...146147In case the JSON decoding fails, ``r.json`` raises an exception. For example, if143the response gets a 401 (Unauthorized), attempting ``r.json`` raises ``ValueError:144No JSON object could be decoded``148the response gets a 204 (No Content), or if the response contains invalid JSON,149attempting ``r.json`` raises ``ValueError: No JSON object could be decoded``.150151It should be noted that the success of the call to ``r.json`` does **not**152indicate the success of the response. Some servers may return a JSON object in a153failed response (e.g. error details with HTTP 500). Such JSON will be decoded154and returned. To check that a request is successful, use155``r.raise_for_status()`` or check ``r.status_code`` is what you expect.156157158Raw Response Content159--------------------160161In the rare case that you'd like to get the raw socket response from the162server, 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::164154 >>> 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 lines
186187If you'd like to add HTTP headers to a request, simply pass in a ``dict`` to the188``headers`` parameter.189179For example, we didn't specify our content-type in the previous example::190For example, we didn't specify our user-agent in the previous example::191192 >>> 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'}195186 >>> r = requests.post(url, data=json.dumps(payload), headers=headers)196 >>> r = requests.get(url, headers=headers)197198Note: Custom headers are given less precedence than more specific sources of information. For instance:199200* 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.204205Furthermore, 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.206207208More complicated POST requests209------------------------------210211Typically, you want to send some form-encoded data — much like an HTML form.
1 unmodified line
213dictionary of data will automatically be form-encoded when the request is made::214215 >>> 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 line
223 },224 ...225 }226208There 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.227There are many times that you want to send data that is not form-encoded. If228you pass in a ``string`` instead of a ``dict``, that data will be posted directly.229230For example, the GitHub API v3 accepts JSON-Encoded POST/PATCH data::231232 >>> import json
1 unmodified line
234 >>> payload = {'some': 'data'}235236 >>> r = requests.post(url, data=json.dumps(payload))237238Instead of encoding the ``dict`` yourself, you can also pass it directly using239the ``json`` parameter (added in version 2.4.2) and it will be encoded automatically::240241 >>> url = 'https://api.github.com/some/endpoint'242 >>> payload = {'some': 'data'}243244 >>> r = requests.post(url, json=payload)245246247POST a Multipart-Encoded File248-----------------------------249250Requests makes it simple to upload Multipart-encoded files::
10 unmodified lines
261 },262 ...263 }264237You can set the filename explicitly::265You can set the filename, content_type and headers explicitly::266267 >>> 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'})}269270 >>> r = requests.post(url, files=files)271 >>> r.text272 {
18 unmodified lines
291 },292 ...293 }294295In the event you are posting a very large file as a ``multipart/form-data``296request, you may want to stream the request. By default, ``requests`` does not297support 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.300301For sending multiple files in one request refer to the :ref:`advanced <advanced>`302section.303304.. 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*.309310.. _binary mode: https://docs.python.org/2/tutorial/inputoutput.html#reading-and-writing-files311312313Response Status Codes314---------------------315316We can check the response status code::
7 unmodified lines
324325 >>> r.status_code == requests.codes.ok326 True327283If we made a bad request (a 4XX client error or 5XX server error response), we can raise it with284:class:`Response.raise_for_status()`::328If we made a bad request (a 4XX client error or 5XX server error response), we329can raise it with330:meth:`Response.raise_for_status() <requests.Response.raise_for_status>`::331332 >>> bad_r = requests.get('http://httpbin.org/status/404')333 >>> bad_r.status_code334 404
29 unmodified lines
364 'content-type': 'application/json'365 }366367The dictionary is special, though: it's made just for HTTP headers. According to322`RFC 2616 <http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html>`_, HTTP323Headers are case-insensitive.368`RFC 7230 <http://tools.ietf.org/html/rfc7230#section-3.2>`_, HTTP Header names369are case-insensitive.370371So, we can access the headers using any capitalization we want::372373 >>> r.headers['Content-Type']
1 unmodified line
375376 >>> r.headers.get('content-type')377 'application/json'378379It is also special in that the server could have sent the same header multiple380times with different values, but requests combines them so they can be381represented in the dictionary within a single mapping, as per382`RFC 7230 <http://tools.ietf.org/html/rfc7230#section-3.2>`_:383384 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.388389Cookies390-------391337If a response contains some Cookies, you can get quick access to them::392If a response contains some Cookies, you can quickly access them::393394 >>> url = 'http://example.com/some/cookie/setting/url'395 >>> r = requests.get(url)396
13 unmodified lines
410411Redirection and History412-----------------------413359Requests will automatically perform location redirection for all verbs except414By default Requests will perform location redirection for all verbs except415HEAD.416362GitHub redirects all HTTP requests to HTTPS. We can use the ``history`` method363of the Response object to track redirection. Let's see what GitHub does::417We can use the ``history`` property of the Response object to track redirection.418419The :meth:`Response.history <requests.Response.history>` list contains the420:class:`Response <requests.Response>` objects that were created in order to421complete the request. The list is sorted from the oldest to the most recent422response.423424For example, GitHub redirects all HTTP requests to HTTPS::425426 >>> r = requests.get('http://github.com')427 >>> r.url428 'https://github.com/'429 >>> r.status_code430 200431 >>> r.history432 [<Response [301]>]433373The :class:`Response.history` list contains the :class:`Request` objects that374were created in order to complete the request. The list is sorted from the375oldest to the most recent request.434435If you're using GET, OPTIONS, POST, PUT, PATCH or DELETE, you can disable436redirection handling with the ``allow_redirects`` parameter::437
4 unmodified lines
442 []443444If you're using HEAD, you can enable redirection as well::445388 >>> 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 lines
475476In the event of a network problem (e.g. DNS failure, refused connection, etc),477Requests will raise a :class:`~requests.exceptions.ConnectionError` exception.478421In the event of the rare invalid HTTP response, Requests will raise an479In the rare event of an invalid HTTP response, Requests will raise an480:class:`~requests.exceptions.HTTPError` exception.481482If a request times out, a :class:`~requests.exceptions.Timeout` exception is483raised.
10 unmodified lines
modified:docs/api.rst+21 added-19 removed
3 unmodified lines
4===================56.. module:: requests78This part of the documentation covers all the interfaces of Requests. For8This part of the documentation covers all the interfaces of Requests. For9parts where Requests depends on external libraries, we document the most10important right here and provide links to the canonical documentation.1112
30 unmodified lines
4344.. autoclass:: requests.adapters.HTTPAdapter45 :inherited-members:4647Authentication48--------------4950.. autoclass:: requests.auth.AuthBase51.. autoclass:: requests.auth.HTTPBasicAuth52.. autoclass:: requests.auth.HTTPProxyAuth53.. autoclass:: requests.auth.HTTPDigestAuth5455Exceptions56~~~~~~~~~~5758.. 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.Timeout666768Status Code Lookup69~~~~~~~~~~~~~~~~~~
10 unmodified lines
8081 >>> requests.codes['\o/']82 2008384.. _api-cookies:8586Cookies87~~~~~~~8889.. autofunction:: requests.utils.dict_from_cookiejar90.. autofunction:: requests.utils.cookiejar_from_dict91.. autofunction:: requests.utils.add_dict_to_cookiejar9293.. autoclass:: requests.cookies.RequestsCookieJar94 :inherited-members:9596.. autoclass:: requests.cookies.CookieConflictError97 :inherited-members:9899100Encodings101~~~~~~~~~102103.. autofunction:: requests.utils.get_encodings_from_content
152 unmodified lines
256 # this raises requests.exceptions.MissingSchema257 requests.get("http://example.org", proxies=proxies)258259242Behavioral Changes243~~~~~~~~~~~~~~~~~~260Behavioural Changes261~~~~~~~~~~~~~~~~~~~~~~~262263* 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.267250* 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.253254 ::255256 tarball_url = 'https://github.com/kennethreitz/requests/tarball/master'257258 # One second timeout for the connection attempt259 # Unlimited time to download the tarball260 r = requests.get(tarball_url, stream=True, timeout=1)261262 # 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 lines
45master_doc = 'index'4647# General information about the project.48project = u'Requests'49copyright = u'2014. A <a href="http://kennethreitz.com/pages/open-projects.html">Kenneth Reitz</a> Project'49copyright = u'2015. A <a href="http://kennethreitz.com/pages/open-projects.html">Kenneth Reitz</a> Project'5051# 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 lines
modified:docs/index.rst+20 added-6 removed
6 unmodified lines
7=========================89Release v\ |version|. (:ref:`Installation <install>`)1011Requests is an :ref:`Apache2 Licensed <apache2>` HTTP library, written in Python, for human beings.11Requests is an :ref:`Apache2 Licensed <apache2>` HTTP library, written in12Python, for human beings.1314Python's standard **urllib2** module provides most of15the HTTP capabilities you need, but the API is thoroughly **broken**.15It 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.16It was built for a different time — and a different web. It requires an17*enormous* amount of work (even method overrides) to perform the simplest of18tasks.1920Things shouldn’t be this way. Not in Python.2122::
11 unmodified lines
34 {u'private_gists': 419, u'total_private_repos': 77, ...}3536See `similar code, without Requests <https://gist.github.com/973705>`_.3735Requests 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.38Requests takes all of the work out of Python HTTP/1.1 — making your integration39with web services seamless. There's no need to manually add query strings to40your URLs, or to form-encode your POST data. Keep-alive and HTTP connection41pooling are 100% automatic, powered by `urllib3 <https://github.com/shazow/urllib3>`_,42which is embedded within Requests.434445Testimonials46------------4741Her 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.48Her Majesty's Government, Amazon, Google, Twilio, Runscope, Mozilla, Heroku,49PayPal, NPR, Obama for America, Transifex, Native Instruments, The Washington50Post, Twitter, SoundCloud, Kippt, Readability, Sony, and Federal US Institutions that prefer to be unnamed51use Requests internally. It has been downloaded over 60,000,000 times from PyPI.5253**Armin Ronacher**54 Requests is the perfect example how beautiful an API can be with the55 right level of abstraction.
26 unmodified lines
82- Unicode Response Bodies83- Multipart File Uploads84- Connection Timeouts85- ``.netrc`` support76- Python 2.6—3.386- Python 2.6—3.487- Thread-safe.888990User Guide
22 unmodified lines
113.. toctree::114 :maxdepth: 1115116 community/faq107 community/out-there.rst117 community/recommended118 community/out-there119 community/support120 community/vulnerabilities121 community/updates122 community/release-process123124API Documentation125-----------------126
14 unmodified lines
141142.. toctree::143 :maxdepth: 1144145 dev/contributing146 dev/philosophy147 dev/todo148 dev/authors
added: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 lines
14# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA15# 02110-1301 USA16######################### END LICENSE BLOCK #########################1718__version__ = "2.2.1"18__version__ = "2.3.0"19from sys import version_info202122def detect(aBuf):
10 unmodified lines
modified:requests/packages/chardet/chardetect.py+49 added-15 removed
10 unmodified lines
1112If no paths are provided, it takes its input from stdin.1314"""1516from __future__ import absolute_import, print_function, unicode_literals1718import argparse19import sys20from io import open16from sys import argv, stdin2122from chardet import __version__23from chardet.universaldetector import UniversalDetector242521def description_of(file, name='stdin'):22 """Return a string describing the probable encoding of a file."""26def description_of(lines, name='stdin'):27 """28 Return a string describing the probable encoding of a file or29 list of strings.3031 :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)464736def 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))48def main(argv=None):49 '''50 Handles command line arguments and gets things started.5152 :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)6970 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))777879if __name__ == '__main__':80 main()
modified:requests/packages/chardet/jpcntx.py+8 added
175 unmodified lines
176 def get_order(self, aBuf):177 return -1, 1178179class SJISContextAnalysis(JapaneseContextAnalysis):180 def __init__(self):181 self.charset_name = "SHIFT_JIS"182183 def get_charset_name(self):184 return self.charset_name185186 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 = 1197198 # return its order if it is hiragana
29 unmodified lines
modified:requests/packages/chardet/latin1prober.py+3 added-3 removed
127 unmodified lines
128 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 confidence
modified:requests/packages/chardet/mbcssm.py+3 added-6 removed
351 unmodified lines
352 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 does
7 unmodified lines
368 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 - ff374375376SJIS_st = (377 eError,eStart,eStart, 3,eError,eError,eError,eError,#00-07
191 unmodified lines
569 'classFactor': 16,570 'stateTable': UTF8_st,571 'charLenTable': UTF8CharLenTable,572 'name': 'UTF-8'}574575# flake8: noqa
modified:requests/packages/chardet/sjisprober.py+1 added-1 removed
45 unmodified lines
46 MultiByteCharSetProber.reset(self)47 self._mContextAnalyzer.reset()4849 def get_charset_name(self):50 return "SHIFT_JIS"50 return self._mContextAnalyzer.get_charset_name()5152 def feed(self, aBuf):53 aLen = len(aBuf)54 for i in range(0, aLen):
37 unmodified lines
modified:requests/packages/chardet/universaldetector.py+2 added-2 removed
69 unmodified lines
70 return7172 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 lines
added:requests/packages/urllib3/contrib/appengine.py+223 added
1from __future__ import absolute_import2import logging3import os4import warnings56from ..exceptions import (7 HTTPError,8 HTTPWarning,9 MaxRetryError,10 ProtocolError,11 TimeoutError,12 SSLError13)1415from ..packages.six import BytesIO16from ..request import RequestMethods17from ..response import HTTPResponse18from ..util.timeout import Timeout19from ..util.retry import Retry2021try:22 from google.appengine.api import urlfetch23except ImportError:24 urlfetch = None252627log = logging.getLogger(__name__)282930class AppEnginePlatformWarning(HTTPWarning):31 pass323334class AppEnginePlatformError(HTTPError):35 pass363738class AppEngineManager(RequestMethods):39 """40 Connection manager for Google App Engine sandbox applications.4142 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:4546 https://cloud.google.com/appengine/docs/python/urlfetch4748 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.5556 Beyond those cases, it will raise normal urllib3 errors.57 """5859 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.")6364 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.")6970 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)7576 RequestMethods.__init__(self, headers)77 self.validate_certificate = validate_certificate7879 self.retries = retries or Retry.DEFAULT8081 def __enter__(self):82 return self8384 def __exit__(self, exc_type, exc_val, exc_tb):85 # Return False to re-raise any potential exceptions86 return False8788 def urlopen(self, method, url, body=None, headers=None,89 retries=None, redirect=True, timeout=Timeout.DEFAULT_TIMEOUT,90 **response_kw):9192 retries = self._get_retries(retries, redirect)9394 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)110111 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)117118 except urlfetch.DownloadError as e:119 if 'Too many redirects' in str(e):120 raise MaxRetryError(self, url, reason=e)121 raise ProtocolError(e)122123 except urlfetch.ResponseTooLargeError as e:124 raise AppEnginePlatformError(125 "URLFetch response too large, URLFetch only supports"126 "responses up to 32mb in size.", e)127128 except urlfetch.SSLCertificateError as e:129 raise SSLError(e)130131 except urlfetch.InvalidMethodError as e:132 raise AppEnginePlatformError(133 "URLFetch does not support method: %s" % method, e)134135 http_response = self._urlfetch_response_to_http_response(136 response, **response_kw)137138 # 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")142143 # 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)154155 return http_response156157 def _urlfetch_response_to_http_response(self, urlfetch_resp, **response_kw):158159 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')163164 if content_encoding == 'deflate':165 del urlfetch_resp.headers['content-encoding']166167 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 )175176 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 timeout186187 def _get_retries(self, retries, redirect):188 if not isinstance(retries, Retry):189 retries = Retry.from_int(190 retries, redirect=redirect, default=self.retries)191192 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)197198 return retries199200201def is_appengine():202 return (is_local_appengine() or203 is_prod_appengine() or204 is_prod_appengine_mvms())205206207def is_appengine_sandbox():208 return is_appengine() and not is_prod_appengine_mvms()209210211def is_local_appengine():212 return ('APPENGINE_RUNTIME' in os.environ and213 'Development/' in os.environ['SERVER_SOFTWARE'])214215216def 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())220221222def 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.php61"""2NTLM authenticating pool, contributed by erikcederstran34Issue #10, see: http://code.google.com/p/urllib3/issues/detail?id=105"""6from __future__ import absolute_import78try:9 from http.client import HTTPSConnection10except ImportError:
105 unmodified lines
modified: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 would2like to verify SSL certificates in Python 2. Note, the default libraries do3*not* do certificate checking; you need to do additional work to validate4certificates yourself.56This needs the following packages installed:78* pyOpenSSL (tested with 0.13)9* ndg-httpsclient (tested with 0.3.2)10* pyasn1 (tested with 0.1.6)119To activate it call :func:`~urllib3.contrib.pyopenssl.inject_into_urllib3`.10This can be done in a ``sitecustomize`` module, or at any other time before11your application begins using ``urllib3``, like this::12You can install them with the following command:1314 pip install pyopenssl ndg-httpsclient pyasn11516To activate certificate checking, call17:func:`~urllib3.contrib.pyopenssl.inject_into_urllib3` from your Python code18before you begin making HTTP requests. This can be done in a ``sitecustomize``19module, or at any other time before your application begins using ``urllib3``,20like this::2122 try:23 import urllib3.contrib.pyopenssl24 urllib3.contrib.pyopenssl.inject_into_urllib3()25 except ImportError:26 pass2728Now you can use :mod:`urllib3` as you normally would, and it will support SNI29when the required modules are installed.3031Activating this module also has the positive side effect of disabling SSL/TLS32compression in Python 2 (see `CRIME attack`_).3334If you want to configure the default list of supported cipher suites, you can35set the ``urllib3.contrib.pyopenssl.DEFAULT_SSL_CIPHER_LIST`` variable.3637Module Variables38----------------3940:var DEFAULT_SSL_CIPHER_LIST: The list of supported SSL/TLS cipher suites.4142.. _sni: https://en.wikipedia.org/wiki/Server_Name_Indication43.. _crime attack: https://en.wikipedia.org/wiki/CRIME_(security_exploit)4445'''46from __future__ import absolute_import4748try:23from ndg.httpsclient.ssl_peer_verification import SUBJ_ALT_NAME_SUPPORT24from 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 BaseSubjectAltName51except SyntaxError as e:52 raise ImportError(e)5354import OpenSSL.SSL55from pyasn1.codec.der import decoder as der_decoder27from socket import _fileobject56from pyasn1.type import univ, constraint57from socket import _fileobject, timeout, error as SocketError58import ssl59import select30from cStringIO import StringIO6061from .. import connection62from .. import util63
4 unmodified lines
6869# 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}7475if hasattr(ssl, 'PROTOCOL_TLSv1_1') and hasattr(OpenSSL.SSL, 'TLSv1_1_METHOD'):76 _openssl_versions[ssl.PROTOCOL_TLSv1_1] = OpenSSL.SSL.TLSv1_1_METHOD7778if hasattr(ssl, 'PROTOCOL_TLSv1_2') and hasattr(OpenSSL.SSL, 'TLSv1_2_METHOD'):79 _openssl_versions[ssl.PROTOCOL_TLSv1_2] = OpenSSL.SSL.TLSv1_2_METHOD8081try:82 _openssl_versions.update({ssl.PROTOCOL_SSLv3: OpenSSL.SSL.SSLv3_METHOD})83except AttributeError:84 pass8586_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}9293DEFAULT_SSL_CIPHER_LIST = util.ssl_.DEFAULT_CIPHERS9495# OpenSSL will only write 16K at a time96SSL_WRITE_BLOCKSIZE = 163849798orig_util_HAS_SNI = util.HAS_SNI99orig_connection_ssl_wrap_socket = connection.ssl_wrap_socket100101
10 unmodified lines
112 connection.ssl_wrap_socket = orig_connection_ssl_wrap_socket113 util.HAS_SNI = orig_util_HAS_SNI11411572### 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.117class SubjectAltName(BaseSubjectAltName):118 '''ASN.1 implementation for subjectAltNames support'''119120 # 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)125126127# Note: This is a slightly bug-fixed version of same from ndg-httpsclient.128def get_subj_alt_name(peer_cert):129 # Search through extensions130 dns_name = []131 if not SUBJ_ALT_NAME_SUPPORT:
22 unmodified lines
154155 return dns_name156157103class fileobject(_fileobject):104105 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 rv137138 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()170171 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)203204 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()267268158class WrappedSocket(object):270 '''API-compatibility wrapper for Python OpenSSL's Connection-class.'''159 '''API-compatibility wrapper for Python OpenSSL's Connection-class.160161 Note: _makefile_refs, _drop() and _reuse() are needed for the garbage162 collector of pypy.163 '''164272 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 = 0170171 def fileno(self):172 return self.socket.fileno()173174 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)177178 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 data200201 def settimeout(self, timeout):202 return self.socket.settimeout(timeout)203204 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 continue214215 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 += sent220221 def shutdown(self):222 # FIXME rethrow compatible exceptions should we ever use this223 self.connection.shutdown()224225 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 -= 1233234 def getpeercert(self, binary_form=False):235 x509 = self.connection.get_peer_certificate()236
14 unmodified lines
251 for value in get_subj_alt_name(x509)252 ]253 }254255 def _reuse(self):256 self._makefile_refs += 1257258 def _drop(self):259 if self._makefile_refs < 1:260 self.close()261 else:262 self._makefile_refs -= 1263264265def _verify_callback(cnx, x509, err_no, err_depth, return_code):266 return err_no == 0267268269def 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()287288 # Disable TLS compression to migitate CRIME attack (issue #309)289 OP_NO_COMPRESSION = 0x20000290 ctx.set_options(OP_NO_COMPRESSION)291292 # Set list of supported ciphersuites.293 ctx.set_cipher_list(DEFAULT_SSL_CIPHER_LIST)294295 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 break309310 return WrappedSocket(cnx, sock)
modified:requests/packages/urllib3/packages/ssl_match_hostname/__init__.py+1 added-1 removed
5 unmodified lines
6 # 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_hostname1112# Not needed, but documenting what we provide.13__all__ = ('CertificateError', 'match_hostname')
added:requests/packages/urllib3/packages/ssl_match_hostname/.gitignore+1 added
1env
modified:requests/packages/urllib3/packages/__init__.py+1 added
1from __future__ import absolute_import23from . import ssl_match_hostname45__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/55try:6 from thread import get_ident as _get_ident7except ImportError:8 from dummy_thread import get_ident as _get_ident
251 unmodified lines
added:requests/packages/urllib3/util/__init__.py+44 added
1from __future__ import absolute_import2# For backwards compatibility, provide imports that used to be here.3from .connection import is_connection_dropped4from .request import make_headers5from .response import is_fp_closed6from .ssl_ import (7 SSLContext,8 HAS_SNI,9 assert_fingerprint,10 resolve_cert_reqs,11 resolve_ssl_version,12 ssl_wrap_socket,13)14from .timeout import (15 current_time,16 Timeout,17)1819from .retry import Retry20from .url import (21 get_host,22 parse_url,23 split_first,24 Url,25)2627__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
1from __future__ import absolute_import2import socket3try:4 from select import poll, POLLIN5except 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 = False111213def is_connection_dropped(conn): # Platform-specific14 """15 Returns True if the connection is dropped and should be closed.1617 :param conn:18 :class:`httplib.HTTPConnection` object.1920 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 True2829 if not poll:30 if not select: # Platform-specific: AppEngine31 return False3233 try:34 return select([sock], [], [], 0.0)[0]35 except socket.error:36 return True3738 # 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 True454647# This function is copied from socket.py in the Python 2.7 standard48# library test suite. Added to its signature is only `socket_options`.49def create_connection(address, timeout=socket._GLOBAL_DEFAULT_TIMEOUT,50 source_address=None, socket_options=None):51 """Connect to *address* and return the socket object.5253 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 """6263 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)7273 # 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)7677 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 sock8384 except socket.error as e:85 err = e86 if sock is not None:87 sock.close()88 sock = None8990 if err is not None:91 raise err9293 raise socket.error("getaddrinfo returns an empty list")949596def _set_socket_options(sock, options):97 if options is None:98 return99100 for opt in options:101 sock.setsockopt(*opt)
added:requests/packages/urllib3/util/request.py+72 added
1from __future__ import absolute_import2from base64 import b64encode34from ..packages.six import b56ACCEPT_ENCODING = 'gzip,deflate'789def 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.1314 :param keep_alive:15 If ``True``, adds 'connection: keep-alive' header.1617 :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.2223 :param user_agent:24 String representing the user-agent you want, such as25 "python-urllib3/0.6"2627 :param basic_auth:28 Colon-separated username:password string for 'authorization: basic ...'29 auth header.3031 :param proxy_basic_auth:32 Colon-separated username:password string for 'proxy-authorization: basic ...'33 auth header.3435 :param disable_cache:36 If ``True``, adds 'cache-control: no-cache' header.3738 Example::3940 >>> 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_encoding5455 if user_agent:56 headers['user-agent'] = user_agent5758 if keep_alive:59 headers['connection'] = 'keep-alive'6061 if basic_auth:62 headers['authorization'] = 'Basic ' + \63 b64encode(b(basic_auth)).decode('utf-8')6465 if proxy_basic_auth:66 headers['proxy-authorization'] = 'Basic ' + \67 b64encode(b(proxy_basic_auth)).decode('utf-8')6869 if disable_cache:70 headers['cache-control'] = 'no-cache'7172 return headers
added:requests/packages/urllib3/util/response.py+74 added
1from __future__ import absolute_import2from ..packages.six.moves import http_client as httplib34from ..exceptions import HeaderParsingError567def is_fp_closed(obj):8 """9 Checks whether a given file-like object is closed.1011 :param obj:12 The file-like object to check.13 """1415 try:16 # Check via the official file-like-object way.17 return obj.closed18 except AttributeError:19 pass2021 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 pass2728 raise ValueError("Unable to determine whether fp is closed.")293031def assert_header_parsing(headers):32 """33 Asserts whether all headers have been successfully parsed.34 Extracts encountered errors from the result of parsing headers.3536 Only works on Python 3.3738 :param headers: Headers to verify.39 :type headers: `httplib.HTTPMessage`.4041 :raises urllib3.exceptions.HeaderParsingError:42 If parsing errors are found.43 """4445 # 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)))5051 defects = getattr(headers, 'defects', None)52 get_payload = getattr(headers, 'get_payload', None)5354 unparsed_data = None55 if get_payload: # Platform-specific: Python 3.56 unparsed_data = get_payload()5758 if defects or unparsed_data:59 raise HeaderParsingError(defects=defects, unparsed_data=unparsed_data)606162def 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.6667 :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
1from __future__ import absolute_import2import time3import logging45from ..exceptions import (6 ConnectTimeoutError,7 MaxRetryError,8 ProtocolError,9 ReadTimeoutError,10 ResponseError,11)12from ..packages import six131415log = logging.getLogger(__name__)161718class Retry(object):19 """ Retry configuration.2021 Each retry attempt will create a new Retry object with updated values, so22 they can be safely reused.2324 Retries can be defined as a default for a pool::2526 retries = Retry(connect=5, read=2, redirect=5)27 http = PoolManager(retries=retries)28 response = http.request('GET', 'http://example.com/')2930 Or per-request (which overrides the default for the pool)::3132 response = http.request('GET', 'http://example.com/', retries=Retry(10))3334 Retries can be disabled by passing ``False``::3536 response = http.request('GET', 'http://example.com/', retries=False)3738 Errors will be wrapped in :class:`~urllib3.exceptions.MaxRetryError` unless39 retries are disabled, in which case the causing exception will be raised.4041 :param int total:42 Total number of retries to allow. Takes precedence over other counts.4344 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.4748 Set to ``0`` to fail on the first retry.4950 Set to ``False`` to disable and imply ``raise_on_redirect=False``.5152 :param int connect:53 How many connection-related errors to retry on.5455 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.5758 Set to ``0`` to fail on the first retry of this type.5960 :param int read:61 How many times to retry on read errors.6263 These errors are raised after the request was sent to the server, so the64 request may have side-effects.6566 Set to ``0`` to fail on the first retry of this type.6768 :param int redirect:69 How many redirects to perform. Limit this to avoid infinite redirect70 loops.7172 A redirect is a HTTP response with a status code 301, 302, 303, 307 or73 308.7475 Set to ``0`` to fail on the first retry of this type.7677 Set to ``False`` to disable and imply ``raise_on_redirect=False``.7879 :param iterable method_whitelist:80 Set of uppercased HTTP method verbs that we should retry on.8182 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`.8586 :param iterable status_forcelist:87 A set of HTTP status codes that we should force a retry on.8889 By default, this is disabled with ``None``.9091 :param float backoff_factor:92 A backoff factor to apply between attempts. urllib3 will sleep for::9394 {backoff factor} * (2 ^ ({number of total retries} - 1))9596 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`.99100 By default, backoff is disabled (set to 0).101102 :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 """106107 DEFAULT_METHOD_WHITELIST = frozenset([108 'HEAD', 'GET', 'PUT', 'DELETE', 'OPTIONS', 'TRACE'])109110 #: Maximum backoff time.111 BACKOFF_MAX = 120112113 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):116117 self.total = total118 self.connect = connect119 self.read = read120121 if redirect is False or total is False:122 redirect = 0123 raise_on_redirect = False124125 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?131132 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)144145 @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.DEFAULT150151 if isinstance(retries, Retry):152 return retries153154 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_retries158159 def get_backoff_time(self):160 """ Formula for computing the current backoff161162 :rtype: float163 """164 if self._observed_errors <= 1:165 return 0166167 backoff_value = self.backoff_factor * (2 ** (self._observed_errors - 1))168 return min(self.BACKOFF_MAX, backoff_value)169170 def sleep(self):171 """ Sleep between retry attempts using an exponential backoff.172173 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)180181 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)186187 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))192193 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 False198199 return self.status_forcelist and status_code in self.status_forcelist200201 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 False207208 return min(retry_counts) < 0209210 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.213214 :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.219220 :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)225226 total = self.total227 if total is not None:228 total -= 1229230 _observed_errors = self._observed_errors231 connect = self.connect232 read = self.read233 redirect = self.redirect234 cause = 'unknown'235236 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 += 1243244 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 += 1251252 elif response and response.get_redirect_location():253 # Redirect retry?254 if redirect is not None:255 redirect -= 1256 cause = 'too many redirects'257258 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)266267 new_retry = self.new(268 total=total,269 connect=connect, read=read, redirect=redirect,270 _observed_errors=_observed_errors)271272 if new_retry.is_exhausted():273 raise MaxRetryError(_pool, url, error or ResponseError(cause))274275 log.debug("Incremented Retry for (url='%s'): %r" % (url, new_retry))276277 return new_retry278279 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)283284285# For backwards compatibility (equivalent to pre-v1.9):286Retry.DEFAULT = Retry(3)
added:requests/packages/urllib3/util/ssl_.py+317 added
1from __future__ import absolute_import2import errno3import warnings4import hmac56from binascii import hexlify, unhexlify7from hashlib import md5, sha1, sha25689from ..exceptions import SSLError, InsecurePlatformWarning, SNIMissingWarning101112SSLContext = None13HAS_SNI = False14create_default_context = None1516# Maps the length of a digest to a possible hash function producing this digest17HASHFUNC_MAP = {18 32: md5,19 40: sha1,20 64: sha256,21}222324def _const_compare_digest_backport(a, b):25 """26 Compare two digests of equal length in constant time.2728 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 == 0353637_const_compare_digest = getattr(hmac, 'compare_digest',38 _const_compare_digest_backport)394041try: # Test for SSL features42 import ssl43 from ssl import wrap_socket, CERT_NONE, PROTOCOL_SSLv2344 from ssl import HAS_SNI # Has SNI?45except ImportError:46 pass474849try:50 from ssl import OP_NO_SSLv2, OP_NO_SSLv3, OP_NO_COMPRESSION51except ImportError:52 OP_NO_SSLv2, OP_NO_SSLv3 = 0x1000000, 0x200000053 OP_NO_COMPRESSION = 0x200005455# 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.68DEFAULT_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)7374try:75 from ssl import SSLContext # Modern SSL?76except ImportError:77 import sys7879 class SSLContext(object): # Platform-specific: Python 2 & 3.180 supports_set_ciphers = ((2, 7) <= sys.version_info < (3,) or81 (3, 2) <= sys.version_info)8283 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 = None9394 def load_cert_chain(self, certfile, keyfile):95 self.certfile = certfile96 self.keyfile = keyfile9798 def load_verify_locations(self, cafile=None, capath=None):99 self.ca_certs = cafile100101 if capath is not None:102 raise SSLError("CA directories not supported in older Pythons")103104 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_suite112113 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)133134135def assert_fingerprint(cert, fingerprint):136 """137 Checks if given fingerprint matches the supplied certificate.138139 :param cert:140 Certificate as bytes object.141 :param fingerprint:142 Fingerprint as string of hexdigits, can be interspersed by colons.143 """144145 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))151152 # We need encode() here for py32; works on py2 and p33.153 fingerprint_bytes = unhexlify(fingerprint.encode())154155 cert_digest = hashfunc(cert).digest()156157 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)))160161162def 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_NONE175176 if isinstance(candidate, str):177 res = getattr(ssl, candidate, None)178 if res is None:179 res = getattr(ssl, 'CERT_' + candidate)180 return res181182 return candidate183184185def resolve_ssl_version(candidate):186 """187 like resolve_cert_reqs188 """189 if candidate is None:190 return PROTOCOL_SSLv23191192 if isinstance(candidate, str):193 res = getattr(ssl, candidate, None)194 if res is None:195 res = getattr(ssl, 'PROTOCOL_' + candidate)196 return res197198 return candidate199200201def 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``.204205 By default, this function does a lot of the same work that206 ``ssl.create_default_context`` does on Python 3.4+. It:207208 - Disables SSLv2, SSLv3, and compression209 - Sets a restricted set of server ciphers210211 If you wish to enable SSLv3, you can do::212213 from urllib3.util import ssl_214 context = ssl_.create_urllib3_context()215 context.options &= ~ssl_.OP_NO_SSLv3216217 You can do the same to enable compression (substituting ``COMPRESSION``218 for ``SSLv3`` in the last line above).219220 :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)237238 # 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_reqs240241 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_COMPRESSION250251 context.options |= options252253 if getattr(context, 'supports_set_ciphers', True): # Platform-specific: Python 2.6254 context.set_ciphers(ciphers or DEFAULT_CIPHERS)255256 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 context262263264def 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`.271272 :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)289290 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 raise301302 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)306307 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
1from __future__ import absolute_import2# The default socket timeout, used by httplib to indicate that no timeout was3# specified by the user4from socket import _GLOBAL_DEFAULT_TIMEOUT5import time67from ..exceptions import TimeoutStateError89# A sentinel value to indicate that no timeout was specified by the user in10# urllib311_Default = object()121314def current_time():15 """16 Retrieve the current time. This function is mocked out in unit testing.17 """18 return time.time()192021class Timeout(object):22 """ Timeout configuration.2324 Timeouts can be defined as a default for a pool::2526 timeout = Timeout(connect=2.0, read=7.0)27 http = PoolManager(timeout=timeout)28 response = http.request('GET', 'http://example.com/')2930 Or per-request (which overrides the default for the pool)::3132 response = http.request('GET', 'http://example.com/', timeout=Timeout(10))3334 Timeouts can be disabled by setting all the parameters to ``None``::3536 no_timeout = Timeout(connect=None, read=None)37 response = http.request('GET', 'http://example.com/, timeout=no_timeout)383940 :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.4546 Defaults to None.4748 :type total: integer, float, or None4950 :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.5657 :type connect: integer, float, or None5859 :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.6667 :type read: integer, float, or None6869 .. note::7071 Many factors can affect the total amount of time for urllib3 to return72 an HTTP response.7374 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.7879 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.8788 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 """9293 #: A sentinel object representing the default timeout value94 DEFAULT_TIMEOUT = _GLOBAL_DEFAULT_TIMEOUT9596 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 = None101102 def __str__(self):103 return '%s(connect=%r, read=%r, total=%r)' % (104 type(self).__name__, self._connect, self._read, self.total)105106 @classmethod107 def _validate_timeout(cls, value, name):108 """ Check that a timeout attribute is valid.109110 :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_TIMEOUT119120 if value is None or value is cls.DEFAULT_TIMEOUT:121 return value122123 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))128129 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))137138 return value139140 @classmethod141 def from_float(cls, timeout):142 """ Create a new Timeout from a legacy timeout value.143144 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.148149 :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)155156 def clone(self):157 """ Create a copy of the timeout object158159 Timeout properties are stored per-pool but each request needs a fresh160 Timeout object to ensure each one has its own start/stop configured.161162 :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)170171 def start_connect(self):172 """ Start the timeout clock, used during a connect() attempt173174 :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_connect181182 def get_connect_duration(self):183 """ Gets the time elapsed since the call to :meth:`start_connect`.184185 :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_connect194195 @property196 def connect_timeout(self):197 """ Get the value to use when setting a connection timeout.198199 This will be a positive float or integer, the value None200 (never timeout), or the default system timeout.201202 :return: Connect timeout.203 :rtype: int, float, :attr:`Timeout.DEFAULT_TIMEOUT` or None204 """205 if self.total is None:206 return self._connect207208 if self._connect is None or self._connect is self.DEFAULT_TIMEOUT:209 return self.total210211 return min(self._connect, self.total)212213 @property214 def read_timeout(self):215 """ Get the value for the read timeout.216217 This assumes some time has elapsed in the connection timeout and218 computes the read timeout appropriately.219220 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.224225 :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._read
added:requests/packages/urllib3/util/url.py+217 added
1from __future__ import absolute_import2from collections import namedtuple34from ..exceptions import LocationParseError567url_attrs = ['scheme', 'auth', 'host', 'port', 'path', 'query', 'fragment']8910class 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 = ()1617 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)2324 @property25 def hostname(self):26 """For backwards-compatibility with urlparse. We're nice like that."""27 return self.host2829 @property30 def request_uri(self):31 """Absolute path including the query string."""32 uri = self.path or '/'3334 if self.query is not None:35 uri += '?' + self.query3637 return uri3839 @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.host4546 @property47 def url(self):48 """49 Convert self into a url5051 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).5556 Example: ::5758 >>> 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 = ''6768 # 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 += '#' + fragment8384 return url8586 def __str__(self):87 return self.url888990def 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.9495 If not found, then the first part is the full input string.9697 Example::9899 >>> split_first('foo/bar?baz', '?/=')100 ('foo', 'bar?baz', '/')101 >>> split_first('foo/bar?baz', '123')102 ('foo/bar?baz', '', None)103104 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 continue112113 if min_idx is None or idx < min_idx:114 min_idx = idx115 min_delim = d116117 if min_idx is None or min_idx < 0:118 return s, '', None119120 return s[:min_idx], s[min_idx + 1:], min_delim121122123def 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.127128 Partly backwards-compatible with :mod:`urlparse`.129130 Example::131132 >>> 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 """139140 # 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.144145 if not url:146 # Empty147 return Url()148149 scheme = None150 auth = None151 host = None152 port = None153 path = None154 fragment = None155 query = None156157 # Scheme158 if '://' in url:159 scheme, url = url.split('://', 1)160161 # Find the earliest Authority Terminator162 # (http://tools.ietf.org/html/rfc3986#section-3.2)163 url, path_, delim = split_first(url, ['/', '?', '#'])164165 if delim:166 # Reassemble the path167 path = delim + path_168169 # Auth170 if '@' in url:171 # Last '@' denotes end of auth part172 auth, url = url.rsplit('@', 1)173174 # IPv6175 if url and url[0] == '[':176 host, url = url.split(']', 1)177 host += ']'178179 # Port180 if ':' in url:181 _host, port = url.split(':', 1)182183 if not host:184 host = _host185186 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 = None194195 elif not host and url:196 host = url197198 if not path:199 return Url(scheme, auth, host, port, path, query, fragment)200201 # Fragment202 if '#' in path:203 path, fragment = path.split('#', 1)204205 # Query206 if '?' in path:207 path, query = path.split('?', 1)208209 return Url(scheme, auth, host, port, path, query, fragment)210211212def 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.port
modified: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.php61"""2urllib3 - Thread-safe connection pooling and re-using.3"""411__author__ = 'Andrey Petrov (andrey.petrov@shazow.net)'12__license__ = 'MIT'13__version__ = 'dev'5from __future__ import absolute_import6import warnings7158from .connectionpool import (9 HTTPConnectionPool,10 HTTPSConnectionPool,11 connection_from_url
2 unmodified lines
14from . import exceptions15from .filepost import encode_multipart_formdata16from .poolmanager import PoolManager, ProxyManager, proxy_from_url17from .response import HTTPResponse26from .util import make_headers, get_host, Timeout18from .util.request import make_headers19from .util.url import get_host20from .util.timeout import Timeout21from .util.retry import Retry222324# Set default logging handler to avoid "No handler found" warnings.25import logging
3 unmodified lines
29 class NullHandler(logging.Handler):30 def emit(self, record):31 pass3233__author__ = 'Andrey Petrov (andrey.petrov@shazow.net)'34__license__ = 'MIT'35__version__ = '1.13'3637__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)5354logging.getLogger(__name__).addHandler(NullHandler())555657def add_stderr_logger(level=logging.DEBUG):58 """59 Helper for quickly adding a StreamHandler to the logger. Useful for60 debugging.
6 unmodified lines
67 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 handler7374# ... Clean up.75del NullHandler767778# SecurityWarning's always go off by default.79warnings.simplefilter('always', exceptions.SecurityWarning, append=True)80# SubjectAltNameWarning's should go off once per host81warnings.simplefilter('default', exceptions.SubjectAltNameWarning)82# InsecurePlatformWarning's don't vary between requests, so we keep it default.83warnings.simplefilter('default', exceptions.InsecurePlatformWarning,84 append=True)85# SNIMissingWarnings should go off only once.86warnings.simplefilter('default', exceptions.SNIMissingWarning)878889def 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.php67from collections import MutableMapping1from __future__ import absolute_import2from collections import Mapping, MutableMapping3try:4 from threading import RLock10except ImportError: # Platform-specific: No threads available5except ImportError: # Platform-specific: No threads available6 class RLock:7 def __enter__(self):8 pass910 def __exit__(self, exc_type, exc_value, traceback):11 pass121319try: # Python 2.7+14try: # Python 2.7+15 from collections import OrderedDict16except ImportError:17 from .packages.ordered_dict import OrderedDict18from .packages.six import iterkeys, itervalues, PY3192025__all__ = ['RecentlyUsedContainer']21__all__ = ['RecentlyUsedContainer', 'HTTPHeaderDict']222324_Null = object()25
59 unmodified lines
8586 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()9192 if self.dispose_func:93 for value in values:94 self.dispose_func(value)9596 def keys(self):97 with self.lock:103 return self._container.keys()98 return list(iterkeys(self._container))99100101class HTTPHeaderDict(MutableMapping):102 """103 :param headers:104 An iterable of field-value pairs. Must not contain multiple field names105 when compared case-insensitively.106107 :param kwargs:108 Additional field-value pairs to pass in to ``dict.update``.109110 A ``dict`` like container for storing HTTP Headers.111112 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.115116 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.120121 If multiple fields that are equal case-insensitively are passed to the122 constructor or ``.update``, the behavior is undefined and some will be123 lost.124125 >>> 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 """134135 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)145146 def __setitem__(self, key, val):147 self._container[key.lower()] = (key, val)148 return self._container[key.lower()]149150 def __getitem__(self, key):151 val = self._container[key.lower()]152 return ', '.join(val[1:])153154 def __delitem__(self, key):155 del self._container[key.lower()]156157 def __contains__(self, key):158 return key.lower() in self._container159160 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()))167168 def __ne__(self, other):169 return not self.__eq__(other)170171 if not PY3: # Python 2172 iterkeys = MutableMapping.iterkeys173 itervalues = MutableMapping.itervalues174175 __marker = object()176177 def __len__(self):178 return len(self._container)179180 def __iter__(self):181 # Only provide the originally cased names182 for vals in self._container.values():183 yield vals[0]184185 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 value201202 def discard(self, key):203 try:204 del self[key]205 except KeyError:206 pass207208 def add(self, key, val):209 """Adds a (name, value) pair, doesn't overwrite the value if it already210 exists.211212 >>> 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]230231 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 ()240241 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)253254 for key, value in kwargs.items():255 self.add(key, value)256257 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:]269270 # Backwards compatibility for httplib271 getheaders = getlist272 getallmatchingheaders = getlist273 iget = getlist274275 def __repr__(self):276 return "%s(%s)" % (type(self).__name__, dict(self.itermerged()))277278 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] + val285286 def copy(self):287 clone = type(self)()288 clone._copy_from(self)289 return clone290291 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], val297298 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:])303304 def items(self):305 return list(self.iteritems())306307 @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 = []314315 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 continue320321 key, value = line.split(':', 1)322 headers.append((key, value.strip()))323324 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.php61from __future__ import absolute_import2import datetime3import os4import sys5import socket8from socket import timeout as SocketTimeout6from socket import error as SocketError, timeout as SocketTimeout7import warnings8from .packages import six910try: # Python 311 from http.client import HTTPConnection, HTTPException10try: # Python 311 from http.client import HTTPConnection as _HTTPConnection12 from http.client import HTTPException # noqa: unused in this module13except ImportError:13 from httplib import HTTPConnection, HTTPException14 from httplib import HTTPConnection as _HTTPConnection15 from httplib import HTTPException # noqa: unused in this module1615class DummyConnection(object):16 "Used to detect a failed ConnectionCls import."17 pass1819try: # Compiled with SSL?17try: # Compiled with SSL?18 import ssl19 BaseSSLError = ssl.SSLError20except (ImportError, AttributeError): # Platform-specific: No SSL.21 ssl = None21 HTTPSConnection = DummyConnection2223 class BaseSSLError(BaseException):24 pass2526 try: # Python 327 from http.client import HTTPSConnection28 except ImportError:29 from httplib import HTTPSConnection2631 import ssl32 BaseSSLError = ssl.SSLError27try: # Python 3:28 # Not a no-op, we're adding this to the namespace so it can be imported.29 ConnectionError = ConnectionError30except NameError: # Python 2:31 class ConnectionError(Exception):32 pass3334except (ImportError, AttributeError): # Platform-specific: No SSL.35 pass3435from .exceptions import (36 NewConnectionError,37 ConnectTimeoutError,38 SubjectAltNameWarning,39 SystemTimeWarning,40)41from .packages.ssl_match_hostname import match_hostname41from .util import (42 assert_fingerprint,4243from .util.ssl_ import (44 resolve_cert_reqs,45 resolve_ssl_version,46 ssl_wrap_socket,47 assert_fingerprint,48)495051from .util import connection5253port_by_scheme = {54 'http': 80,55 'https': 443,56}5758RECENT_DATE = datetime.date(2014, 1, 1)596061class DummyConnection(object):62 """Used to detect a failed ConnectionCls import."""63 pass646566class HTTPConnection(_HTTPConnection, object):67 """68 Based on httplib.HTTPConnection but provides an extra constructor69 backwards-compatibility layer between older and newer Pythons.7071 Additional keyword parameters are used to configure attributes of the connection.72 Accepted parameters include:7374 - ``strict``: See the documentation on :class:`urllib3.connectionpool.HTTPConnectionPool`75 - ``source_address``: Set the source address for the current connection.7677 .. note:: This is ignored for Python 2.6. It is only applied for 2.7 and 3.x7879 - ``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.8283 For example, if you wish to enable TCP Keep Alive in addition to the defaults,84 you might pass::8586 HTTPConnection.default_socket_options + [87 (socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1),88 ]8990 Or you may want to disable the defaults by passing an empty list (e.g., ``[]``).91 """9293 default_port = port_by_scheme['http']9495 #: 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)]9899 #: Whether this connection verifies the host's certificate.100 is_verified = False101102 def __init__(self, *args, **kw):103 if six.PY3: # Python 3104 kw.pop('strict', None)105106 # Pre-set source_address in case we have an older Python like 2.6.107 self.source_address = kw.get('source_address')108109 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)115116 #: 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)119120 # Superclass also sets self.source_address in Python 2.7+.121 _HTTPConnection.__init__(self, *args, **kw)122123 def _new_conn(self):124 """ Establish a socket connection and set nodelay settings on it.125126 :return: New socket connection.127 """128 extra_kw = {}129 if self.source_address:130 extra_kw['source_address'] = self.source_address131132 if self.socket_options:133 extra_kw['socket_options'] = self.socket_options134135 try:136 conn = connection.create_connection(137 (self.host, self.port), self.timeout, **extra_kw)138139 except SocketTimeout as e:140 raise ConnectTimeoutError(141 self, "Connection to %s timed out. (connect timeout=%s)" %142 (self.host, self.timeout))143144 except SocketError as e:145 raise NewConnectionError(146 self, "Failed to establish a new connection: %s" % e)147148 return conn149150 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 = 0160161 def connect(self):162 conn = self._new_conn()163 self._prepare_conn(conn)164165166class HTTPSConnection(HTTPConnection):167 default_port = port_by_scheme['https']168169 def __init__(self, host, port=None, key_file=None, cert_file=None,170 strict=None, timeout=socket._GLOBAL_DEFAULT_TIMEOUT, **kw):171172 HTTPConnection.__init__(self, host, port, strict=strict,173 timeout=timeout, **kw)174175 self.key_file = key_file176 self.cert_file = cert_file177178 # 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'181182 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)186187188class 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 = None198199 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):203204 if (ca_certs or ca_cert_dir) and cert_reqs is None:205 cert_reqs = 'CERT_REQUIRED'206207 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)214215 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()218219 resolved_cert_reqs = resolve_cert_reqs(self.cert_reqs)220 resolved_ssl_version = resolve_ssl_version(self.ssl_version)22183 # 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)22687 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 = 0233234 # Override the host with the one we're requesting data from.235 hostname = self._tunnel_host236237 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 )244245 # 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)253100 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)269270 self.is_verified = (resolved_cert_reqs == ssl.CERT_REQUIRED or271 self.assert_fingerprint is not None)272273274if ssl:275 # Make a copy for testing.276 UnverifiedHTTPSConnection = HTTPSConnection277 HTTPSConnection = VerifiedHTTPSConnection278else:279 HTTPSConnection = DummyConnection
modified: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.php61from __future__ import absolute_import2import errno3import logging4import sys5import warnings67from socket import error as SocketError, timeout as SocketTimeout8import socket913try: # Python 310try: # Python 311 from queue import LifoQueue, Empty, Full12except 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: unused161718from .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)33from .packages.ssl_match_hostname import CertificateError34from .packages import six35from .connection import (36 port_by_scheme,37 DummyConnection,38 HTTPConnection, HTTPSConnection, VerifiedHTTPSConnection,39 HTTPException, BaseSSLError,40)41from .request import RequestMethods42from .response import HTTPResponse40from .util import (41 assert_fingerprint,42 get_host,43 is_connection_dropped,44 Timeout,45)4344from .util.connection import is_connection_dropped45from .util.response import assert_header_parsing46from .util.retry import Retry47from .util.timeout import Timeout48from .util.url import get_host, Url495051xrange = six.moves.xrange5253log = logging.getLogger(__name__)5455_Default = object()5654port_by_scheme = {55 'http': 80,56 'https': 443,57}575960## Pool objects58# Pool objects6159class ConnectionPool(object):60 """61 Base class for all connection pools, such as62 :class:`.HTTPConnectionPool` and :class:`.HTTPSConnectionPool`.
2 unmodified lines
65 scheme = None66 QueueCls = LifoQueue6768 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.")7172 self.host = host73 self.port = port7475 def __str__(self):76 return '%s(host=%r, port=%r)' % (type(self).__name__,77 self.host, self.port)7879 def __enter__(self):80 return self8182 def __exit__(self, exc_type, exc_val, exc_tb):83 self.close()84 # Return False to re-raise any potential exceptions85 return False8687 def close():88 """89 Close all pooled connections and disable the pool.90 """91 pass929394# This is taken from http://hg.python.org/cpython/file/7aaba721ebc0/Lib/socket.py#l25295_blocking_errnos = set([errno.EAGAIN, errno.EWOULDBLOCK])969798class HTTPConnectionPool(ConnectionPool, RequestMethods):99 """100 Thread-safe connection pool for one host.101
21 unmodified lines
123 been parsed, this is always a `urllib3.util.Timeout` object.124125 :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.130131 :param block:
6 unmodified lines
138 :param headers:139 Headers to include with all requests, unless other headers are given140 explicitly.141142 :param retries:143 Retry configuration to use by default with requests in this pool.144145 :param _proxy:146 Parsed proxy URL, should not be used directly, instead, see147 :class:`urllib3.connectionpool.ProxyManager`"148149 :param _proxy_headers:150 A dictionary with proxy headers, should not be used directly,151 instead, see :class:`urllib3.connectionpool.ProxyManager`"152153 :param \**conn_kw:154 Additional parameters are used to create fresh :class:`urllib3.connection.HTTPConnection`,155 :class:`urllib3.connection.HTTPSConnection` instances.156 """157158 scheme = 'http'159 ConnectionCls = HTTPConnection160161 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)168169 self.strict = strict170149 # 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)173174 if retries is None:175 retries = Retry.DEFAULT176177 self.timeout = timeout178 self.retries = retries179180 self.pool = self.QueueCls(maxsize)181 self.block = block182
6 unmodified lines
189190 # These are mostly for testing and debugging purposes.191 self.num_connections = 0192 self.num_requests = 0193 self.conn_kw = conn_kw194195 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', [])200201 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))208178 extra_params = {}179 if not six.PY3: # Python 2180 extra_params['strict'] = self.strict181182 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 conn213214 def _get_conn(self, timeout=None):215 """216 Get a connection. Will return a pooled connection if one is available.
9 unmodified lines
226 conn = None227 try:228 conn = self.pool.get(block=self.block, timeout=timeout)229202 except AttributeError: # self.pool is None230 except AttributeError: # self.pool is None231 raise ClosedPoolError(self, "Pool is closed.")232233 except Empty:234 if self.block:
5 unmodified lines
240 # 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 = None249250 return conn or self._new_conn()251252 def _put_conn(self, conn):
11 unmodified lines
264 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)277278 # Connection never got put back into the pool, close it.279 if conn:280 conn.close()281282 def _validate_conn(self, conn):283 """284 Called right before a request is made, after the socket is created.285 """286 pass287288 def _prepare_proxy(self, conn):289 # Nothing to do for HTTP connections.290 pass291292 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 lines
300 # User passed us an int/float. This is for backwards compatibility,301 # can be removed later302 return Timeout.from_float(timeout)303304 def _raise_timeout(self, err, url, timeout_value):305 """Is the error actually a timeout? Will raise a ReadTimeout or pass"""306307 if isinstance(err, SocketTimeout):308 raise ReadTimeoutError(self, url, "Read timed out. (read timeout=%s)" % timeout_value)309310 # 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)314315 # 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)320321 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.326327 :param conn:328 a connection from one of our connection pools
7 unmodified lines
336 """337 self.num_requests += 1338339 timeout_obj = self._get_timeout(timeout)340 timeout_obj.start_connect()341 conn.timeout = timeout_obj.connect_timeout342343 # 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 raise350351 # 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)354355 # Reset the timeout for the recv() on the socket356 read_timeout = timeout_obj.read_timeout357358 # 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)372373 # 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)319320 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.")327379 except (SocketTimeout, BaseSSLError, SocketError) as e:380 self._raise_timeout(err=e, url=url, timeout_value=read_timeout)381 raise382330 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)337338 raise339383 # 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))388389 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)395396 return httplib_response397398 def _absolute_url(self, path):399 return Url(scheme=self.scheme, host=self.host, port=self.port, path=path).url400401 def close(self):402 """403 Close all pooled connections and disable the pool.404 """
6 unmodified lines
411 if conn:412 conn.close()413414 except Empty:361 pass # Done.415 pass # Done.416417 def is_same_host(self, url):418 """419 Check if the given ``url`` is a member of the same host as this
12 unmodified lines
432 port = None433434 return (scheme, host, port) == (self.scheme, self.host, self.port)435382 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 the
25 unmodified lines
466 If-None-Match, etc. If None, pool headers are used. If provided,467 these headers completely replace any pool-specific headers.468469 :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.472473 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.478479 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.482483 :type retries: :class:`~urllib3.util.retry.Retry`, False, or an int.484485 :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.489490 :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 can
25 unmodified lines
518 """519 if headers is None:520 headers = self.headers521454 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)524525 if release_conn is None:526 release_conn = response_kw.get('preload_content', True)527528 # 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)531532 conn = None533534 # Merge the proxy headers. Only do this in HTTP. We have to copy the
2 unmodified lines
537 if self.scheme == 'http':538 headers = headers.copy()539 headers.update(self.proxy_headers)540541 # Must keep the exception bound to a separate variable or else Python 3542 # complains about UnboundLocalError.543 err = None544545 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)549550 conn.timeout = timeout_obj.connect_timeout551552 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)555477 # 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)560561 # If we're going to release the connection in ``finally:``, then562 # the request doesn't need to know about the connection. Otherwise
12 unmodified lines
575 # ``response.release_conn()`` is called (implicitly by576 # ``response.read()``)577578 except Empty:500 # Timed out by queue579 # Timed out by queue.580 raise EmptyPoolError(self, "No pool connections are available.")581503 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)589506 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 raise596510 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 = True602516 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)607519 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()611524 # 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 = e614529 if retries == 0:530 raise MaxRetryError(self, url, e)531615 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 a
1 unmodified line
620 self._put_conn(conn)621622 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 line
632 redirect_location = redirect and response.get_redirect_location()633 if redirect_location:634 if response.status == 303:635 method = 'GET'636637 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 response646647 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)654655 # 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)666667 return response668669670class HTTPSConnectionPool(HTTPConnectionPool):
1 unmodified line
672 Same as :class:`.HTTPConnectionPool`, but HTTPS.673674 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`.677678 :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.681574 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 """687688 scheme = 'https'689 ConnectionCls = HTTPSConnection690691 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):699700 HTTPConnectionPool.__init__(self, host, port, strict, timeout, maxsize,592 block, headers, _proxy, _proxy_headers)701 block, headers, retries, _proxy, _proxy_headers,702 **conn_kw)703704 if ca_certs and cert_reqs is None:705 cert_reqs = 'CERT_REQUIRED'706707 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 lines
723 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_version731732 return conn733734 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_tunnel744745 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()749627 return conn750 conn.connect()751752 def _new_conn(self):753 """754 Return a fresh :class:`httplib.HTTPSConnection`.
2 unmodified lines
757 log.info("Starting new HTTPS connection (%d): %s"758 % (self.num_connections, self.host))759760 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.")763764 actual_host = self.host
1 unmodified line
766 if self.proxy is not None:767 actual_host = self.proxy.host768 actual_port = self.proxy.port769648 extra_params = {}649 if not six.PY3: # Python 2650 extra_params['strict'] = self.strict651770 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)773774 return self._prepare_conn(conn)775776 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)781782 # 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()785786 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)792793794def connection_from_url(url, **kw):795 """796 Given a url, return an :class:`.ConnectionPool` instance of its host.797
7 unmodified lines
805 Passes additional parameters to the constructor of the appropriate806 :class:`.ConnectionPool`. Useful for specifying things like807 timeout, maxsize, headers, etc.808674 Example: ::809 Example::810811 >>> conn = connection_from_url('http://google.com/')812 >>> r = conn.request('GET', '/')813 """
5 unmodified lines
modified: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.php1from __future__ import absolute_import2# Base Exceptions348## Base Exceptions95class HTTPError(Exception):6 "Base exception used by this module."7 pass8910class HTTPWarning(Warning):11 "Base warning used by this module."12 pass131415class PoolError(HTTPError):16 "Base exception for errors caused within a pool."17 def __init__(self, pool, message):18 self.pool = pool
29 unmodified lines
48 "Raised when automatic decoding based on Content-Type fails."49 pass505152## Leaf Exceptions52class ProtocolError(HTTPError):53 "Raised when something unexpected happens mid-request/response."54 pass555657#: Renamed to ProtocolError but aliased for backwards compatibility.58ConnectionError = ProtocolError596061# Leaf Exceptions6263class MaxRetryError(RequestError):55 "Raised when the maximum number of retries is exceeded."64 """Raised when the maximum number of retries is exceeded.6566 :param pool: The connection pool67 :type pool: :class:`~urllib3.connectionpool.HTTPConnectionPool`68 :param string url: The requested Url69 :param exceptions.Exception reason: The underlying error7071 """7273 def __init__(self, pool, url, reason=None):74 self.reason = reason7560 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)7879 RequestError.__init__(self, pool, url, message)8081
31 unmodified lines
113 "Raised when a socket timeout occurs while connecting to a server"114 pass115116117class NewConnectionError(ConnectTimeoutError, PoolError):118 "Raised when we fail to establish a new connection. Usually ECONNREFUSED."119 pass120121122class EmptyPoolError(PoolError):123 "Raised when a pool runs out of connections and no more are allowed."124 pass125
2 unmodified lines
128 "Raised when a request enters a pool after the pool has been closed."129 pass130131114class LocationParseError(ValueError, HTTPError):132class LocationValueError(ValueError, HTTPError):133 "Raised when there is something wrong with a given URL input."134 pass135136137class LocationParseError(LocationValueError):138 "Raised when get_host or similar fails to parse the URL input."139140 def __init__(self, location):141 message = "Failed to parse: %s" % location142 HTTPError.__init__(self, message)143144 self.location = location145146147class 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'151152153class SecurityWarning(HTTPWarning):154 "Warned when perfoming security reducing actions"155 pass156157158class SubjectAltNameWarning(SecurityWarning):159 "Warned when connecting to a host with a certificate missing a SAN."160 pass161162163class InsecureRequestWarning(SecurityWarning):164 "Warned when making an unverified HTTPS request."165 pass166167168class SystemTimeWarning(SecurityWarning):169 "Warned when system time is suspected to be wrong"170 pass171172173class InsecurePlatformWarning(SecurityWarning):174 "Warned when certain SSL configuration is not available on a platform."175 pass176177178class SNIMissingWarning(HTTPWarning):179 "Warned when making a HTTPS request without SNI available."180 pass181182183class ResponseNotChunked(ProtocolError, ValueError):184 "Response needs to be chunked in order to read it as chunks."185 pass186187188class ProxySchemeUnknown(AssertionError, ValueError):189 "ProxyManager does not support the supplied scheme"190 # TODO(t-8ch): Stop inheriting from AssertionError in v2.0.191192 def __init__(self, scheme):193 message = "Not supported proxy scheme %s" % scheme194 super(ProxySchemeUnknown, self).__init__(message)195196197class 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.php61from __future__ import absolute_import2import email.utils3import mimetypes45from .packages import six
3 unmodified lines
9 """10 Guess the "Content-Type" of a file.1112 :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 lines
72 def from_tuples(cls, fieldname, value):73 """74 A :class:`~urllib3.fields.RequestField` factory from old-style tuple parameters.7581 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::8081 'foo': 'bar',82 'fakefile': ('foofile.txt', 'contents of foofile'),83 'realfile': ('barfile.txt', open('realfile').read()),
36 unmodified lines
120 Useful for single headers that are composed of multiple items. E.g.,121 'Content-Disposition' fields.122123 :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 lines
153154 lines.append('\r\n')155 return '\r\n'.join(lines)156161 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.161162 This method overrides "Content-Disposition", "Content-Type" and
5 unmodified lines
168 The 'Content-Location' of the request body.169170 """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_location
modified: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.php61from __future__ import absolute_import2import codecs8import mimetypes34from uuid import uuid45from io import BytesIO6
24 unmodified lines
31 else:32 i = iter(fields)3334 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)394041def iter_fields(fields):42 """43 .. deprecated:: 1.64445 Iterate over fields.4651 .. 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.5053 The addition of `~urllib3.fields.RequestField` makes this function54 obsolete. Instead, use :func:`iter_field_objects`, which returns55 `~urllib3.fields.RequestField` objects, instead.5651 Supports list of (k, v) tuples and dicts.5852 """53 if isinstance(fields, dict):54 return ((k, v) for k, v in six.iteritems(fields))55
39 unmodified lines
modified: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.php61from __future__ import absolute_import2import logging34try: # Python 35 from urllib.parse import urljoin
2 unmodified lines
89from ._collections import RecentlyUsedContainer10from .connectionpool import HTTPConnectionPool, HTTPSConnectionPool11from .connectionpool import port_by_scheme12from .exceptions import LocationValueError, MaxRetryError, ProxySchemeUnknown13from .request import RequestMethods18from .util import parse_url14from .util.url import parse_url15from .util.retry import Retry161718__all__ = ['PoolManager', 'ProxyManager', 'proxy_from_url']19
5 unmodified lines
2526log = logging.getLogger(__name__)2728SSL_KEYWORDS = ('key_file', 'cert_file', 'cert_reqs', 'ca_certs',32 'ssl_version')29 'ssl_version', 'ca_cert_dir')303132class PoolManager(RequestMethods):33 """
11 unmodified lines
45 :param \**connection_pool_kw:46 Additional parameters are used to create fresh47 :class:`urllib3.connectionpool.ConnectionPool` instances.4852 Example: ::49 Example::5051 >>> manager = PoolManager(num_pools=2)52 >>> r = manager.request('GET', 'http://google.com/')53 >>> r = manager.request('GET', 'http://google.com/mail')
10 unmodified lines
64 self.connection_pool_kw = connection_pool_kw65 self.pools = RecentlyUsedContainer(num_pools,66 dispose_func=lambda p: p.close())6768 def __enter__(self):69 return self7071 def __exit__(self, exc_type, exc_val, exc_tb):72 self.clear()73 # Return False to re-raise any potential exceptions74 return False7576 def _new_pool(self, scheme, host, port):77 """78 Create a new :class:`ConnectionPool` based on host, port and scheme.79
26 unmodified lines
106 If ``port`` isn't given, it will be derived from the ``scheme`` using107 ``urllib3.connectionpool.port_by_scheme``.108 """109105 scheme = scheme or 'http'110 if not host:111 raise LocationValueError("No host specified.")112113 scheme = scheme or 'http'114 port = port or port_by_scheme.get(scheme, 80)108115 pool_key = (scheme, host, port)116117 with self.pools.lock:118 # If the scheme, host, or port doesn't match existing open
4 unmodified lines
123124 # Make a fresh ConnectionPool of the desired type125 pool = self._new_pool(scheme, host, port)126 self.pools[pool_key] = pool127128 return pool129130 def connection_from_url(self, url):131 """
35 unmodified lines
167168 # Support relative URLs for redirecting.169 redirect_location = urljoin(url, redirect_location)170164 # RFC 2616, Section 10.3.4171 # RFC 7231, Section 6.4.4172 if response.status == 303:173 method = 'GET'174168 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)178179 try:180 retries = retries.increment(method, url, response=response, _pool=conn)181 except MaxRetryError:182 if retries.raise_on_redirect:183 raise184 return response185186 kw['retries'] = retries187 kw['redirect'] = redirect188189 log.info("Redirecting %s -> %s" % (url, redirect_location))190 return self.urlopen(method, redirect_location, **kw)191192193class ProxyManager(PoolManager):194 """195 Behaves just like :class:`PoolManager`, but sends all requests through196 the defined proxy, using the CONNECT method for HTTPS URLs.197179 :param poxy_url:198 :param proxy_url:199 The URL of the proxy to be used.200201 :param proxy_headers:202 A dictionary contaning headers that will be sent to the proxy. In case
23 unmodified lines
226 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)230231 if proxy.scheme not in ("http", "https"):232 raise ProxySchemeUnknown(proxy.scheme)233234 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.scheme236237 connection_pool_kw['_proxy'] = self.proxy238 connection_pool_kw['_proxy_headers'] = self.proxy_headers239240 super(ProxyManager, self).__init__(241 num_pools, headers, **connection_pool_kw)242243 def connection_from_host(self, host, port=None, scheme='http'):
26 unmodified lines
270 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)276254 return super(ProxyManager, self).urlopen(method, url, redirect, **kw)277 return super(ProxyManager, self).urlopen(method, url, redirect=redirect, **kw)278279280def 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.php61from __future__ import absolute_import2try:3 from urllib.parse import urlencode4except ImportError:5 from urllib import urlencode
14 unmodified lines
20 decides which type of request field encoding to use.2122 Specifically,2329 :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).2627 :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 lines
45 self.headers = headers or {}4647 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.")5253 def request(self, method, url, fields=None, headers=None, **urlopen_kw):
1 unmodified line
55 Make a request using :meth:`urlopen` with the appropriate encoding of56 ``fields`` based on the ``method`` used.5758 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()6566 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)7480 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.headers8384 extra_kw = {'headers': headers}85 extra_kw.update(urlopen_kw)8687 if fields:88 url += '?' + urlencode(fields)87 return self.urlopen(method, url, **urlopen_kw)8990 return self.urlopen(method, url, **extra_kw)9192 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.9899 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.104105 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.108109 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::112113 fields = {114 'foo': 'bar',115 'fakefile': ('foofile.txt', 'contents of foofile'),
5 unmodified lines
121122 When uploading a file, providing a filename (the first parameter of the123 tuple) is optional but recommended to best mimick behavior of browsers.124122 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')133130 if headers is None:131 headers = self.headers132137 headers_ = {'Content-Type': content_type}138 headers_.update(headers)133 extra_kw = {'headers': {}}134140 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.")139140 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'144145 extra_kw['body'] = body146 extra_kw['headers'] = {'Content-Type': content_type}147148 extra_kw['headers'].update(headers)149 extra_kw.update(urlopen_kw)150151 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.php678import logging1from __future__ import absolute_import2from contextlib import contextmanager3import zlib4import io5from socket import timeout as SocketTimeout6from socket import error as SocketError712from .exceptions import DecodeError13from .packages.six import string_types as basestring, binary_type14from .util import is_fp_closed8from ._collections import HTTPHeaderDict9from .exceptions import (10 ProtocolError, DecodeError, ReadTimeoutError, ResponseNotChunked11)12from .packages.six import string_types as basestring, binary_type, PY313from .packages.six.moves import http_client as httplib14from .connection import HTTPException, BaseSSLError15from .util.response import is_fp_closed, is_response_to_head161717log = logging.getLogger(__name__)181918class DeflateDecoder(object):1920 def __init__(self):21 self._first_try = True
3 unmodified lines
25 def __getattr__(self, name):26 return getattr(self._obj, name)2728 def decompress(self, data):29 if not data:30 return data3132 if not self._first_try:33 return self._obj.decompress(data)3435 self._data += data
7 unmodified lines
43 finally:44 self._data = None454647class GzipDecoder(object):4849 def __init__(self):50 self._obj = zlib.decompressobj(16 + zlib.MAX_WBITS)5152 def __getattr__(self, name):53 return getattr(self._obj, name)5455 def decompress(self, data):56 if not data:57 return data58 return self._obj.decompress(data)596061def _get_decoder(mode):62 if mode == 'gzip':48 return zlib.decompressobj(16 + zlib.MAX_WBITS)63 return GzipDecoder()6465 return DeflateDecoder()6667
1 unmodified line
69 """70 HTTP Response container.7172 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.7778 Extra parameters for behaviour not present in httplib.HTTPResponse:7980 :param preload_content:
15 unmodified lines
9697 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):100101 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_content110111 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 = 0116117 if body and isinstance(body, (basestring, binary_type)):118 self._body = body119120 self._pool = pool121 self._connection = connection122123 if hasattr(body, 'read'):124 self._fp = body125126 # 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 = True134135 # If requested, preload the body.136 if preload_content and not self._body:137 self._body = self.read(decode_content=decode_content)138139 def get_redirect_location(self):
32 unmodified lines
172 are encoded on the wire (e.g, compressed).173 """174 return self._fp_bytes_read175176 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)185186 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)198199 if flush_decoder and decode_content:200 data += self._flush_decoder()201202 return data203204 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()212213 return b''214215 @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.221222 On exit, release the connection back to the pool.223 """224 try:225 try:226 yield227228 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.')232233 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 raise239240 raise ReadTimeoutError(self._pool, None, 'Read timed out.')241242 except (HTTPException, SocketError) as e:243 # This includes IncompleteRead.244 raise ProtocolError('Connection broken: %r' % e, e)245246 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()251252 # 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()257258 raise259 finally:260 if self._original_response and self._original_response.isclosed():261 self.release_conn()262263 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 lines
280 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_content287288 if self._fp is None:289 return290291 flush_decoder = False292 data = None293176 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 = True
4 unmodified lines
303 # 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 = True312313 if data:314 self._fp_bytes_read += len(data)315197 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)317206 if flush_decoder and decode_content and self._decoder:207 buf = self._decoder.decompress(binary_type())208 data += buf + self._decoder.flush()209318 if cache_content:319 self._body = data320213 return data321 return data322215 finally:216 if self._original_response and self._original_response.isclosed():217 self.release_conn()218323 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 the
8 unmodified lines
335 :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)345238 if data:239 yield data346 if data:347 yield data348241349 @classmethod350 def from_httplib(ResponseCls, r, **response_kw):351 """352 Given an :class:`httplib.HTTPResponse` instance ``r``, return a
1 unmodified line
354355 Remaining parameters are passed to the HTTPResponse constructor, along356 with ``original_response=r``.357 """358 headers = r.msg359252 # 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)365258 has_value = headers.get(k)259 if has_value: # Python 3: Repeating header keys are unmerged.260 v = ', '.join([has_value, v])261262 headers[k] = v263366 # 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 resp377378 # Backwards-compatibility methods for httplib.HTTPResponse379 def getheaders(self):380 return self.headers
22 unmodified lines
403 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")409410 def flush(self):411 if self._fp is not None and hasattr(self._fp, 'flush'):412 return self._fp.flush()413414 def readable(self):415 # This method is required for `io` module compatibility.416 return True417418 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)426427 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)440441 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_chunk462463 def read_chunked(self, amt=None, decode_content=None):464 """465 Similar to :meth:`HTTPResponse.read`, but with an additional466 parameter: ``decode_content``.467468 :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.")478479 # 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 return483484 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 decoded494495 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 decoded502503 # 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 break511512 # 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.php678from base64 import b64encode9from binascii import hexlify, unhexlify10from collections import namedtuple11from hashlib import md5, sha112from socket import error as SocketError, _GLOBAL_DEFAULT_TIMEOUT13import time1415try:16 from select import poll, POLLIN17except 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 = False2324try: # Test for SSL features25 SSLContext = None26 HAS_SNI = False2728 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?32except ImportError:33 pass3435from .packages import six36from .exceptions import LocationParseError, SSLError, TimeoutStateError373839_Default = object()40# The default timeout to use for socket connections. This is the attribute used41# by httplib to define the default timeout424344def current_time():45 """46 Retrieve the current time, this function is mocked out in unit testing.47 """48 return time.time()495051class Timeout(object):52 """53 Utility object for storing timeout values.5455 Example usage:5657 .. code-block:: python5859 timeout = urllib3.util.Timeout(connect=2.0, read=7.0)60 pool = HTTPConnectionPool('www.google.com', 80, timeout=timeout)61 pool.request(...) # Etc, etc6263 :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.6970 :type connect: integer, float, or None7172 :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.7980 :type read: integer, float, or None8182 :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.8788 Defaults to None.8990 :type total: integer, float, or None9192 .. note::9394 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`.101102 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.110111 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 """115116 #: A sentinel object representing the default timeout value117 DEFAULT_TIMEOUT = _GLOBAL_DEFAULT_TIMEOUT118119 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 = None124125 def __str__(self):126 return '%s(connect=%r, read=%r, total=%r)' % (127 type(self).__name__, self._connect, self._read, self.total)128129130 @classmethod131 def _validate_timeout(cls, value, name):132 """ Check that a timeout attribute is valid133134 :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_TIMEOUT143144 if value is None or value is cls.DEFAULT_TIMEOUT:145 return value146147 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))152153 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))161162 return value163164 @classmethod165 def from_float(cls, timeout):166 """ Create a new Timeout from a legacy timeout value.167168 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.172173 :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)179180 def clone(self):181 """ Create a copy of the timeout object182183 Timeout properties are stored per-pool but each request needs a fresh184 Timeout object to ensure each one has its own start/stop configured.185186 :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)194195 def start_connect(self):196 """ Start the timeout clock, used during a connect() attempt197198 :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_connect205206 def get_connect_duration(self):207 """ Gets the time elapsed since the call to :meth:`start_connect`.208209 :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_connect218219 @property220 def connect_timeout(self):221 """ Get the value to use when setting a connection timeout.222223 This will be a positive float or integer, the value None224 (never timeout), or the default system timeout.225226 :return: the connect timeout227 :rtype: int, float, :attr:`Timeout.DEFAULT_TIMEOUT` or None228 """229 if self.total is None:230 return self._connect231232 if self._connect is None or self._connect is self.DEFAULT_TIMEOUT:233 return self.total234235 return min(self._connect, self.total)236237 @property238 def read_timeout(self):239 """ Get the value for the read timeout.240241 This assumes some time has elapsed in the connection timeout and242 computes the read timeout appropriately.243244 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.248249 :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._read267268269class 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 = ()275276 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)278279 @property280 def hostname(self):281 """For backwards-compatibility with urlparse. We're nice like that."""282 return self.host283284 @property285 def request_uri(self):286 """Absolute path including the query string."""287 uri = self.path or '/'288289 if self.query is not None:290 uri += '?' + self.query291292 return uri293294 @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.host300301302def 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.306307 If not found, then the first part is the full input string.308309 Example: ::310311 >>> split_first('foo/bar?baz', '?/=')312 ('foo', 'bar?baz', '/')313 >>> split_first('foo/bar?baz', '123')314 ('foo/bar?baz', '', None)315316 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 continue324325 if min_idx is None or idx < min_idx:326 min_idx = idx327 min_delim = d328329 if min_idx is None or min_idx < 0:330 return s, '', None331332 return s[:min_idx], s[min_idx+1:], min_delim333334335def 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.339340 Partly backwards-compatible with :mod:`urlparse`.341342 Example: ::343344 >>> 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 """351352 # 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.356357 scheme = None358 auth = None359 host = None360 port = None361 path = None362 fragment = None363 query = None364365 # Scheme366 if '://' in url:367 scheme, url = url.split('://', 1)368369 # Find the earliest Authority Terminator370 # (http://tools.ietf.org/html/rfc3986#section-3.2)371 url, path_, delim = split_first(url, ['/', '?', '#'])372373 if delim:374 # Reassemble the path375 path = delim + path_376377 # Auth378 if '@' in url:379 # Last '@' denotes end of auth part380 auth, url = url.rsplit('@', 1)381382 # IPv6383 if url and url[0] == '[':384 host, url = url.split(']', 1)385 host += ']'386387 # Port388 if ':' in url:389 _host, port = url.split(':', 1)390391 if not host:392 host = _host393394 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 = None402403 elif not host and url:404 host = url405406 if not path:407 return Url(scheme, auth, host, port, path, query, fragment)408409 # Fragment410 if '#' in path:411 path, fragment = path.split('#', 1)412413 # Query414 if '?' in path:415 path, query = path.split('?', 1)416417 return Url(scheme, auth, host, port, path, query, fragment)418419420def 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.port426427428def 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.432433 :param keep_alive:434 If ``True``, adds 'connection: keep-alive' header.435436 :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.441442 :param user_agent:443 String representing the user-agent you want, such as444 "python-urllib3/0.6"445446 :param basic_auth:447 Colon-separated username:password string for 'authorization: basic ...'448 auth header.449450 :param proxy_basic_auth:451 Colon-separated username:password string for 'proxy-authorization: basic ...'452 auth header.453454 Example: ::455456 >>> 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_encoding470471 if user_agent:472 headers['user-agent'] = user_agent473474 if keep_alive:475 headers['connection'] = 'keep-alive'476477 if basic_auth:478 headers['authorization'] = 'Basic ' + \479 b64encode(six.b(basic_auth)).decode('utf-8')480481 if proxy_basic_auth:482 headers['proxy-authorization'] = 'Basic ' + \483 b64encode(six.b(proxy_basic_auth)).decode('utf-8')484485 return headers486487488def is_connection_dropped(conn): # Platform-specific489 """490 Returns True if the connection is dropped and should be closed.491492 :param conn:493 :class:`httplib.HTTPConnection` object.494495 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 False501502 if not poll:503 if not select: # Platform-specific: AppEngine504 return False505506 try:507 return select([sock], [], [], 0.0)[0]508 except SocketError:509 return True510511 # 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 True518519520def 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_NONE533534 if isinstance(candidate, str):535 res = getattr(ssl, candidate, None)536 if res is None:537 res = getattr(ssl, 'CERT_' + candidate)538 return res539540 return candidate541542543def resolve_ssl_version(candidate):544 """545 like resolve_cert_reqs546 """547 if candidate is None:548 return PROTOCOL_SSLv23549550 if isinstance(candidate, str):551 res = getattr(ssl, candidate, None)552 if res is None:553 res = getattr(ssl, 'PROTOCOL_' + candidate)554 return res555556 return candidate557558559def assert_fingerprint(cert, fingerprint):560 """561 Checks if given fingerprint matches the supplied certificate.562563 :param cert:564 Certificate as bytes object.565 :param fingerprint:566 Fingerprint as string of hexdigits, can be interspersed by colons.567 """568569 # Maps the length of a digest to a possible hash function producing570 # this digest.571 hashfunc_map = {572 16: md5,573 20: sha1574 }575576 fingerprint = fingerprint.replace(':', '').lower()577578 digest_length, rest = divmod(len(fingerprint), 2)579580 if rest or digest_length not in hashfunc_map:581 raise SSLError('Fingerprint is of invalid length.')582583 # We need encode() here for py32; works on py2 and p33.584 fingerprint_bytes = unhexlify(fingerprint.encode())585586 hashfunc = hashfunc_map[digest_length]587588 cert_digest = hashfunc(cert).digest()589590 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)))594595def is_fp_closed(obj):596 """597 Checks whether a given file-like object is closed.598599 :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 None606607 return obj.closed608609610if 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`617618 :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)636637else: # 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'''2Debian and other distributions "unbundle" requests' vendored dependencies, and3rewrite all imports to use the global versions of ``urllib3`` and ``chardet``.4The problem with this is that not only requests itself imports those5dependencies, but third-party code outside of the distros' control too.67In reaction to these problems, the distro maintainers replaced8``requests.packages`` with a magical "stub module" that imports the correct9modules. The implementations were varying in quality and all had severe10problems. For example, a symlink (or hardlink) that links the correct modules11into place introduces problems regarding object identity, since you now have12two modules in `sys.modules` with the same API, but different identities::1314 requests.packages.urllib3 is not urllib31516With version ``2.5.2``, requests started to maintain its own stub, so that17distro-specific breakage would be reduced to a minimum, even though the whole18issue is not requests' fault in the first place. See19https://github.com/kennethreitz/requests/pull/2375 for the corresponding pull20request.21'''2223from __future__ import absolute_import24import sys2526try:3from . import urllib327 from . import urllib328except ImportError:29 import urllib330 sys.modules['%s.urllib3' % __name__] = urllib33132try:33 from . import chardet34except ImportError:35 import chardet36 sys.modules['%s.chardet' % __name__] = chardet
modified:requests/packages/README.rst+5 added-2 removed
1If you are planning to submit a pull request to requests with any changes in 2this library do not go any further. These are independent libraries which we 3vendor into requests. Any changes necessary to these libraries must be made in 2this library do not go any further. These are independent libraries which we3vendor into requests. Any changes necessary to these libraries must be made in4them and submitted as separate pull requests to those libraries.56urllib3 pull requests go here: https://github.com/shazow/urllib378chardet pull requests go here: https://github.com/chardet/chardet910See https://github.com/kennethreitz/requests/pull/1812#issuecomment-3085431611for the reasoning behind this.
modified:requests/__init__.py+14 added-8 removed
4 unmodified lines
5# / ( (- (/ (/ (- _) / _)6# /78"""9requests HTTP library9Requests HTTP library10~~~~~~~~~~~~~~~~~~~~~1112Requests is an HTTP library, written in Python, for human beings. Basic GET13usage:1415 >>> 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 True2122... or POST:2324 >>> 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 lines
3536The other HTTP methods are supported - see `requests.api`. Full documentation37is at <http://python-requests.org>.3839:copyright: (c) 2014 by Kenneth Reitz.39:copyright: (c) 2015 by Kenneth Reitz.40:license: Apache 2.0, see LICENSE for more details.4142"""4344__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'5051# Attempt to enable urllib3's SNI support, if possible52try:53 from .packages.urllib3.contrib import pyopenssl
7 unmodified lines
61from .sessions import session, Session62from .status_codes import codes63from .exceptions import (64 RequestException, Timeout, URLRequired,65 TooManyRedirects, HTTPError, ConnectionError65 TooManyRedirects, HTTPError, ConnectionError,66 FileModeWarning,67)6869# Set default logging handler to avoid "No handler found" warnings.70import logging
4 unmodified lines
75 def emit(self, record):76 pass7778logging.getLogger(__name__).addHandler(NullHandler())7980import warnings8182# FileModeWarnings go off per the default.83warnings.simplefilter('default', FileModeWarning, append=True)
modified:requests/adapters.py+112 added-59 removed
6 unmodified lines
7This module contains the transport adapters that Requests uses to define8and maintain connections.9"""1011import os.path12import socket1314from .models import Response15from .packages.urllib3.poolmanager import PoolManager, proxy_from_url16from .packages.urllib3.response import HTTPResponse17from .packages.urllib3.util import Timeout as TimeoutSauce18from .packages.urllib3.util.retry import Retry17from .compat import urlparse, basestring, urldefrag, unquote19from .compat import urlparse, basestring20from .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)23from .structures import CaseInsensitiveDict21from .packages.urllib3.exceptions import MaxRetryError22from .packages.urllib3.exceptions import TimeoutError23from .packages.urllib3.exceptions import SSLError as _SSLError24from .packages.urllib3.exceptions import ClosedPoolError25from .packages.urllib3.exceptions import ConnectTimeoutError26from .packages.urllib3.exceptions import HTTPError as _HTTPError27from .packages.urllib3.exceptions import MaxRetryError28from .packages.urllib3.exceptions import NewConnectionError29from .packages.urllib3.exceptions import ProxyError as _ProxyError30from .packages.urllib3.exceptions import ProtocolError31from .packages.urllib3.exceptions import ReadTimeoutError32from .packages.urllib3.exceptions import SSLError as _SSLError33from .packages.urllib3.exceptions import ResponseError34from .cookies import extract_cookies_to_jar27from .exceptions import ConnectionError, Timeout, SSLError, ProxyError35from .exceptions import (ConnectionError, ConnectTimeout, ReadTimeout, SSLError,36 ProxyError, RetryError)37from .auth import _basic_auth_str3839DEFAULT_POOLBLOCK = False40DEFAULT_POOLSIZE = 1041DEFAULT_RETRIES = 042DEFAULT_POOL_TIMEOUT = None434445class BaseAdapter(object):46 """The Base Transport Adapter"""
18 unmodified lines
6566 :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.7677 Usage::78
7 unmodified lines
8687 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 = {}9697 super(HTTPAdapter, self).__init__()
9 unmodified lines
107 self.__attrs__)108109 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 = {}114115 for attr, value in state.items():
1 unmodified line
117118 self.init_poolmanager(self._pool_connections, self._pool_maxsize,119 block=self._pool_block)120104 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.123124 This method should not be called from user code, and is only125 exposed for use when subclassing the126 :class:`HTTPAdapter <requests.adapters.HTTPAdapter>`.127128 :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 = block137138 self.poolmanager = PoolManager(num_pools=connections, maxsize=maxsize,119 block=block)139 block=block, strict=True, **pool_kwargs)140141 def proxy_manager_for(self, proxy, **proxy_kwargs):142 """Return urllib3 ProxyManager for the given proxy.143144 This method should not be called from user code, and is only145 exposed for use when subclassing the146 :class:`HTTPAdapter <requests.adapters.HTTPAdapter>`.147148 :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)161162 return self.proxy_manager[proxy]163164 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 lines
185 if not cert_loc:186 raise Exception("Could not find a suitable SSL CA certificate bundle.")187188 conn.cert_reqs = 'CERT_REQUIRED'189190 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 = None198199 if cert:200 if not isinstance(cert, basestring):201 conn.cert_file = cert[0]
44 unmodified lines
246247 :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)251252 if proxy:206 except_on_missing_scheme(proxy)207 proxy_headers = self.proxy_headers(proxy)208209 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)216217 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 lines
279 when subclassing the280 :class:`HTTPAdapter <requests.adapters.HTTPAdapter>`.281282 :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)250287 if proxy and scheme != 'https':252 url, _ = urldefrag(request.url)288 url = urldefragauth(request.url)289 else:290 url = request.path_url291292 return url
22 unmodified lines
315 when subclassing the316 :class:`HTTPAdapter <requests.adapters.HTTPAdapter>`.317318 :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)322323 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)326327 return headers
2 unmodified lines
330 """Sends PreparedRequest object. Returns Response object.331332 :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 lines
347 self.add_headers(request)348349 chunked = not (request.body is None or 'Content-Length' in request.headers)350317 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)363364 try:
15 unmodified lines
380 else:381 if hasattr(conn, 'proxy_pool'):382 conn = conn.proxy_pool383342 low_conn = conn._get_conn(timeout=timeout)384 low_conn = conn._get_conn(timeout=DEFAULT_POOL_TIMEOUT)385386 try:387 low_conn.putrequest(request.method,388 url,
10 unmodified lines
399 low_conn.send(i)400 low_conn.send(b'\r\n')401 low_conn.send(b'0\r\n\r\n')402403 # 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()411412 resp = HTTPResponse.from_httplib(413 r,414 pool=conn,415 connection=low_conn,
4 unmodified lines
420 # 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)424378 except socket.error as sockerr:379 raise ConnectionError(sockerr)425 except (ProtocolError, socket.error) as err:426 raise ConnectionError(err, request=request)427428 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)433434 if isinstance(e.reason, ResponseError):435 raise RetryError(e, request=request)436437 raise ConnectionError(e, request=request)438439 except ClosedPoolError as e:440 raise ConnectionError(e, request=request)441442 except _ProxyError as e:443 raise ProxyError(e)444445 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 raise452395 r = self.build_response(request, resp)396397 if not stream:398 r.content399400 return r453 return self.build_response(request, resp)
modified:requests/api.py+42 added-17 removed
14 unmodified lines
151617def request(method, url, **kwargs):18 """Constructs and sends a :class:`Request <Request>`.19 Returns :class:`Response <Response>` object.1920 :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.Response4142 Usage::4344 >>> import requests45 >>> req = requests.request('GET', 'http://httpbin.org/get')46 <Response [200]>47 """4843 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)545547def get(url, **kwargs):48 """Sends a GET request. Returns :class:`Response` object.56def get(url, params=None, **kwargs):57 """Sends a GET request.5859 :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 """6566 kwargs.setdefault('allow_redirects', True)55 return request('get', url, **kwargs)67 return request('get', url, params=params, **kwargs)686970def options(url, **kwargs):59 """Sends a OPTIONS request. Returns :class:`Response` object.71 """Sends a OPTIONS request.7273 :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 """7879 kwargs.setdefault('allow_redirects', True)80 return request('options', url, **kwargs)818283def head(url, **kwargs):70 """Sends a HEAD request. Returns :class:`Response` object.84 """Sends a HEAD request.8586 :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 """9192 kwargs.setdefault('allow_redirects', False)93 return request('head', url, **kwargs)949580def post(url, data=None, **kwargs):81 """Sends a POST request. Returns :class:`Response` object.96def post(url, data=None, json=None, **kwargs):97 """Sends a POST request.9899 :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 """10688 return request('post', url, data=data, **kwargs)107 return request('post', url, data=data, json=json, **kwargs)108109110def put(url, data=None, **kwargs):92 """Sends a PUT request. Returns :class:`Response` object.111 """Sends a PUT request.112113 :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 """119120 return request('put', url, data=data, **kwargs)121122123def patch(url, data=None, **kwargs):103 """Sends a PATCH request. Returns :class:`Response` object.124 """Sends a PATCH request.125126 :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 """132133 return request('patch', url, data=data, **kwargs)134135136def delete(url, **kwargs):114 """Sends a DELETE request. Returns :class:`Response` object.137 """Sends a DELETE request.138139 :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 """144145 return request('delete', url, **kwargs)
modified:requests/auth.py+61 added-34 removed
9 unmodified lines
10import os11import re12import time13import hashlib14import logging14import threading1516from base64 import b64encode1718from .compat import urlparse, str19from .cookies import extract_cookies_to_jar20from .utils import parse_dict_header20from .utils import parse_dict_header, to_native_string21from .status_codes import codes2222log = logging.getLogger(__name__)2323CONTENT_TYPE_FORM_URLENCODED = 'application/x-www-form-urlencoded'24CONTENT_TYPE_MULTI_PART = 'multipart/form-data'252627def _basic_auth_str(username, password):28 """Returns a Basic Auth string."""2931 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 )3334 return authstr353637class AuthBase(object):38 """Base class that all auth implementations derive from"""3940 def __call__(self, r):
22 unmodified lines
63 """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()6970 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 = None7980 def build_digest_header(self, method, url):8171 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')8788 if algorithm is None:89 _algorithm = 'MD5'90 else:
19 unmodified lines
110111 # 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.query118119 A1 = '%s:%s:%s' % (self.username, realm, self.password)
1 unmodified line
121122 HA1 = hash_utf8(A1)123 HA2 = hash_utf8(A2)124113 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)134135 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))138128 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 None149136 self.last_nonce = nonce150 self._thread_local.last_nonce = nonce151152 # 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 lines
162 base += ', qop="auth", nc=%s, cnonce="%s"' % (ncvalue, cnonce)163164 return 'Digest %s' % (base)165166 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 = 1170171 def handle_401(self, r, **kwargs):172 """Takes the given response and tries digest-auth, if needed."""173155 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', '')179162 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:181164 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))185186 # 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 lines
198 _r.request = prep199200 return _r201184 setattr(self, 'num_401_calls', 1)202 self._thread_local.num_401_calls = 1203 return r204205 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 = 1222223 return r
modified: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/.15# 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-----13MIICWjCCAcMCAgGlMA0GCSqGSIb3DQEBBAUAMHUxCzAJBgNVBAYTAlVTMRgwFgYD14VQQKEw9HVEUgQ29ycG9yYXRpb24xJzAlBgNVBAsTHkdURSBDeWJlclRydXN0IFNv15bHV0aW9ucywgSW5jLjEjMCEGA1UEAxMaR1RFIEN5YmVyVHJ1c3QgR2xvYmFsIFJv16b3QwHhcNOTgwODEzMDAyOTAwWhcNMTgwODEzMjM1OTAwWjB1MQswCQYDVQQGEwJV17UzEYMBYGA1UEChMPR1RFIENvcnBvcmF0aW9uMScwJQYDVQQLEx5HVEUgQ3liZXJU18cnVzdCBTb2x1dGlvbnMsIEluYy4xIzAhBgNVBAMTGkdURSBDeWJlclRydXN0IEds19b2JhbCBSb290MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCVD6C28FCc6HrH20iM3dFw4usJTQGz0O9pTAipTHBsiQl8i4ZBp6fmw8U+E3KHNgf7KXUwefU/ltWJTS21r41tiGeA5u2ylc9yMcqlHHK6XALnZELn+aks1joNrI1CqiQBOeacPwGFVw1Yh0X42204Wqk2kmhXBIgD8SFcd5tB8FLztimQIDAQABMA0GCSqGSIb3DQEBBAUAA4GBAG3r23GwnpXtlR22ciYaQqPEh346B8pt5zohQDhT37qw4wxYMWM4ETCJ57NE7fQMh017l9243PR2VX2bY1QY6fDq81yx2YtCHrnAlU66+tXifPVoYb+O7AWXX1uw16OFNMQkpw0P25lZPvy5TYnh+dXIVtx6quTx8itc2VrbqnzPmrC3p/26-----END CERTIFICATE-----2728# 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:1e:ed:09:45:4d:e935-----BEGIN CERTIFICATE-----36MIIDEzCCAnygAwIBAgIBATANBgkqhkiG9w0BAQQFADCBxDELMAkGA1UEBhMCWkEx37FTATBgNVBAgTDFdlc3Rlcm4gQ2FwZTESMBAGA1UEBxMJQ2FwZSBUb3duMR0wGwYD38VQQKExRUaGF3dGUgQ29uc3VsdGluZyBjYzEoMCYGA1UECxMfQ2VydGlmaWNhdGlv39biBTZXJ2aWNlcyBEaXZpc2lvbjEZMBcGA1UEAxMQVGhhd3RlIFNlcnZlciBDQTEm40MCQGCSqGSIb3DQEJARYXc2VydmVyLWNlcnRzQHRoYXd0ZS5jb20wHhcNOTYwODAx41MDAwMDAwWhcNMjAxMjMxMjM1OTU5WjCBxDELMAkGA1UEBhMCWkExFTATBgNVBAgT42DFdlc3Rlcm4gQ2FwZTESMBAGA1UEBxMJQ2FwZSBUb3duMR0wGwYDVQQKExRUaGF343dGUgQ29uc3VsdGluZyBjYzEoMCYGA1UECxMfQ2VydGlmaWNhdGlvbiBTZXJ2aWNl44cyBEaXZpc2lvbjEZMBcGA1UEAxMQVGhhd3RlIFNlcnZlciBDQTEmMCQGCSqGSIb345DQEJARYXc2VydmVyLWNlcnRzQHRoYXd0ZS5jb20wgZ8wDQYJKoZIhvcNAQEBBQAD46gY0AMIGJAoGBANOkUG7I/1Zr5s9dtuoMaHVHoqrC2oQl/Kj0R1HahbUgdJSGHg9147yekIYfUGbTBuFRkC6VLAYttNmZ7iagxEOM3+vuNkCXDF/rFrKbYvScg71CcEJRCX48L+eQbcAoQpnXTEPew/UhbVSfXcNY4cDk2VuwuNy0e982OsK1ZiIS1ocNAgMBAAGj49EzARMA8GA1UdEwEB/wQFMAMBAf8wDQYJKoZIhvcNAQEEBQADgYEAB/pMaVz7lcxG507oWDTSEwjsrZqG9JGubaUeNgcGyEYRGhGshIPllDfU+VPaGLtwtimHp1it2ITk6e51QNuozDJ0uW8NxuOzRAvZim+aKZuZGCg70eNAKJpaPNW15yAbi8qkq43pUdniTCxZ52qdq5snUb9kLy78fyGPmJvKP/iiMucEc=53-----END CERTIFICATE-----5455# 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-----63MIIDJzCCApCgAwIBAgIBATANBgkqhkiG9w0BAQQFADCBzjELMAkGA1UEBhMCWkEx64FTATBgNVBAgTDFdlc3Rlcm4gQ2FwZTESMBAGA1UEBxMJQ2FwZSBUb3duMR0wGwYD65VQQKExRUaGF3dGUgQ29uc3VsdGluZyBjYzEoMCYGA1UECxMfQ2VydGlmaWNhdGlv66biBTZXJ2aWNlcyBEaXZpc2lvbjEhMB8GA1UEAxMYVGhhd3RlIFByZW1pdW0gU2Vy67dmVyIENBMSgwJgYJKoZIhvcNAQkBFhlwcmVtaXVtLXNlcnZlckB0aGF3dGUuY29t68MB4XDTk2MDgwMTAwMDAwMFoXDTIwMTIzMTIzNTk1OVowgc4xCzAJBgNVBAYTAlpB69MRUwEwYDVQQIEwxXZXN0ZXJuIENhcGUxEjAQBgNVBAcTCUNhcGUgVG93bjEdMBsG70A1UEChMUVGhhd3RlIENvbnN1bHRpbmcgY2MxKDAmBgNVBAsTH0NlcnRpZmljYXRp71b24gU2VydmljZXMgRGl2aXNpb24xITAfBgNVBAMTGFRoYXd0ZSBQcmVtaXVtIFNl72cnZlciBDQTEoMCYGCSqGSIb3DQEJARYZcHJlbWl1bS1zZXJ2ZXJAdGhhd3RlLmNv73bTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA0jY2aovXwlue2oFBYo847kkE74VdbQ7xwblRZH7xhINTpS9CtqBo87L+pW46+GjZ4X9560ZXUCTe/LCaIhUdib0GfQ75ug2SBhRz1JPLlyoAnFxODLz6FVL88kRu2hFKbgifLy3j+ao6hnO2RlNYyIkFvYMR76uHM/qgeN9EJN50CdHDcCAwEAAaMTMBEwDwYDVR0TAQH/BAUwAwEB/zANBgkqhkiG779w0BAQQFAAOBgQAmSCwWwlj66BZ0DKqqX1Q/8tfJeGBeXm43YyJ3Nn6yF8Q0ufUI78hfzJATj/Tb7yFkJD57taRvvBxhEf8UqwKEbJw8RCfbz6q1lu1bdRiBHjpIUZa4JM79pAwSremkrj/xw0llmozFyD4lt5SZu5IycQfwhl7tUCemDaYj+bvLpgcUQg==80-----END CERTIFICATE-----812# Issuer: O=Equifax OU=Equifax Secure Certificate Authority3# Subject: O=Equifax OU=Equifax Secure Certificate Authority4# Label: "Equifax Secure CA"5# Serial: 903804111
19 unmodified lines
257qj/WsjTVbJmcVfewCHrPSqnI0kBBIZCe/zuf6IWUrVnZ9NA2zsmWLIodz2uFHdh261voqZiegDfqnc1zqcPGUIWVEX/r87yloqaKHee9570+sB3c427-----END CERTIFICATE-----28109# 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-----117MIICPDCCAaUCEHC65B0Q2Sk0tjjKewPMur8wDQYJKoZIhvcNAQECBQAwXzELMAkG118A1UEBhMCVVMxFzAVBgNVBAoTDlZlcmlTaWduLCBJbmMuMTcwNQYDVQQLEy5DbGFz119cyAzIFB1YmxpYyBQcmltYXJ5IENlcnRpZmljYXRpb24gQXV0aG9yaXR5MB4XDTk2120MDEyOTAwMDAwMFoXDTI4MDgwMTIzNTk1OVowXzELMAkGA1UEBhMCVVMxFzAVBgNV121BAoTDlZlcmlTaWduLCBJbmMuMTcwNQYDVQQLEy5DbGFzcyAzIFB1YmxpYyBQcmlt122YXJ5IENlcnRpZmljYXRpb24gQXV0aG9yaXR5MIGfMA0GCSqGSIb3DQEBAQUAA4GN123ADCBiQKBgQDJXFme8huKARS0EN8EQNvjV69qRUCPhAwL0TPZ2RHP7gJYHyX3KqhE124BarsAx94f56TuZoAqiN91qyFomNFx3InzPRMxnVx0jnvT0Lwdd8KkMaOIG+YD/is125I19wKTakyYbnsZogy1Olhec9vn2a/iRFM9x2Fe0PonFkTGUugWhFpwIDAQABMA0G126CSqGSIb3DQEBAgUAA4GBALtMEivPLCYATxQT3ab7/AoRhIzzKBxnki98tsX63/Do127lbwdj2wsqFHMc9ikwFPwTtYmwHYBV4GSXiHx0bH/59AhWM1pF+NEHJwZRDmJXNyc128AA9WjQKZ7aKQRUzkuxCkPfAyAw7xzvjoyVGM5mKf5p/AfbdynMk2OmufTqj/ZA1k129-----END CERTIFICATE-----130131# 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-----139MIIDAjCCAmsCEH3Z/gfPqB63EHln+6eJNMYwDQYJKoZIhvcNAQEFBQAwgcExCzAJ140BgNVBAYTAlVTMRcwFQYDVQQKEw5WZXJpU2lnbiwgSW5jLjE8MDoGA1UECxMzQ2xh141c3MgMyBQdWJsaWMgUHJpbWFyeSBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eSAtIEcy142MTowOAYDVQQLEzEoYykgMTk5OCBWZXJpU2lnbiwgSW5jLiAtIEZvciBhdXRob3Jp143emVkIHVzZSBvbmx5MR8wHQYDVQQLExZWZXJpU2lnbiBUcnVzdCBOZXR3b3JrMB4X144DTk4MDUxODAwMDAwMFoXDTI4MDgwMTIzNTk1OVowgcExCzAJBgNVBAYTAlVTMRcw145FQYDVQQKEw5WZXJpU2lnbiwgSW5jLjE8MDoGA1UECxMzQ2xhc3MgMyBQdWJsaWMg146UHJpbWFyeSBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eSAtIEcyMTowOAYDVQQLEzEo147YykgMTk5OCBWZXJpU2lnbiwgSW5jLiAtIEZvciBhdXRob3JpemVkIHVzZSBvbmx5148MR8wHQYDVQQLExZWZXJpU2lnbiBUcnVzdCBOZXR3b3JrMIGfMA0GCSqGSIb3DQEB149AQUAA4GNADCBiQKBgQDMXtERXVxp0KvTuWpMmR9ZmDCOFoUgRm1HP9SFIIThbbP4150pO0M8RcPO/mn+SXXwc+EY/J8Y8+iR/LGWzOOZEAEaMGAuWQcRXfH2G71lSk8UOg015113gfqLptQ5GVj0VXXn7F+8qkBOvqlzdUMG+7AUcyM83cV5tkaWH4mx0ciU9cZwID152AQABMA0GCSqGSIb3DQEBBQUAA4GBAFFNzb5cy5gZnBWyATl4Lk0PZ3BwmcYQWpSk153U01UbSuvDV1Ai2TT1+7eVmGSX6bEHRBhNtMsJzzoKQm5EWR0zLVznxxIqbxhAe7i154F6YM40AIOw7n60RzKprxaZLvcRTDOaxxp5EJb+RxBrO6WVcmeQD2+A2iMzAo1KpY155oJ2daZH9156-----END CERTIFICATE-----15729# 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: 4835703278459707669005204
51 unmodified lines
84AfvDbbnvRG15RjF+Cv6pgsH/76tuIMRQyV+dTZsXjAzlAcmgQWpzU/qlULRuJQ/785TBj0/VLZjmmx6BEP3ojY+x1J96relc8geMJgEtslQIxq/H5COEBkEveegeGTLg==86-----END CERTIFICATE-----87217# 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-----225MIIC5zCCAlACAQEwDQYJKoZIhvcNAQEFBQAwgbsxJDAiBgNVBAcTG1ZhbGlDZXJ0226IFZhbGlkYXRpb24gTmV0d29yazEXMBUGA1UEChMOVmFsaUNlcnQsIEluYy4xNTAz227BgNVBAsTLFZhbGlDZXJ0IENsYXNzIDEgUG9saWN5IFZhbGlkYXRpb24gQXV0aG9y228aXR5MSEwHwYDVQQDExhodHRwOi8vd3d3LnZhbGljZXJ0LmNvbS8xIDAeBgkqhkiG2299w0BCQEWEWluZm9AdmFsaWNlcnQuY29tMB4XDTk5MDYyNTIyMjM0OFoXDTE5MDYy230NTIyMjM0OFowgbsxJDAiBgNVBAcTG1ZhbGlDZXJ0IFZhbGlkYXRpb24gTmV0d29y231azEXMBUGA1UEChMOVmFsaUNlcnQsIEluYy4xNTAzBgNVBAsTLFZhbGlDZXJ0IENs232YXNzIDEgUG9saWN5IFZhbGlkYXRpb24gQXV0aG9yaXR5MSEwHwYDVQQDExhodHRw233Oi8vd3d3LnZhbGljZXJ0LmNvbS8xIDAeBgkqhkiG9w0BCQEWEWluZm9AdmFsaWNl234cnQuY29tMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDYWYJ6ibiWuqYvaG9Y235LqdUHAZu9OqNSLwxlBfw8068srg1knaw0KWlAdcAAxIiGQj4/xEjm84H9b9pGib+236TunRf50sQB1ZaG6m+FiwnRqP0z/x3BkGgagO4DrdyFNFCQbmD3DD+kCmDuJWBQ8Y237TfwggtFzVXSNdnKgHZ0dwN0/cQIDAQABMA0GCSqGSIb3DQEBBQUAA4GBAFBoPUn0238LBwGlN+VYH+Wexf+T3GtZMjdd9LvWVXoP+iOBSoh8gfStadS/pyxtuJbdxdA6nLW239I8sogTLDAHkY7FkXicnGah5xyf23dKUlRWnFSKsZ4UWKJWsZ7uW7EvV/96aNUcPw240nXS3qT6gpf+2SQMT2iLM7XGCK5nPOrf1LXLI241-----END CERTIFICATE-----242243# 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-----251MIIC5zCCAlACAQEwDQYJKoZIhvcNAQEFBQAwgbsxJDAiBgNVBAcTG1ZhbGlDZXJ0252IFZhbGlkYXRpb24gTmV0d29yazEXMBUGA1UEChMOVmFsaUNlcnQsIEluYy4xNTAz253BgNVBAsTLFZhbGlDZXJ0IENsYXNzIDIgUG9saWN5IFZhbGlkYXRpb24gQXV0aG9y254aXR5MSEwHwYDVQQDExhodHRwOi8vd3d3LnZhbGljZXJ0LmNvbS8xIDAeBgkqhkiG2559w0BCQEWEWluZm9AdmFsaWNlcnQuY29tMB4XDTk5MDYyNjAwMTk1NFoXDTE5MDYy256NjAwMTk1NFowgbsxJDAiBgNVBAcTG1ZhbGlDZXJ0IFZhbGlkYXRpb24gTmV0d29y257azEXMBUGA1UEChMOVmFsaUNlcnQsIEluYy4xNTAzBgNVBAsTLFZhbGlDZXJ0IENs258YXNzIDIgUG9saWN5IFZhbGlkYXRpb24gQXV0aG9yaXR5MSEwHwYDVQQDExhodHRw259Oi8vd3d3LnZhbGljZXJ0LmNvbS8xIDAeBgkqhkiG9w0BCQEWEWluZm9AdmFsaWNl260cnQuY29tMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDOOnHK5avIWZJV16vY261dA757tn2VUdZZUcOBVXc65g2PFxTXdMwzzjsvUGJ7SVCCSRrCl6zfN1SLUzm1NZ9262WlmpZdRJEy0kTRxQb7XBhVQ7/nHk01xC+YDgkRoKWzk2Z/M/VXwbP7RfZHM047QS263v4dk+NoS/zcnwbNDu+97bi5p9wIDAQABMA0GCSqGSIb3DQEBBQUAA4GBADt/UG9v264UJSZSWI4OB9L+KXIPqeCgfYrx+jFzug6EILLGACOTb2oWH+heQC1u+mNr0HZDzTu265IYEZoDJJKPTEjlbVUjP9UNV+mWwD5MlM/Mtsq2azSiGM5bUMMj4QssxsodyamEwC266W/POuZ6lcg5Ktz885hZo+L7tdEy8W9ViH0Pd267-----END CERTIFICATE-----268269# 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-----277MIIC5zCCAlACAQEwDQYJKoZIhvcNAQEFBQAwgbsxJDAiBgNVBAcTG1ZhbGlDZXJ0278IFZhbGlkYXRpb24gTmV0d29yazEXMBUGA1UEChMOVmFsaUNlcnQsIEluYy4xNTAz279BgNVBAsTLFZhbGlDZXJ0IENsYXNzIDMgUG9saWN5IFZhbGlkYXRpb24gQXV0aG9y280aXR5MSEwHwYDVQQDExhodHRwOi8vd3d3LnZhbGljZXJ0LmNvbS8xIDAeBgkqhkiG2819w0BCQEWEWluZm9AdmFsaWNlcnQuY29tMB4XDTk5MDYyNjAwMjIzM1oXDTE5MDYy282NjAwMjIzM1owgbsxJDAiBgNVBAcTG1ZhbGlDZXJ0IFZhbGlkYXRpb24gTmV0d29y283azEXMBUGA1UEChMOVmFsaUNlcnQsIEluYy4xNTAzBgNVBAsTLFZhbGlDZXJ0IENs284YXNzIDMgUG9saWN5IFZhbGlkYXRpb24gQXV0aG9yaXR5MSEwHwYDVQQDExhodHRw285Oi8vd3d3LnZhbGljZXJ0LmNvbS8xIDAeBgkqhkiG9w0BCQEWEWluZm9AdmFsaWNl286cnQuY29tMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDjmFGWHOjVsQaBalfD287cnWTq8+epvzzFlLWLU2fNUSoLgRNB0mKOCn1dzfnt6td3zZxFJmP3MKS8edgkpfs2882Ejcv8ECIMYkpChMMFp2bbFc893enhBxoYjHW5tBbcqwuI4V7q0zK89HBFx1cQqY289JJgpp0lZpd34t0NiYfPT4tBVPwIDAQABMA0GCSqGSIb3DQEBBQUAA4GBAFa7AliE290Zwgs3x/be0kz9dNnnfS0ChCzycUs4pJqcXgn8nCDQtM+z6lU9PHYkhaM0QTLS6vJ291n0WuPIqpsHEzXcjFV9+vqDWzf4mH6eglkrh/hXqu1rweN1gqZ8mRzyqBPu3GOd/A292PhmcGcwTTYJBtYze4D1gCCAPRX5ron+jjBXu293-----END CERTIFICATE-----29488# 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: 206684696279472310254277870180966723415
56 unmodified lines
1482NU8Qh0XwRJdRTjDOPP8hS6DRkiy1yBfkjaP53kPmF6Z6PDQpLv1U70qzlmwr25/149bLvSHgCwIe34QWKCudiyxLtGUPMxxY8BqHTr9Xgn2uf3ZkPznoM+IKrDNWCRzg==150-----END CERTIFICATE-----151359# 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-----367MIIE2DCCBEGgAwIBAgIEN0rSQzANBgkqhkiG9w0BAQUFADCBwzELMAkGA1UEBhMC368VVMxFDASBgNVBAoTC0VudHJ1c3QubmV0MTswOQYDVQQLEzJ3d3cuZW50cnVzdC5u369ZXQvQ1BTIGluY29ycC4gYnkgcmVmLiAobGltaXRzIGxpYWIuKTElMCMGA1UECxMc370KGMpIDE5OTkgRW50cnVzdC5uZXQgTGltaXRlZDE6MDgGA1UEAxMxRW50cnVzdC5u371ZXQgU2VjdXJlIFNlcnZlciBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eTAeFw05OTA1372MjUxNjA5NDBaFw0xOTA1MjUxNjM5NDBaMIHDMQswCQYDVQQGEwJVUzEUMBIGA1UE373ChMLRW50cnVzdC5uZXQxOzA5BgNVBAsTMnd3dy5lbnRydXN0Lm5ldC9DUFMgaW5j374b3JwLiBieSByZWYuIChsaW1pdHMgbGlhYi4pMSUwIwYDVQQLExwoYykgMTk5OSBF375bnRydXN0Lm5ldCBMaW1pdGVkMTowOAYDVQQDEzFFbnRydXN0Lm5ldCBTZWN1cmUg376U2VydmVyIENlcnRpZmljYXRpb24gQXV0aG9yaXR5MIGdMA0GCSqGSIb3DQEBAQUA377A4GLADCBhwKBgQDNKIM0VBuJ8w+vN5Ex/68xYMmo6LIQaO2f55M28Qpku0f1BBc/378I0dNxScZgSYMVHINiC3ZH5oSn7yzcdOAGT9HZnuMNSjSuQrfJNqc1lB5gXpa0zf3379wkrYKZImZNHkmGw6AIr1NJtl+O3jEP/9uElY3KDegjlrgbEWGWG5VLbmQwIBA6OC380AdcwggHTMBEGCWCGSAGG+EIBAQQEAwIABzCCARkGA1UdHwSCARAwggEMMIHeoIHb381oIHYpIHVMIHSMQswCQYDVQQGEwJVUzEUMBIGA1UEChMLRW50cnVzdC5uZXQxOzA5382BgNVBAsTMnd3dy5lbnRydXN0Lm5ldC9DUFMgaW5jb3JwLiBieSByZWYuIChsaW1p383dHMgbGlhYi4pMSUwIwYDVQQLExwoYykgMTk5OSBFbnRydXN0Lm5ldCBMaW1pdGVk384MTowOAYDVQQDEzFFbnRydXN0Lm5ldCBTZWN1cmUgU2VydmVyIENlcnRpZmljYXRp385b24gQXV0aG9yaXR5MQ0wCwYDVQQDEwRDUkwxMCmgJ6AlhiNodHRwOi8vd3d3LmVu386dHJ1c3QubmV0L0NSTC9uZXQxLmNybDArBgNVHRAEJDAigA8xOTk5MDUyNTE2MDk0387MFqBDzIwMTkwNTI1MTYwOTQwWjALBgNVHQ8EBAMCAQYwHwYDVR0jBBgwFoAU8Bdi388E1U9s/8KAGv7UISX8+1i0BowHQYDVR0OBBYEFPAXYhNVPbP/CgBr+1CEl/PtYtAa389MAwGA1UdEwQFMAMBAf8wGQYJKoZIhvZ9B0EABAwwChsEVjQuMAMCBJAwDQYJKoZI390hvcNAQEFBQADgYEAkNwwAvpkdMKnCqV8IY00F6j7Rw7/JXyNEwr75Ji174z4xRAN39195K+8cPV1ZVqBLssziY2ZcgxxufuP+NXdYR6Ee9GTxj005i7qIcyunL2POI9n9cd3922cNgQ4xYDiKWL2KjLB+6rQXvqzJ4h6BUcxm1XAX5Uj5tLUUL9wqT6u0G+bI=393-----END CERTIFICATE-----394152# 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: 946069240
54 unmodified lines
210ksLi4xaNmjICq44Y3ekQEe5+NauQrz4wlHrQMz2nZQ/1/I6eYs9HRCwBXbsdtTLS211R9I4LtD+gdwyah617jzV/OeBHRnDJELqYzmp212-----END CERTIFICATE-----213457# 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-----465MIICkDCCAfmgAwIBAgIBATANBgkqhkiG9w0BAQQFADBaMQswCQYDVQQGEwJVUzEc466MBoGA1UEChMTRXF1aWZheCBTZWN1cmUgSW5jLjEtMCsGA1UEAxMkRXF1aWZheCBT467ZWN1cmUgR2xvYmFsIGVCdXNpbmVzcyBDQS0xMB4XDTk5MDYyMTA0MDAwMFoXDTIw468MDYyMTA0MDAwMFowWjELMAkGA1UEBhMCVVMxHDAaBgNVBAoTE0VxdWlmYXggU2Vj469dXJlIEluYy4xLTArBgNVBAMTJEVxdWlmYXggU2VjdXJlIEdsb2JhbCBlQnVzaW5l470c3MgQ0EtMTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAuucXkAJlsTRVPEnC471UdXfp9E3j9HngXNBUmCbnaEXJnitx7HoJpQytd4zjTov2/KaelpzmKNc6fuKcxtc47258O/gGzNqfTWK8D3+ZmqY6KxRwIP1ORROhI8bIpaVIRw28HFkM9yRcuoWcDNM50/473o5brhTMhHD4ePmBudpxnhcXIw2ECAwEAAaNmMGQwEQYJYIZIAYb4QgEBBAQDAgAH474MA8GA1UdEwEB/wQFMAMBAf8wHwYDVR0jBBgwFoAUvqigdHJQa0S3ySPY+6j/s1dr475aGwwHQYDVR0OBBYEFL6ooHRyUGtEt8kj2Puo/7NXa2hsMA0GCSqGSIb3DQEBBAUA476A4GBADDiAVGqx+pf2rnQZQ8w1j7aDRRJbpGTJxQx78T3LUX47Me/okENI7SS+RkA477Z70Br83gcfxaz2TE4JaY0KNA4gGK7ycH8WUBikQtBmV1UsCGECAhX2xrD2yuCRyv4788qIYNMR1pHMc8Y3c7635s3a0kr/clRAevsvIO1qEYBlWlKlV479-----END CERTIFICATE-----480481# 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-----489MIICgjCCAeugAwIBAgIBBDANBgkqhkiG9w0BAQQFADBTMQswCQYDVQQGEwJVUzEc490MBoGA1UEChMTRXF1aWZheCBTZWN1cmUgSW5jLjEmMCQGA1UEAxMdRXF1aWZheCBT491ZWN1cmUgZUJ1c2luZXNzIENBLTEwHhcNOTkwNjIxMDQwMDAwWhcNMjAwNjIxMDQw492MDAwWjBTMQswCQYDVQQGEwJVUzEcMBoGA1UEChMTRXF1aWZheCBTZWN1cmUgSW5j493LjEmMCQGA1UEAxMdRXF1aWZheCBTZWN1cmUgZUJ1c2luZXNzIENBLTEwgZ8wDQYJ494KoZIhvcNAQEBBQADgY0AMIGJAoGBAM4vGbwXt3fek6lfWg0XTzQaDJj0ItlZ1MRo495RvC0NcWFAyDGr0WlIVFFQesWWDYyb+JQYmT5/VGcqiTZ9J2DKocKIdMSODRsjQBu496WqDZQu4aIZX5UkxVWsUPOE9G+m34LjXWHXzr4vCwdYDIqROsvojvOm6rXyo4YgKw497Env+j6YDAgMBAAGjZjBkMBEGCWCGSAGG+EIBAQQEAwIABzAPBgNVHRMBAf8EBTAD498AQH/MB8GA1UdIwQYMBaAFEp4MlIR21kWNl7fwRQ2QGpHfEyhMB0GA1UdDgQWBBRK499eDJSEdtZFjZe38EUNkBqR3xMoTANBgkqhkiG9w0BAQQFAAOBgQB1W6ibAxHm6VZM500zfmpTMANmvPMZWnmJXbMWbfWVMMdzZmsGd20hdXgPfxiIKeES1hl8eL5lSE/9dR+501WB5Hh1Q+WKG1tfgq73HnvMP2sUlG4tega+VWeponmHxGYhTnyfxuAxJ5gDgdSIKN502/Bf+KpYrtWKmpj29f5JZzVoqgrI3eQ==503-----END CERTIFICATE-----504214# 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: 1
321 unmodified lines
5396aLcr34YEoP9VhdBLtUpgn2Z9DH2canPLAEnpQW5qrJITirvn5NSUZU8UnOOVkwX540QMAJKOSLakhT2+zNVVXxxvjpoixMptEmX36vWkzaH6byHCx+rgIW0lbQL1dTR+iS541-----END CERTIFICATE-----542834# 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-----842MIIDpDCCAoygAwIBAgIBATANBgkqhkiG9w0BAQUFADBjMQswCQYDVQQGEwJVUzEc843MBoGA1UEChMTQW1lcmljYSBPbmxpbmUgSW5jLjE2MDQGA1UEAxMtQW1lcmljYSBP844bmxpbmUgUm9vdCBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eSAxMB4XDTAyMDUyODA2845MDAwMFoXDTM3MTExOTIwNDMwMFowYzELMAkGA1UEBhMCVVMxHDAaBgNVBAoTE0Ft846ZXJpY2EgT25saW5lIEluYy4xNjA0BgNVBAMTLUFtZXJpY2EgT25saW5lIFJvb3Qg847Q2VydGlmaWNhdGlvbiBBdXRob3JpdHkgMTCCASIwDQYJKoZIhvcNAQEBBQADggEP848ADCCAQoCggEBAKgv6KRpBgNHw+kqmP8ZonCaxlCyfqXfaE0bfA+2l2h9LaaLl+lk849hsmj76CGv2BlnEtUiMJIxUo5vxTjWVXlGbR0yLQFOVwWpeKVBeASrlmLojNoWBym8501BW32J/X3HGrfpq/m44zDyL9Hy7nBzbvYjnF3cu6JRQj3gzGPTzOggjmZj7aUTsW851OqMFf6Dch9Wc/HKpoH145LcxVR5lu9RhsCFg7RAycsWSJR74kEoYeEfffjA3PlAb8522xzTa5qGUwew76wGePiEmf4hjUyAtgyC9mZweRrTT6PP8c9GsEsPPt2IYriMqQko853O3rHl+Ee5fSfwMCuJKDIodkP1nsmgmkyPacCAwEAAaNjMGEwDwYDVR0TAQH/BAUw854AwEB/zAdBgNVHQ4EFgQUAK3Zo/Z59m50qX8zPYEX10zPM94wHwYDVR0jBBgwFoAU855AK3Zo/Z59m50qX8zPYEX10zPM94wDgYDVR0PAQH/BAQDAgGGMA0GCSqGSIb3DQEB856BQUAA4IBAQB8itEfGDeC4Liwo+1WlchiYZwFos3CYiZhzRAW18y0ZTTQEYqtqKkF857Zu90821fnZmv9ov761KyBZiibyrFVL0lvV+uyIbqRizBs73B6UlwGBaXCBOMIOAb858LjpHyx7kADCVW/RFo8AasAFOq73AI25jP4BKxQft3OJvx8Fi8eNy1gTIdGcL+oir859oQHIb/AUr9KZzVGTfu0uOMe9zkZQPXLjeSWdm4grECDdpbgyn43gKd8hdIaC2y+C860MMbHNYaz+ZZfRtsMRf3zUMNvxsNIrUam4SdHCh0Om7bCd39j8uB9Gr784N/Xx6ds861sPmuujz9dLQR6FgNgLzTqIA6me11zEZ7862-----END CERTIFICATE-----863864# 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-----872MIIFpDCCA4ygAwIBAgIBATANBgkqhkiG9w0BAQUFADBjMQswCQYDVQQGEwJVUzEc873MBoGA1UEChMTQW1lcmljYSBPbmxpbmUgSW5jLjE2MDQGA1UEAxMtQW1lcmljYSBP874bmxpbmUgUm9vdCBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eSAyMB4XDTAyMDUyODA2875MDAwMFoXDTM3MDkyOTE0MDgwMFowYzELMAkGA1UEBhMCVVMxHDAaBgNVBAoTE0Ft876ZXJpY2EgT25saW5lIEluYy4xNjA0BgNVBAMTLUFtZXJpY2EgT25saW5lIFJvb3Qg877Q2VydGlmaWNhdGlvbiBBdXRob3JpdHkgMjCCAiIwDQYJKoZIhvcNAQEBBQADggIP878ADCCAgoCggIBAMxBRR3pPU0Q9oyxQcngXssNt79Hc9PwVU3dxgz6sWYFas14tNwC879206B89enfHG8dWOgXeMHDEjsJcQDIPT/DjsS/5uN4cbVG7RtIuOx238hZK+GvFci880KtZHgVdEglZTvYYUAQv8f3SkWq7xuhG1m1hagLQ3eAkzfDJHA1zEpYNI9FdWboE2881JxhP7JsowtS013wMPgwr38oE18aO6lhOqKSlGBxsRZijQdEt0sdtjRnxrXm3gT+9882BoInLRBYBbV4Bbkv2wxrkJB+FFk4u5QkE+XRnRTf04JNRvCAOVIyD+OEsnpD8l7e883Xz8d3eOyG6ChKiMDbi4BFYdcpnV1x5dhvt6G3NRI270qv0pV2uh9UPu0gBe4lL8B884PeraunzgWGcXuVjgiIZGZ2ydEEdYMtA1fHkqkKJaEBEjNa0vzORKW6fIJ/KD3l67885Xnfn6KVuY8INXWHQjNJsWiEOyiijzirplcdIz5ZvHZIlyMbGwcEMBawmxNJ10uEq886Z8A9W6Wa6897GqidFEXlD6CaZd4vKL3Ob5Rmg0gp2OpljK+T2WSfVVcmv2/LNzGZ887o2C7HK2JNDJiuEMhBnIMoVxtRsX6Kc8w3onccVvdtjc+31D1uAclJuW8tf48ArO3888+L5DwYcRlJ4jbBeKuIonDFRH8KmzwICMoCfrHRnjB453cMor9H124HhnAgMBAAGj889YzBhMA8GA1UdEwEB/wQFMAMBAf8wHQYDVR0OBBYEFE1FwWg4u3OpaaEg5+31IqEj890FNeeMB8GA1UdIwQYMBaAFE1FwWg4u3OpaaEg5+31IqEjFNeeMA4GA1UdDwEB/wQE891AwIBhjANBgkqhkiG9w0BAQUFAAOCAgEAZ2sGuV9FOypLM7PmG2tZTiLMubekJcmn892xPBUlgtk87FYT15R/LKXeydlwuXK5w0MJXti4/qftIe3RUavg6WXSIylvfEWK5t2893LHo1YGwRgJfMqZJS5ivmae2p+DYtLHe/YUjRYwu5W1LtGLBDQiKmsXeu3mnFzccc894obGlHBD7GL4acN3Bkku+KVqdPzW+5X1R+FXgJXUjhx5c3LqdsKyzadsXg8n33gy8895CNyRnqjQ1xU3c6U1uPx+xURABsPr+CKAXEfOAuMRn0T//ZoyzH1kUQ7rVyZ2OuMe896IjzCpjbdGe+n/BLzJsBZMYVMnNjP36TMzCmT/5RtdlwTCJfy7aULTd3oyWgOZtMA897DjMSW7yV5TKQqLPGbIOtd+6Lfn6xqavT4fG2wLHqiMDn05DpKJKUe2h7lyoKZy2F898AjgQ5ANh1NolNscIWC2hp1GvMApJ9aZphwctREZ2jirlmjvXGKL8nDgQzMY70rUX899Om/9riW99XJZZLF0KjhfGEzfz3EEWjbUvy+ZnOjZurGV5gJLIaFb1cFPj65pbVPb900AZO1XB4Y3WRayhgoPmMEEf0cjQAPuDffZ4qdZqkCapH/E8ovXYO8h5Ns3CRRFgQl901Zvqz2cK6Kb6aSDiCmfS/O0oxGfm/jiEzFMpPVF/7zvuPcX/9XhmgD0uRuMRUvAaw902RY8mkaKO/qk=903-----END CERTIFICATE-----904543# 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: 25952180776285836048024890241505565794
362 unmodified lines
9097ZAEwbEpkcUwb8GpcjPM/l0WFywRaed+/sWDCN+83CI6LiBpIzlWYGeQiy52OfsR910iJf2fL1LuCAWZwWN4jvBcj+UlTfHXbme2JOhF4//DGYVwSR8MnwDHTuhWEUykw==911-----END CERTIFICATE-----9121275# 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-----1283MIIEKzCCAxOgAwIBAgIEOsylTDANBgkqhkiG9w0BAQUFADBDMQswCQYDVQQGEwJE1284SzEVMBMGA1UEChMMVERDIEludGVybmV0MR0wGwYDVQQLExRUREMgSW50ZXJuZXQg1285Um9vdCBDQTAeFw0wMTA0MDUxNjMzMTdaFw0yMTA0MDUxNzAzMTdaMEMxCzAJBgNV1286BAYTAkRLMRUwEwYDVQQKEwxUREMgSW50ZXJuZXQxHTAbBgNVBAsTFFREQyBJbnRl1287cm5ldCBSb290IENBMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAxLhA1288vJHVYx/XmaCLDEAedLdInUaMArLgJF/wGROnN4NrXceO+YQwzho7+vvOi20jxsNu1289Zp+Jpd/gQlBn+h9sHvTQBda/ytZO5GhgbEaqHF1j4QeGDmUApy6mcca8uYGoOn0a12900vnRrEvLznWv3Hv6gXPU/Lq9QYjUdLP5Xjg6PEOo0pVOd20TDJ2PeAG3WiAfAzc112914izbSysseLlJ28TQx5yc5IogCSEWVmb/Bexb4/DPqyQkXsN/cHoSxNK1EKC2IeGN1292eGlVRGn1ypYcNIUXJXfi9i8nmHj9eQY6otZaQ8H/7AQ77hPv01ha/5Lr7K7a8jcD1293R0G2l8ktCkEiu7vmpwIDAQABo4IBJTCCASEwEQYJYIZIAYb4QgEBBAQDAgAHMGUG1294A1UdHwReMFwwWqBYoFakVDBSMQswCQYDVQQGEwJESzEVMBMGA1UEChMMVERDIElu1295dGVybmV0MR0wGwYDVQQLExRUREMgSW50ZXJuZXQgUm9vdCBDQTENMAsGA1UEAxME1296Q1JMMTArBgNVHRAEJDAigA8yMDAxMDQwNTE2MzMxN1qBDzIwMjEwNDA1MTcwMzE31297WjALBgNVHQ8EBAMCAQYwHwYDVR0jBBgwFoAUbGQBx/2FbazI2p5QCIUItTxWqFAw1298HQYDVR0OBBYEFGxkAcf9hW2syNqeUAiFCLU8VqhQMAwGA1UdEwQFMAMBAf8wHQYJ1299KoZIhvZ9B0EABBAwDhsIVjUuMDo0LjADAgSQMA0GCSqGSIb3DQEBBQUAA4IBAQBO1300Q8zR3R0QGwZ/t6T609lN+yOfI1Rb5osvBCiLtSdtiaHsmGnc540mgwV5dOy0uaOX1301wTUA/RXaOYE6lTGQ3pfphqiZdwzlWqCE/xIWrG64jcN7ksKsLtB9KOy282A4aW8+13022ARVPp7MVdK6/rtHBNcK2RYKNCn1WBPVT8+PVkuzHu7TmHnaCB4Mb7j4Fifvwm8913039qNLPg7kbWzbO0ESm70NRyN/PErQr8Cv9u8btRXE64PECV90i9kR+8JWsTz4cMo01304jUNAE4z9mQNUecYu6oah9jrUCbz0vGbMPVjQV0kK7iXiQe4T+Zs4NNEA9X7nlB381305aQNiuJkFBT1reBK9sG9l1306-----END CERTIFICATE-----1307913# 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: 91374294542884689855167577680241077609
177 unmodified lines
1094f1qbFFgBJ34TUMdrKuZoPL9coAob4Q566eKAw+np9v1sEZ7Q5SgnK1QyQhSCdeZK10958CtmdWOMovsEPoMOmzbwGOQmIMOM8CgHrTwXZoi1/baI1096-----END CERTIFICATE-----10971493# 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-----1501MIIFSzCCBLSgAwIBAgIBaTANBgkqhkiG9w0BAQQFADCBmTELMAkGA1UEBhMCSFUx1502ETAPBgNVBAcTCEJ1ZGFwZXN0MScwJQYDVQQKEx5OZXRMb2NrIEhhbG96YXRiaXp01503b25zYWdpIEtmdC4xGjAYBgNVBAsTEVRhbnVzaXR2YW55a2lhZG9rMTIwMAYDVQQD1504EylOZXRMb2NrIFV6bGV0aSAoQ2xhc3MgQikgVGFudXNpdHZhbnlraWFkbzAeFw051505OTAyMjUxNDEwMjJaFw0xOTAyMjAxNDEwMjJaMIGZMQswCQYDVQQGEwJIVTERMA8G1506A1UEBxMIQnVkYXBlc3QxJzAlBgNVBAoTHk5ldExvY2sgSGFsb3phdGJpenRvbnNh1507Z2kgS2Z0LjEaMBgGA1UECxMRVGFudXNpdHZhbnlraWFkb2sxMjAwBgNVBAMTKU5l1508dExvY2sgVXpsZXRpIChDbGFzcyBCKSBUYW51c2l0dmFueWtpYWRvMIGfMA0GCSqG1509SIb3DQEBAQUAA4GNADCBiQKBgQCx6gTsIKAjwo84YM/HRrPVG/77uZmeBNwcf4xK1510gZjupNTKihe5In+DCnVMm8Bp2GQ5o+2So/1bXHQawEfKOml2mrriRBf8TKPV/riX1511iK+IA4kfpPIEPsgHC+b5sy96YhQJRhTKZPWLgLViqNhr1nGTLbO/CVRY7QbrqHvc1512Q7GhaQIDAQABo4ICnzCCApswEgYDVR0TAQH/BAgwBgEB/wIBBDAOBgNVHQ8BAf8E1513BAMCAAYwEQYJYIZIAYb4QgEBBAQDAgAHMIICYAYJYIZIAYb4QgENBIICURaCAk1G1514SUdZRUxFTSEgRXplbiB0YW51c2l0dmFueSBhIE5ldExvY2sgS2Z0LiBBbHRhbGFu1515b3MgU3pvbGdhbHRhdGFzaSBGZWx0ZXRlbGVpYmVuIGxlaXJ0IGVsamFyYXNvayBh1516bGFwamFuIGtlc3p1bHQuIEEgaGl0ZWxlc2l0ZXMgZm9seWFtYXRhdCBhIE5ldExv1517Y2sgS2Z0LiB0ZXJtZWtmZWxlbG9zc2VnLWJpenRvc2l0YXNhIHZlZGkuIEEgZGln1518aXRhbGlzIGFsYWlyYXMgZWxmb2dhZGFzYW5hayBmZWx0ZXRlbGUgYXogZWxvaXJ01519IGVsbGVub3J6ZXNpIGVsamFyYXMgbWVndGV0ZWxlLiBBeiBlbGphcmFzIGxlaXJh1520c2EgbWVndGFsYWxoYXRvIGEgTmV0TG9jayBLZnQuIEludGVybmV0IGhvbmxhcGph1521biBhIGh0dHBzOi8vd3d3Lm5ldGxvY2submV0L2RvY3MgY2ltZW4gdmFneSBrZXJo1522ZXRvIGF6IGVsbGVub3J6ZXNAbmV0bG9jay5uZXQgZS1tYWlsIGNpbWVuLiBJTVBP1523UlRBTlQhIFRoZSBpc3N1YW5jZSBhbmQgdGhlIHVzZSBvZiB0aGlzIGNlcnRpZmlj1524YXRlIGlzIHN1YmplY3QgdG8gdGhlIE5ldExvY2sgQ1BTIGF2YWlsYWJsZSBhdCBo1525dHRwczovL3d3dy5uZXRsb2NrLm5ldC9kb2NzIG9yIGJ5IGUtbWFpbCBhdCBjcHNA1526bmV0bG9jay5uZXQuMA0GCSqGSIb3DQEBBAUAA4GBAATbrowXr/gOkDFOzT4JwG061527sPgzTEdM43WIEJessDgVkcYplswhwG08pXTP2IKlOcNl40JwuyKQ433bNXbhoLXa1528n3BukxowOR0w2y7jfLKRstE3Kfq51hdcR0/jHTjrn9V7lagonhVK0dHQKwCXoOKS1529NitjrFgBazMpUIaD8QFI1530-----END CERTIFICATE-----15311532# 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-----1540MIIFTzCCBLigAwIBAgIBaDANBgkqhkiG9w0BAQQFADCBmzELMAkGA1UEBhMCSFUx1541ETAPBgNVBAcTCEJ1ZGFwZXN0MScwJQYDVQQKEx5OZXRMb2NrIEhhbG96YXRiaXp01542b25zYWdpIEtmdC4xGjAYBgNVBAsTEVRhbnVzaXR2YW55a2lhZG9rMTQwMgYDVQQD1543EytOZXRMb2NrIEV4cHJlc3N6IChDbGFzcyBDKSBUYW51c2l0dmFueWtpYWRvMB4X1544DTk5MDIyNTE0MDgxMVoXDTE5MDIyMDE0MDgxMVowgZsxCzAJBgNVBAYTAkhVMREw1545DwYDVQQHEwhCdWRhcGVzdDEnMCUGA1UEChMeTmV0TG9jayBIYWxvemF0Yml6dG9u1546c2FnaSBLZnQuMRowGAYDVQQLExFUYW51c2l0dmFueWtpYWRvazE0MDIGA1UEAxMr1547TmV0TG9jayBFeHByZXNzeiAoQ2xhc3MgQykgVGFudXNpdHZhbnlraWFkbzCBnzAN1548BgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA6+ywbGGKIyWvYCDj2Z/8kwvbXY2wobNA1549OoLO/XXgeDIDhlqGlZHtU/qdQPzm6N3ZW3oDvV3zOwzDUXmbrVWg6dADEK8KuhRC15502VImESLH0iDMgqSaqf64gXadarfSNnU+sYYJ9m5tfk63euyucYT2BDMIJTLrdKwW1551RMbkQJMdf60CAwEAAaOCAp8wggKbMBIGA1UdEwEB/wQIMAYBAf8CAQQwDgYDVR0P1552AQH/BAQDAgAGMBEGCWCGSAGG+EIBAQQEAwIABzCCAmAGCWCGSAGG+EIBDQSCAlEW1553ggJNRklHWUVMRU0hIEV6ZW4gdGFudXNpdHZhbnkgYSBOZXRMb2NrIEtmdC4gQWx01554YWxhbm9zIFN6b2xnYWx0YXRhc2kgRmVsdGV0ZWxlaWJlbiBsZWlydCBlbGphcmFz1555b2sgYWxhcGphbiBrZXN6dWx0LiBBIGhpdGVsZXNpdGVzIGZvbHlhbWF0YXQgYSBO1556ZXRMb2NrIEtmdC4gdGVybWVrZmVsZWxvc3NlZy1iaXp0b3NpdGFzYSB2ZWRpLiBB1557IGRpZ2l0YWxpcyBhbGFpcmFzIGVsZm9nYWRhc2FuYWsgZmVsdGV0ZWxlIGF6IGVs1558b2lydCBlbGxlbm9yemVzaSBlbGphcmFzIG1lZ3RldGVsZS4gQXogZWxqYXJhcyBs1559ZWlyYXNhIG1lZ3RhbGFsaGF0byBhIE5ldExvY2sgS2Z0LiBJbnRlcm5ldCBob25s1560YXBqYW4gYSBodHRwczovL3d3dy5uZXRsb2NrLm5ldC9kb2NzIGNpbWVuIHZhZ3kg1561a2VyaGV0byBheiBlbGxlbm9yemVzQG5ldGxvY2submV0IGUtbWFpbCBjaW1lbi4g1562SU1QT1JUQU5UISBUaGUgaXNzdWFuY2UgYW5kIHRoZSB1c2Ugb2YgdGhpcyBjZXJ01563aWZpY2F0ZSBpcyBzdWJqZWN0IHRvIHRoZSBOZXRMb2NrIENQUyBhdmFpbGFibGUg1564YXQgaHR0cHM6Ly93d3cubmV0bG9jay5uZXQvZG9jcyBvciBieSBlLW1haWwgYXQg1565Y3BzQG5ldGxvY2submV0LjANBgkqhkiG9w0BAQQFAAOBgQAQrX/XDDKACtiG8XmY1566ta3UzbM2xJZIwVzNmtkFLp++UOv0JhQQLdRmF/iewSf98e3ke0ugbLWrmldwpu2g1567pO0u9f38vf5NNwgMvOOWgyL1SRt/Syu0VMGAfJlOHdCM7tCs5ZL6dVb+ZKATj7i41568Fp1hBWeAyNDYpQcCNJgEjTME1A==1569-----END CERTIFICATE-----15701098# 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: 107108908803651509692980124233745014957
181 unmodified lines
1283LMDDav7v3Aun+kbfYNucpllQdSNpc5Oy+fwC00fmcc4QAu4njIT/rEUNE1yDMuAl1284pYYsfPQS1285-----END CERTIFICATE-----12861760# 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-----1768MIIEVzCCAz+gAwIBAgIBATANBgkqhkiG9w0BAQUFADCBnTELMAkGA1UEBhMCRVMx1769IjAgBgNVBAcTGUMvIE11bnRhbmVyIDI0NCBCYXJjZWxvbmExQjBABgNVBAMTOUF11770dG9yaWRhZCBkZSBDZXJ0aWZpY2FjaW9uIEZpcm1hcHJvZmVzaW9uYWwgQ0lGIEE21771MjYzNDA2ODEmMCQGCSqGSIb3DQEJARYXY2FAZmlybWFwcm9mZXNpb25hbC5jb20w1772HhcNMDExMDI0MjIwMDAwWhcNMTMxMDI0MjIwMDAwWjCBnTELMAkGA1UEBhMCRVMx1773IjAgBgNVBAcTGUMvIE11bnRhbmVyIDI0NCBCYXJjZWxvbmExQjBABgNVBAMTOUF11774dG9yaWRhZCBkZSBDZXJ0aWZpY2FjaW9uIEZpcm1hcHJvZmVzaW9uYWwgQ0lGIEE21775MjYzNDA2ODEmMCQGCSqGSIb3DQEJARYXY2FAZmlybWFwcm9mZXNpb25hbC5jb20w1776ggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDnIwNvbyOlXnjOlSztlB5u1777Cp4Bx+ow0Syd3Tfom5h5VtP8c9/Qit5Vj1H5WuretXDE7aTt/6MNbg9kUDGvASdY1778rv5sp0ovFy3Tc9UTHI9ZpTQsHVQERc1ouKDAA6XPhUJHlShbz++AbOCQl4oBPB3z1779hxAwJkh91/zpnZFx/0GaqUC1N5wpIE8fUuOgfRNtVLcK3ulqTgesrBlf3H5idPay1780BQC6haD9HThuy1q7hryUZzM1gywfI834yJFxzJeL764P3CkDG8A563DtwW4O2GcL1781iam8NeTvtjS0pbbELaW+0MOUJEjb35bTALVmGotmBQ/dPz/LP6pemkr4tErvlTcb1782AgMBAAGjgZ8wgZwwKgYDVR0RBCMwIYYfaHR0cDovL3d3dy5maXJtYXByb2Zlc2lv1783bmFsLmNvbTASBgNVHRMBAf8ECDAGAQH/AgEBMCsGA1UdEAQkMCKADzIwMDExMDI01784MjIwMDAwWoEPMjAxMzEwMjQyMjAwMDBaMA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4E1785FgQUMwugZtHq2s7eYpMEKFK1FH84aLcwDQYJKoZIhvcNAQEFBQADggEBAEdz/o0n1786VPD11HecJ3lXV7cVVuzH2Fi3AQL0M+2TUIiefEaxvT8Ub/GzR0iLjJcG1+p+o1wq1787u00vR+L4OQbJnC4xGgN49Lw4xiKLMzHwFgQEffl25EvXwOaD7FnMP97/T2u3Z36m1788hoEyIwOdyPdfwUpgpZKpsaSgYMN4h7Mi8yrrW6ntBas3D7Hi05V2Y1Z0jFhyGzfl1789ZKG+TQyTmAyX9odtsz/ny4Cm7YjHX1BiAuiZdBbQ5rQ58SfLyEDW44YQqSMSkuBp1790QWOnryULwMWSyx6Yo1q6xTMPoJcB3X/ge9YGVM+h4k0460tQtcsm9MracEpqoeJ51791quGnM/b9Sh/22WA=1792-----END CERTIFICATE-----17931287# 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: 122348795730808398873664200247279986742
215 unmodified lines
1506rscL9yuwNwXsvFcj4jjSm2jzVhKIT0J8uDHEtdvkyCE06UgRNe76x5JXxZ805Mf215079w4LTJxoeHtxMcfrHuBnQfO3oKfN5XozNmr6mis=1508-----END CERTIFICATE-----15092017# 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-----2025MIID+zCCAuOgAwIBAgIBATANBgkqhkiG9w0BAQUFADCBtzE/MD0GA1UEAww2VMOc2026UktUUlVTVCBFbGVrdHJvbmlrIFNlcnRpZmlrYSBIaXptZXQgU2HEn2xhecSxY8Sx2027c8SxMQswCQYDVQQGDAJUUjEPMA0GA1UEBwwGQU5LQVJBMVYwVAYDVQQKDE0oYykg2028MjAwNSBUw5xSS1RSVVNUIEJpbGdpIMSwbGV0acWfaW0gdmUgQmlsacWfaW0gR8O82029dmVubGnEn2kgSGl6bWV0bGVyaSBBLsWeLjAeFw0wNTA1MTMxMDI3MTdaFw0xNTAz2030MjIxMDI3MTdaMIG3MT8wPQYDVQQDDDZUw5xSS1RSVVNUIEVsZWt0cm9uaWsgU2Vy2031dGlmaWthIEhpem1ldCBTYcSfbGF5xLFjxLFzxLExCzAJBgNVBAYMAlRSMQ8wDQYD2032VQQHDAZBTktBUkExVjBUBgNVBAoMTShjKSAyMDA1IFTDnFJLVFJVU1QgQmlsZ2kg2033xLBsZXRpxZ9pbSB2ZSBCaWxpxZ9pbSBHw7x2ZW5sacSfaSBIaXptZXRsZXJpIEEu2034xZ4uMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAylIF1mMD2Bxf3dJ72035XfIMYGFbazt0K3gNfUW9InTojAPBxhEqPZW8qZSwu5GXyGl8hMW0kWxsE2qkVa2k2036heiVfrMArwDCBRj1cJ02i67L5BuBf5OI+2pVu32Fks66WJ/bMsW9Xe8iSi9BB35J2037YbOG7E6mQW6EvAPs9TscyB/C7qju6hJKjRTP8wrgUDn5CDX4EVmt5yLqS8oUBt5C2038urKZ8y1UiBAG6uEaPj1nH/vO+3yC6BFdSsG5FOpU2WabfIl9BJpiyelSPJ6c79L12039JuTm5Rh8i27fbMx4W09ysstcP4wFjdFMjK2Sx+F4f2VsSQZQLJ4ywtdKxnWKWU512040b0dewQIDAQABoxAwDjAMBgNVHRMEBTADAQH/MA0GCSqGSIb3DQEBBQUAA4IBAQAV20419VX/N5aAWSGk/KEVTCD21F/aAyT8z5Aa9CEKmu46sWrv7/hg0Uw2ZkUd82YCdAR72042kjCo3gp2D++Vbr3JN+YaDayJSFvMgzbC9UZcWYJWtNX+I7TYVBxEq8Sn5RTOPEFh2043fEPmzcSBCYsk+1Ql1haolgxnB2+zUEfjHCQo3SqYpGH+2+oSN7wBGjSFvW5P55Fy2044B0SFHljKVETd96y5y4khctuPwGkplyqjrhgjlxxBKot8KsF8kOipKMDTkcatKIdA2045aLX/7KfS0zgYnNN9aV3wxqUeJBujR/xpB2jn5Jq07Q+hh4cCzofSSE7hvP/L8XKS2046RGQDJereW26fyfJOrN3H2047-----END CERTIFICATE-----20481510# 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: 1
563 unmodified lines
2077t0QmwCbAr1UwnjvVNioZBPRcHv/PLLf/0P2HQBHVESO7SMAhqaQoLf0V+LBOK/Qw2078WyH8EZE0vkHve52Xdf+XlcCWWC/qu0bXu+TZLg==2079-----END CERTIFICATE-----20802620# 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-----2628MIIGZjCCBE6gAwIBAgIPB35Sk3vgFeNX8GmMy+wMMA0GCSqGSIb3DQEBBQUAMHsx2629CzAJBgNVBAYTAkNPMUcwRQYDVQQKDD5Tb2NpZWRhZCBDYW1lcmFsIGRlIENlcnRp2630ZmljYWNpw7NuIERpZ2l0YWwgLSBDZXJ0aWPDoW1hcmEgUy5BLjEjMCEGA1UEAwwa2631QUMgUmHDrXogQ2VydGljw6FtYXJhIFMuQS4wHhcNMDYxMTI3MjA0NjI5WhcNMzAw2632NDAyMjE0MjAyWjB7MQswCQYDVQQGEwJDTzFHMEUGA1UECgw+U29jaWVkYWQgQ2Ft2633ZXJhbCBkZSBDZXJ0aWZpY2FjacOzbiBEaWdpdGFsIC0gQ2VydGljw6FtYXJhIFMu2634QS4xIzAhBgNVBAMMGkFDIFJhw616IENlcnRpY8OhbWFyYSBTLkEuMIICIjANBgkq2635hkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAq2uJo1PMSCMI+8PPUZYILrgIem08kBeG2636qentLhM0R7LQcNzJPNCNyu5LF6vQhbCnIwTLqKL85XXbQMpiiY9QngE9JlsYhBzL2637fDe3fezTf3MZsGqy2IiKLUV0qPezuMDU2s0iiXRNWhU5cxh0T7XrmafBHoi0wpOQ2638Y5fzp6cSsgkiBzPZkc0OnB8OIMfuuzONj8LSWKdf/WU34ojC2I+GdV75LaeHM/J42639Ny+LvB2GNzmxlPLYvEqcgxhaBvzz1NS6jBUJJfD5to0EfhcSM2tXSExP2yYe68yQ264054v5aHxwD6Mq0Do43zeX4lvegGHTgNiRg0JaTASJaBE8rF9ogEHMYELODVoqDA+b2641MMCm8Ibbq0nXl21Ii/kDwFJnmxL3wvIumGVC2daa49AZMQyth9VXAnow6IYm+48j2642ilSH5L887uvDdUhfHjlvgWJsxS3EF1QZtzeNnDeRyPYL1epjb4OsOMLzP96a++Ej2643YfDIJss2yKHzMI+ko6Kh3VOz3vCaMh+DkXkwwakfU5tTohVTP92dsxA7SH2JD/zt2644A/X7JWR1DhcZDY8AFmd5ekD8LVkH2ZD6mq093ICK5lw1omdMEWux+IBkAC1vImHF2645rEsm5VoQgpukg3s0956JkSCXjrdCx2bD0Omk1vUgjcTDlaxECp1bczwmPS9KvqfJ2646pxAe+59QafMCAwEAAaOB5jCB4zAPBgNVHRMBAf8EBTADAQH/MA4GA1UdDwEB/wQE2647AwIBBjAdBgNVHQ4EFgQU0QnQ6dfOeXRU+Tows/RtLAMDG2gwgaAGA1UdIASBmDCB2648lTCBkgYEVR0gADCBiTArBggrBgEFBQcCARYfaHR0cDovL3d3dy5jZXJ0aWNhbWFy2649YS5jb20vZHBjLzBaBggrBgEFBQcCAjBOGkxMaW1pdGFjaW9uZXMgZGUgZ2FyYW5026507WFzIGRlIGVzdGUgY2VydGlmaWNhZG8gc2UgcHVlZGVuIGVuY29udHJhciBlbiBs2651YSBEUEMuMA0GCSqGSIb3DQEBBQUAA4ICAQBclLW4RZFNjmEfAygPU3zmpFmps4p62652xbD/CHwso3EcIRNnoZUSQDWDg4902zNc8El2CoFS3UnUmjIz75uny3XlesuXEpBc2653unvFm9+7OSPI/5jOCk0iAUgHforA1SBClETvv3eiiWdIG0ADBaGJ7M9i4z0ldma/2654Jre7Ir5v/zlXdLp6yQGVwZVR6Kss+LGGIOk/yzVb0hfpKv6DExdA7ohiZVvVO2Dp2655ezy4ydV/NgIlqmjCMRW3MGXrfx1IebHPOeJCgBbT9ZMj/EyXyVo3bHwi2ErN0o422656gzmRkBDI8ck1fj+404HGIGQatlDCIaR43NAvO2STdPCWkPHv+wlaNECW8DYSwaN02657jJN+Qd53i+yG2dIPPy3RzECiiWZIHiCznCNZc6lEc7wkeZBWN7PGKX6jD/EpOe9+2658XCgycDWs2rjIdWb8m0w5R44bb5tNAlQiM+9hup4phO9OSzNHdpdqy35f/RWmnkJD2659W2ZaiogN9xa5P1FlK2Zqi9E4UqLWRhH6/JocdJ6PlwsCT2TG9WjTSy3/pDceiz+/2660RL5hRqGEPQgnTIEgd4kI6mdAXmwIUV80WoyWaM3X94nCHNMyAK9Sy9NgWyo6R35r2661MDOhYil/SrnhLecUIw4OGEfhefwVVdCx/CVxY3UzHCMrr1zZ7Ud3YA47Dx7SwNxk2662BYn8eNZcLCZDqQ==2663-----END CERTIFICATE-----26642665# 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-----2673MIIEqjCCA5KgAwIBAgIOLmoAAQACH9dSISwRXDswDQYJKoZIhvcNAQEFBQAwdjEL2674MAkGA1UEBhMCREUxHDAaBgNVBAoTE1RDIFRydXN0Q2VudGVyIEdtYkgxIjAgBgNV2675BAsTGVRDIFRydXN0Q2VudGVyIENsYXNzIDIgQ0ExJTAjBgNVBAMTHFRDIFRydXN02676Q2VudGVyIENsYXNzIDIgQ0EgSUkwHhcNMDYwMTEyMTQzODQzWhcNMjUxMjMxMjI12677OTU5WjB2MQswCQYDVQQGEwJERTEcMBoGA1UEChMTVEMgVHJ1c3RDZW50ZXIgR21i2678SDEiMCAGA1UECxMZVEMgVHJ1c3RDZW50ZXIgQ2xhc3MgMiBDQTElMCMGA1UEAxMc2679VEMgVHJ1c3RDZW50ZXIgQ2xhc3MgMiBDQSBJSTCCASIwDQYJKoZIhvcNAQEBBQAD2680ggEPADCCAQoCggEBAKuAh5uO8MN8h9foJIIRszzdQ2Lu+MNF2ujhoF/RKrLqk2jf2681tMjWQ+nEdVl//OEd+DFwIxuInie5e/060smp6RQvkL4DUsFJzfb95AhmC1eKokKg2682uNV/aVyQMrKXDcpK3EY+AlWJU+MaWss2xgdW94zPEfRMuzBwBJWl9jmM/XOBCH2J2683XjIeIqkiRUuwZi4wzJ9l/fzLganx4Duvo4bRierERXlQXa7pIXSSTYtZgo+U4+lK26848edJsBTj9WLL1XK9H7nSn6DNqPoByNkN39r8R52zyFTfSUrxIan+GE7uSNQZu+9926855OKdy1u2bv/jzVrndIIFuoAlOMvkaZ6vQaoahPUCAwEAAaOCATQwggEwMA8GA1Ud2686EwEB/wQFMAMBAf8wDgYDVR0PAQH/BAQDAgEGMB0GA1UdDgQWBBTjq1RMgKHbVkO32687kUrL84J6E1wIqzCB7QYDVR0fBIHlMIHiMIHfoIHcoIHZhjVodHRwOi8vd3d3LnRy2688dXN0Y2VudGVyLmRlL2NybC92Mi90Y19jbGFzc18yX2NhX0lJLmNybIaBn2xkYXA62689Ly93d3cudHJ1c3RjZW50ZXIuZGUvQ049VEMlMjBUcnVzdENlbnRlciUyMENsYXNz2690JTIwMiUyMENBJTIwSUksTz1UQyUyMFRydXN0Q2VudGVyJTIwR21iSCxPVT1yb2902691Y2VydHMsREM9dHJ1c3RjZW50ZXIsREM9ZGU/Y2VydGlmaWNhdGVSZXZvY2F0aW9u2692TGlzdD9iYXNlPzANBgkqhkiG9w0BAQUFAAOCAQEAjNfffu4bgBCzg/XbEeprS6iS2693GNn3Bzn1LL4GdXpoUxUc6krtXvwjshOg0wn/9vYua0Fxec3ibf2uWWuFHbhOIprt2694ZjluS5TmVfwLG4t3wVMTZonZKNaL80VKY7f9ewthXbhtvsPcW3nS7Yblok2+XnR82695au0WOB9/WIFaGusyiC2y8zl3gK9etmF1KdsjTYjKUCjLhdLTEKJZbtOTVAB6okaV2696hgWcqRmY5TFyDADiZ9lA4CQze28suVyrZZ0srHbqNZn1l7kPJOzHdiEoZa5X6AeI2697dUpWoNIFOqTmjZKILPPy4cHGYdtBxceb9w4aUUXCYWvcZCcXjFq32nQozZfkvQ==2698-----END CERTIFICATE-----26992700# 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-----2708MIIEqjCCA5KgAwIBAgIOSkcAAQAC5aBd1j8AUb8wDQYJKoZIhvcNAQEFBQAwdjEL2709MAkGA1UEBhMCREUxHDAaBgNVBAoTE1RDIFRydXN0Q2VudGVyIEdtYkgxIjAgBgNV2710BAsTGVRDIFRydXN0Q2VudGVyIENsYXNzIDMgQ0ExJTAjBgNVBAMTHFRDIFRydXN02711Q2VudGVyIENsYXNzIDMgQ0EgSUkwHhcNMDYwMTEyMTQ0MTU3WhcNMjUxMjMxMjI12712OTU5WjB2MQswCQYDVQQGEwJERTEcMBoGA1UEChMTVEMgVHJ1c3RDZW50ZXIgR21i2713SDEiMCAGA1UECxMZVEMgVHJ1c3RDZW50ZXIgQ2xhc3MgMyBDQTElMCMGA1UEAxMc2714VEMgVHJ1c3RDZW50ZXIgQ2xhc3MgMyBDQSBJSTCCASIwDQYJKoZIhvcNAQEBBQAD2715ggEPADCCAQoCggEBALTgu1G7OVyLBMVMeRwjhjEQY0NVJz/GRcekPewJDRoeIMJW2716Ht4bNwcwIi9v8Qbxq63WyKthoy9DxLCyLfzDlml7forkzMA5EpBCYMnMNWju2l+Q2717Vl/NHE1bWEnrDgFPZPosPIlY2C8u4rBo6SI7dYnWRBpl8huXJh0obazovVkdKyT227181oQDZogkAHhg8fir/gKya/si+zXmFtGt9i4S5Po1auUZuV3bOx4a+9P/FRQI2Alq2719ukWdFHlgfa9Aigdzs5OW03Q0jTo3Kd5c7PXuLjHCINy+8U9/I1LZW+Jk2ZyqBwi12720Rb3R0DHBq1SfqdLDYmAD8bs5SpJKPQq5ncWg/jcCAwEAAaOCATQwggEwMA8GA1Ud2721EwEB/wQFMAMBAf8wDgYDVR0PAQH/BAQDAgEGMB0GA1UdDgQWBBTUovyfs8PYA9NX2722XAek0CSnwPIA1DCB7QYDVR0fBIHlMIHiMIHfoIHcoIHZhjVodHRwOi8vd3d3LnRy2723dXN0Y2VudGVyLmRlL2NybC92Mi90Y19jbGFzc18zX2NhX0lJLmNybIaBn2xkYXA62724Ly93d3cudHJ1c3RjZW50ZXIuZGUvQ049VEMlMjBUcnVzdENlbnRlciUyMENsYXNz2725JTIwMyUyMENBJTIwSUksTz1UQyUyMFRydXN0Q2VudGVyJTIwR21iSCxPVT1yb2902726Y2VydHMsREM9dHJ1c3RjZW50ZXIsREM9ZGU/Y2VydGlmaWNhdGVSZXZvY2F0aW9u2727TGlzdD9iYXNlPzANBgkqhkiG9w0BAQUFAAOCAQEANmDkcPcGIEPZIxpC8vijsrlN2728irTzwppVMXzEO2eatN9NDoqTSheLG43KieHPOh6sHfGcMrSOWXaiQYUlN6AT0PV82729TtXqluJucsG7Kv5sbviRmEb8yRtXW+rIGjs/sFGYPAfaLFkB2otE6OF0/ado3VS62730g0bsyEa1+K+XwDsJHI/OcpY9M1ZwvJbL2NV9IJqDnxrcOfHFcqMRA/07QlIp2+gB273195tejNaNhk4Z+rwcvsUhpYeeeC422wlxo3I0+GzjBgnyXlal092Y+tTmBvTwtiBj2732S+opvaqCZh77gaqnN60TGOaSw4HBM7uIHqHn4rS9MWwOUT1v+5ZWgOI2F9Hc5A==2733-----END CERTIFICATE-----27342735# 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-----2743MIID3TCCAsWgAwIBAgIOHaIAAQAC7LdggHiNtgYwDQYJKoZIhvcNAQEFBQAweTEL2744MAkGA1UEBhMCREUxHDAaBgNVBAoTE1RDIFRydXN0Q2VudGVyIEdtYkgxJDAiBgNV2745BAsTG1RDIFRydXN0Q2VudGVyIFVuaXZlcnNhbCBDQTEmMCQGA1UEAxMdVEMgVHJ12746c3RDZW50ZXIgVW5pdmVyc2FsIENBIEkwHhcNMDYwMzIyMTU1NDI4WhcNMjUxMjMx2747MjI1OTU5WjB5MQswCQYDVQQGEwJERTEcMBoGA1UEChMTVEMgVHJ1c3RDZW50ZXIg2748R21iSDEkMCIGA1UECxMbVEMgVHJ1c3RDZW50ZXIgVW5pdmVyc2FsIENBMSYwJAYD2749VQQDEx1UQyBUcnVzdENlbnRlciBVbml2ZXJzYWwgQ0EgSTCCASIwDQYJKoZIhvcN2750AQEBBQADggEPADCCAQoCggEBAKR3I5ZEr5D0MacQ9CaHnPM42Q9e3s9B6DGtxnSR2751JJZ4Hgmgm5qVSkr1YnwCqMqs+1oEdjneX/H5s7/zA1hV0qq34wQi0fiU2iIIAI3T2752fCZdzHd55yx4Oagmcw6iXSVphU9VDprvxrlE4Vc93x9UIuVvZaozhDrzznq+VZeu2753jRIPFDPiUHDDSYcTvFHe15gSWu86gzOSBnWLknwSaHtwag+1m7Z3W0hZneTvWq3z2754wZ7U10VOylY0Ibw+F1tvdwxIAUMpsN0/lm7mlaoMwCC2/T42J5zjXM9OgdwZu5GQ2755fezmlwQek8wiSdeXhrYTCjxDI3d+8NzmzSQfO4ObNDqDNOMCAwEAAaNjMGEwHwYD2756VR0jBBgwFoAUkqR1LKSevoFE63n8isWVpesQdXMwDwYDVR0TAQH/BAUwAwEB/zAO2757BgNVHQ8BAf8EBAMCAYYwHQYDVR0OBBYEFJKkdSyknr6BROt5/IrFlaXrEHVzMA0G2758CSqGSIb3DQEBBQUAA4IBAQAo0uCG1eb4e/CX3CJrO5UUVg8RMKWaTzqwOuAGy2X127597caXJ/4l8lfmXpWMPmRgFVp/Lw0BxbFg/UU1z/CyvwbZ71q+s2IhtNerNXxTPqYn27608aEt2hojnczd7Dwtnic0XQ/CNnm8yUpiLe1r2X1BQ3y2qsrtYbE3ghUJGooWMNjs2761ydZHcnhLEEYUjl8Or+zHL6sQ17bxbuyGssLoDZJz3KL0Dzq/YSMQiZxIQG5wALPT2762ujdEWBF6AmqI8Dc08BnprNRlc/ZpjGSUOnmFKbAWKwyCPwacx/0QK54PLLae4xW/27632TYcuiUaUj0a7CIMHOCkoj3w6DnPgcB77V0fb8XQC9eY2764-----END CERTIFICATE-----27652081# 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: 38
22 unmodified lines
2107xbrYNuSD7Odlt79jWvNGr4GUN9RBjNYj1h7P9WgbRGOiWrqnNVmh5XAFmw4jV5mU2108Cm26OWMohpLzGITY+9HPBVZkVw==2109-----END CERTIFICATE-----21102796# 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-----2804MIIDqzCCApOgAwIBAgIRAMcoRwmzuGxFjB36JPU2TukwDQYJKoZIhvcNAQEFBQAw2805PDEbMBkGA1UEAxMSQ29tU2lnbiBTZWN1cmVkIENBMRAwDgYDVQQKEwdDb21TaWdu2806MQswCQYDVQQGEwJJTDAeFw0wNDAzMjQxMTM3MjBaFw0yOTAzMTYxNTA0NTZaMDwx2807GzAZBgNVBAMTEkNvbVNpZ24gU2VjdXJlZCBDQTEQMA4GA1UEChMHQ29tU2lnbjEL2808MAkGA1UEBhMCSUwwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDGtWhf2809HZQVw6QIVS3joFd67+l0Kru5fFdJGhFeTymHDEjWaueP1H5XJLkGieQcPOqs49oh2810gHMhCu95mGwfCP+hUH3ymBvJVG8+pSjsIQQPRbsHPaHA+iqYHU4Gk/v1iDurX8sW2811v+bznkqH7Rnqwp9D5PGBpX8QTz7RSmKtUxvLg/8HZaWSLWapW7ha9B20IZFKF3ue2812Mv5WJDmyVIRD9YTC2LxBkMyd1mja6YJQqTtoz7VdApRgFrFD2UNd3V2Hbuq7s8lr28139gOUCXDeFhF6K+h2j0kQmHe5Y1yLM5d19guMsqtb3nQgJT/j8xH5h2iGNXHDHYwt28146+UarA9z1YJZQIDTAgMBAAGjgacwgaQwDAYDVR0TBAUwAwEB/zBEBgNVHR8EPTA72815MDmgN6A1hjNodHRwOi8vZmVkaXIuY29tc2lnbi5jby5pbC9jcmwvQ29tU2lnblNl2816Y3VyZWRDQS5jcmwwDgYDVR0PAQH/BAQDAgGGMB8GA1UdIwQYMBaAFMFL7XC29z582817ADsAj8c+DkWfHl3sMB0GA1UdDgQWBBTBS+1wtvc+fAA7AI/HPg5Fnx5d7DANBgkq2818hkiG9w0BAQUFAAOCAQEAFs/ukhNQq3sUnjO2QiBq1BW9Cav8cujvR3qQrFHBZE7p2819iL1DRYHjZiM/EoZNGeQFsOY3wo3aBijJD4mkU6l1P7CW+6tMM1X5eCZGbxs2mPtC2820dsGCuY7e+0X5YxtiOzkGynd6qDwJz2w2PQ8KRUtpFhpFfTMDZflScZAmlaxMDPWL2821kz/MdXSFmLr/YnpNH4n+rr2UAJm/EaXc4HnFFgt9AmEd6oX5AhVP51qJThRv4zdL2822hfXBPGHg/QVBspJ/wx2g0K5SZGBrGMYmnNj1ZOQ2GmKfig8+/21OGVZOIJFsnzQz2823OjRXUDpvgV4GxvU+fE6OK85lBi5d0ipTdF7Tbieejw==2824-----END CERTIFICATE-----28252111# Issuer: CN=Cybertrust Global Root O=Cybertrust, Inc2112# Subject: CN=Cybertrust Global Root O=Cybertrust, Inc2113# Label: "Cybertrust Global Root"2114# Serial: 4835703278459682877484360
129 unmodified lines
2244h7U/2k3ZIQAw3pDaDtMaSKk+hQsUi4y8QZ5q9w5wwDX3OaJdZtB7WZ+oRxKaJyOk2245LY4ng5IgodcVf/EuGO70SH8vf/GhGLWhC5SgYiAynB321O+/TIho2246-----END CERTIFICATE-----22472963# 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-----2971MIIDUzCCAjugAwIBAgIBAjANBgkqhkiG9w0BAQUFADBLMQswCQYDVQQGEwJOTzEd2972MBsGA1UECgwUQnV5cGFzcyBBUy05ODMxNjMzMjcxHTAbBgNVBAMMFEJ1eXBhc3Mg2973Q2xhc3MgMyBDQSAxMB4XDTA1MDUwOTE0MTMwM1oXDTE1MDUwOTE0MTMwM1owSzEL2974MAkGA1UEBhMCTk8xHTAbBgNVBAoMFEJ1eXBhc3MgQVMtOTgzMTYzMzI3MR0wGwYD2975VQQDDBRCdXlwYXNzIENsYXNzIDMgQ0EgMTCCASIwDQYJKoZIhvcNAQEBBQADggEP2976ADCCAQoCggEBAKSO13TZKWTeXx+HgJHqTjnmGcZEC4DVC69TB4sSveZn8AKxifZg2977isRbsELRwCGoy+Gb72RRtqfPFfV0gGgEkKBYouZ0plNTVUhjP5JW3SROjvi6K//z2978NIqeKNc0n6wv1g/xpC+9UrJJhW05NfBEMJNGJPO251P7vGGvqaMU+8IXF4Rs4HyI2979+MkcVyzwPX6UvCWThOiaAJpFBUJXgPROztmuOfbIUxAMZTpHe2DC1vqRycZxbL2R2980hzyRhkmr8w+gbCZ2Xhysm3HljbybIR6c1jh+JIAVMYKWsUnTYjdbiAwKYjT+p0h+2981mbEwi5A3lRyoH6UsjfRVyNvdWQrCrXig9IsCAwEAAaNCMEAwDwYDVR0TAQH/BAUw2982AwEB/zAdBgNVHQ4EFgQUOBTmyPCppAP0Tj4io1vy1uCtQHQwDgYDVR0PAQH/BAQD2983AgEGMA0GCSqGSIb3DQEBBQUAA4IBAQABZ6OMySU9E2NdFm/soT4JXJEVKirZgCFP2984Bdy7pYmrEzMqnji3jG8CcmPHc3ceCQa6Oyh7pEfJYWsICCD8igWKH7y6xsL+z27s2985EzNxZy5p+qksP2bAEllNC1QCkoS72xLvg3BweMhT+t/Gxv/ciC8HwEmdMldg0/L22986mSlf56oBzKwzqBwKu5HEA6BvtjT5htOzdlSY9EqBs1OdTUDs5XcTRa9bqh/YL0yC2987e/4qxFi7T/ye/QNlGioOw6UgFpRreaaiErS7GqQjel/wroQk5PMr+4okoyeYZdow2988dXb8GZHo2+ubPzK/QJcHJrrM85SFSnonk8+QQtS4Wxam58tAA9152989-----END CERTIFICATE-----29902248# 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: 5525761995591021570
539 unmodified lines
2791r0CodaxWkHS4oJyleW/c6RrIaQXpuvoDs3zk4E7Czp3otkYNbn5XOmeUwssfnHdK2792Z05phkOTOPu220+DkdRgfks+KzgHVZhepA==2793-----END CERTIFICATE-----27943538# 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-----3546MIICPDCCAaUCEDyRMcsf9tAbDpq40ES/Er4wDQYJKoZIhvcNAQEFBQAwXzELMAkG3547A1UEBhMCVVMxFzAVBgNVBAoTDlZlcmlTaWduLCBJbmMuMTcwNQYDVQQLEy5DbGFz3548cyAzIFB1YmxpYyBQcmltYXJ5IENlcnRpZmljYXRpb24gQXV0aG9yaXR5MB4XDTk23549MDEyOTAwMDAwMFoXDTI4MDgwMjIzNTk1OVowXzELMAkGA1UEBhMCVVMxFzAVBgNV3550BAoTDlZlcmlTaWduLCBJbmMuMTcwNQYDVQQLEy5DbGFzcyAzIFB1YmxpYyBQcmlt3551YXJ5IENlcnRpZmljYXRpb24gQXV0aG9yaXR5MIGfMA0GCSqGSIb3DQEBAQUAA4GN3552ADCBiQKBgQDJXFme8huKARS0EN8EQNvjV69qRUCPhAwL0TPZ2RHP7gJYHyX3KqhE3553BarsAx94f56TuZoAqiN91qyFomNFx3InzPRMxnVx0jnvT0Lwdd8KkMaOIG+YD/is3554I19wKTakyYbnsZogy1Olhec9vn2a/iRFM9x2Fe0PonFkTGUugWhFpwIDAQABMA0G3555CSqGSIb3DQEBBQUAA4GBABByUqkFFBkyCEHwxWsKzH4PIRnN5GfcX6kb5sroc50i35562JhucwNhkcV8sEVAbkSdjbCxlnRhLQ2pRdKkkirWmnWXbj9T/UWZYB2oK0z5XqcJ35572HUw19JlYD1n1khVdWk/kfVIC0dpImmClr7JyDiGSnoscxlIaU5rfGW/D/xwzoiQ3558-----END CERTIFICATE-----35592795# 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: 14014712776195784473
24 unmodified lines
28232Pm2G2JwCz02yULyMtd6YebS2z3PyKnJm9zbWETXbzivf3jTo60adbocwTZ8jx5t2824HMN1Rq41Bab2XD0h7lbwyYIiLXpUq3DDfSJlgnCW2825-----END CERTIFICATE-----28263592# 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-----3600MIIDtjCCAp6gAwIBAgIQRJmNPMADJ72cdpW56tustTANBgkqhkiG9w0BAQUFADB13601MQswCQYDVQQGEwJUUjEoMCYGA1UEChMfRWxla3Ryb25payBCaWxnaSBHdXZlbmxp3602Z2kgQS5TLjE8MDoGA1UEAxMzZS1HdXZlbiBLb2sgRWxla3Ryb25payBTZXJ0aWZp3603a2EgSGl6bWV0IFNhZ2xheWljaXNpMB4XDTA3MDEwNDExMzI0OFoXDTE3MDEwNDEx3604MzI0OFowdTELMAkGA1UEBhMCVFIxKDAmBgNVBAoTH0VsZWt0cm9uaWsgQmlsZ2kg3605R3V2ZW5saWdpIEEuUy4xPDA6BgNVBAMTM2UtR3V2ZW4gS29rIEVsZWt0cm9uaWsg3606U2VydGlmaWthIEhpem1ldCBTYWdsYXlpY2lzaTCCASIwDQYJKoZIhvcNAQEBBQAD3607ggEPADCCAQoCggEBAMMSIJ6wXgBljU5Gu4Bc6SwGl9XzcslwuedLZYDBS75+PNdU3608MZTe1RK6UxYC6lhj71vY8+0qGqpxSKPcEC1fX+tcS5yWCEIlKBHMilpiAVDV6wlT3609L/jDj/6z/P2douNffb7tC+Bg62nsM+3YjfsSSYMAyYuXjDtzKjKzEve5TfL0TW3H36105tYmNwjy2f1rXKPlSFxYvEK+A1qBuhw1DADT9SN+cTAIJjjcJRFHLfO6IxClv7wC361190Nex/6wN1CZew+TzuZDLMN+DfIcQ2Zgy2ExR4ejT669VmxMvLz4Bcpk9Ok0oSy13612c+HCPujIyTQlCFzz7abHlJ+tiEMl1+E5YP6sOVkCAwEAAaNCMEAwDgYDVR0PAQH/3613BAQDAgEGMA8GA1UdEwEB/wQFMAMBAf8wHQYDVR0OBBYEFJ/uRLOU1fqRTy7ZVZoE3614VtstxNulMA0GCSqGSIb3DQEBBQUAA4IBAQB/X7lTW2M9dTLn+sR0GstG30ZpHFLP3615qk/CaOv/gKlR6D1id4k9CnU58W5dF4dvaAXBlGzZXd/aslnLpRCKysw5zZ/rTt5S3616/wzw9JKp8mxTq5vSR6AfdPebmvEvFZ96ZDAYBzwqD2fK/A+JYZ1lpTzlvBNbCNvj3617/+27BrtqBrF6T2XGgv0enIu1De5Iu7i9qgi0+6N8y5/NkHZchpZ4Vwpm+Vganf2X3618KWDeEaaQHBkc7gGWIjQ0LpH5t8Qn0Xvmv/uARFoW5evg1Ao4vOSR49XrXMGs3xtq3619fJ7lddK2l4fbzIcrQzqECK+rPNv3PGYxhrCdU3nt+CPeQuMtgvEP5fqX3620-----END CERTIFICATE-----36212827# 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: 4835703278459759426209954
1397 unmodified lines
4228wa19hAM8EHiGG3njxPPyBJUgriOCxLM6AGK/5jYk4Ve6xx6QddVfP5VhK8E7zeWz4229aGHQRiapIVJpLesux+t3zqY6tQMzT3bR51xUAV3LePTJDL/PEo4XLSNolOer/qmy4230KwbQBM0=4231-----END CERTIFICATE-----42324233# 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-----4241MIIFODCCAyCgAwIBAgIRAJW+FqD3LkbxezmCcvqLzZYwDQYJKoZIhvcNAQEFBQAw4242NzEUMBIGA1UECgwLVGVsaWFTb25lcmExHzAdBgNVBAMMFlRlbGlhU29uZXJhIFJv4243b3QgQ0EgdjEwHhcNMDcxMDE4MTIwMDUwWhcNMzIxMDE4MTIwMDUwWjA3MRQwEgYD4244VQQKDAtUZWxpYVNvbmVyYTEfMB0GA1UEAwwWVGVsaWFTb25lcmEgUm9vdCBDQSB24245MTCCAiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIBAMK+6yfwIaPzaSZVfp3F4246VRaRXP3vIb9TgHot0pGMYzHw7CTww6XScnwQbfQ3t+XmfHnqjLWCi65ItqwA3GV142477CpNX8GH9SBlK4GoRz6JI5UwFpB/6FcHSOcZrr9FZ7E3GwYq/t75rH2D+1665I+X4248Z75Ljo1kB1c4VWk0Nj0TSO9P4tNmHqTPGrdeNjPUtAa9GAH9d4RQAEX1jF3oI7x+4249/jXh7VB7qTCNGdMJjmhnXb88lxhTuylixcpecsHHltTbLaC0H2kD7OriUPEMPPCs425081Mt8Bz17Ww5OXOAFshSsCPN4D7c3TxHoLs1iuKYaIu+5b9y7tL6pe0S7fyYGKkm4251dtwoSxAgHNN/Fnct7W+A90m7UwW7XWjH1Mh1Fj+JWov3F0fUTPHSiXk+TT2YqGHe4252Oh7S+F4D4MHJHIzTjU3TlTazN19jY5szFPAtJmtTfImMMsJu7D0hADnJoWjiUIMu4253sDor8zagrC/kb2HCUQk5PotTubtn2txTuXZZNp1D5SDgPTJghSJRt8czu90VL6R44254pgd7gUY2BIbdeTXHlSw7sKMXNeVzH7RcWe/a6hBle3rQf5+ztCo3O3CLm1u5K7fs4255slESl1MpWtTwEhDcTwK7EpIvYtQ/aUN8Ddb8WHUBiJ1YFkveupD/RwGJBmr2X7KQ4256arMCpgKIv7NHfirZ1fpoeDVNAgMBAAGjPzA9MA8GA1UdEwEB/wQFMAMBAf8wCwYD4257VR0PBAQDAgEGMB0GA1UdDgQWBBTwj1k4ALP1j5qWDNXr+nuqF+gTEjANBgkqhkiG42589w0BAQUFAAOCAgEAvuRcYk4k9AwI//DTDGjkk0kiP0Qnb7tt3oNmzqjMDfz1mgbl4259dxSR651Be5kqhOX//CHBXfDkH1e3damhXwIm/9fH907eT/j3HEbAek9ALCI18Bmx42600GtnLLCo4MBANzX2hFxc469CeP6nyQ1Q6g2EdvZR74NTxnr/DlZJLo961gzmJ1Tj4261TQpgcmLNkQfWpb/ImWvtxBnmq0wROMVvMeJuScg/doAmAyYp4Db29iBT4xdwNBed4262Y2gea+zDTYa4EzAvXUYNR0PVG6pZDrlcjQZIrXSHX8f8MVRBE+LHIQ6e4B4N4cB74263Q4WQxYpYxmUKeFfyxiMPAdkgS94P+5KFdSpcc41teyWRyu5FrgZLAMzTsVlQ2jqI4264OylDRl6XK1TOU2+NSueW+r9xDkKLfP0ooNBIytrEgUy7onOTJsjrDNYmiLbAJM+74265vVvrdX3pCI6GMyx5dwlppYn8s3CQh3aP0yK7Qs69cwsgJirQmz1wHiRszYd2qReW4266t88NkvuOGKmYSdGe/mBEciG5Ge3C9THxOUiIkCR1VBatzvT4aRRkOfujuLpwQMcn4267HL/EVlP6Y2XQ8xwOFvVrhlhNGNTkDY6lnVuR3HYkUD/GKvvZt5y11ubQ2egZixVx4268SK236thZiNSQvxaz2emsWWFUyBy6ysHK4bkgTI86k4mloMy/0/Z1pHWWbVY=4269-----END CERTIFICATE-----42704271# 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-----4279MIIGSzCCBDOgAwIBAgIIamg+nFGby1MwDQYJKoZIhvcNAQELBQAwgbIxCzAJBgNV4280BAYTAlRSMQ8wDQYDVQQHDAZBbmthcmExQDA+BgNVBAoMN0UtVHXEn3JhIEVCRyBC4281aWxpxZ9pbSBUZWtub2xvamlsZXJpIHZlIEhpem1ldGxlcmkgQS7Fni4xJjAkBgNV4282BAsMHUUtVHVncmEgU2VydGlmaWthc3lvbiBNZXJrZXppMSgwJgYDVQQDDB9FLVR14283Z3JhIENlcnRpZmljYXRpb24gQXV0aG9yaXR5MB4XDTEzMDMwNTEyMDk0OFoXDTIz4284MDMwMzEyMDk0OFowgbIxCzAJBgNVBAYTAlRSMQ8wDQYDVQQHDAZBbmthcmExQDA+4285BgNVBAoMN0UtVHXEn3JhIEVCRyBCaWxpxZ9pbSBUZWtub2xvamlsZXJpIHZlIEhp4286em1ldGxlcmkgQS7Fni4xJjAkBgNVBAsMHUUtVHVncmEgU2VydGlmaWthc3lvbiBN4287ZXJrZXppMSgwJgYDVQQDDB9FLVR1Z3JhIENlcnRpZmljYXRpb24gQXV0aG9yaXR54288MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEA4vU/kwVRHoViVF56C/UY4289B4Oufq9899SKa6VjQzm5S/fDxmSJPZQuVIBSOTkHS0vdhQd2h8y/L5VMzH2nPbxH4290D5hw+IyFHnSOkm0bQNGZDbt1bsipa5rAhDGvykPL6ys06I+XawGb1Q5KCKpbknSF4291Q9OArqGIW66z6l7LFpp3RMih9lRozt6Plyu6W0ACDGQXwLWTzeHxE2bODHnv0ZEo4292q1+gElIwcxmOj+GMB6LDu0rw6h8VqO4lzKRG+Bsi77MOQ7osJLjFLFzUHPhdZL3D4293k14opz8n8Y4e0ypQBaNV2cvnOVPAmJ6MVGKLJrD3fY185MaeZkJVgkfnsliNZvcH4294fC425lAcP9tDJMW/hkd5s3kc91r0E+xs+D/iWR+V7kI+ua2oMoVJl0b+SzGPWsut4295dEcf6ZG33ygEIqDUD13ieU/qbIWGvaimzuT6w+Gzrt48Ue7LE3wBf4QOXVGUnhMM4296ti6lTPk5cDZvlsouDERVxcr6XQKj39ZkjFqzAQqptQpHF//vkUAqjqFGOjGY5RH84297zLtJVor8udBhmm9lbObDyz51Sf6Pp+KJxWfXnUYTTjF2OySznhFlhqt/7x3U+Lzn4298rFpct1pHXFXOVbQicVtbC/DP3KBhZOqp12gKY6fgDT+gr9Oq0n7vUaDmUStVkhUX4299U8u3Zg5mTPj5dUyQ5xJwx0UCAwEAAaNjMGEwHQYDVR0OBBYEFC7j27JJ0JxUeVz64300Jyr+zE7S6E5UMA8GA1UdEwEB/wQFMAMBAf8wHwYDVR0jBBgwFoAULuPbsknQnFR54301XPonKv7MTtLoTlQwDgYDVR0PAQH/BAQDAgEGMA0GCSqGSIb3DQEBCwUAA4ICAQAF4302Nzr0TbdF4kV1JI+2d1LoHNgQk2Xz8lkGpD4eKexd0dCrfOAKkEh47U6YA5n+KGCR4303HTAduGN8qOY1tfrTYXbm1gdLymmasoR6d5NFFxWfJNCYExL/u6Au/U5Mh/jOXKqY4304GwXgAEZKgoClM4so3O0409/lPun++1ndYYRP0lSWE2ETPo+Aab6TR7U1Q9Jauz1c430577NCR807VRMGsAnb/WP2OogKmW9+4c4bU2pEZiNRCHu8W1Ki/QY3OEBhj0qWuJA34306+GbHeJAAFS6LrVE1Uweoa2iu+U48BybNCAVwzDk/dr2l02cmAYamU9JgO3xDf1WK4307vJUawSg5TB9D0pH0clmKuVb8P7Sd2nCcdlqMQ1DujjByTd//SffGqWfZbawCEeI64308FiWnWAjLb1NBnEg4R2gz0dfHj9R0IdTDBZB6/86WiLEVKV0jq9BgoRJP3vQXzTLl4309yb/IQ639Lo7xr+L0mPoSHyDYwKcMhcWQ9DstliaxLL5Mq+ux0orJ23gTDx4JnW2P4310AJ8C2sH6H3p6CcRK5ogql5+Ji/03X186zjhZhkuvcQu02PJwT58yE+Owp1fl2tpD4311y4Q08ijE6m30Ku/Ba3ba+367hTzSU8JNvnHhRdH9I2cNE3X7z2VnIp2usAnRCf8d4312NL/+I5c30jn6PQ0GC7TbO6Orb1wdtn7os4I07QZcJA==4313-----END CERTIFICATE-----43144315# 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-----4323MIIDwzCCAqugAwIBAgIBATANBgkqhkiG9w0BAQsFADCBgjELMAkGA1UEBhMCREUx4324KzApBgNVBAoMIlQtU3lzdGVtcyBFbnRlcnByaXNlIFNlcnZpY2VzIEdtYkgxHzAd4325BgNVBAsMFlQtU3lzdGVtcyBUcnVzdCBDZW50ZXIxJTAjBgNVBAMMHFQtVGVsZVNl4326YyBHbG9iYWxSb290IENsYXNzIDIwHhcNMDgxMDAxMTA0MDE0WhcNMzMxMDAxMjM14327OTU5WjCBgjELMAkGA1UEBhMCREUxKzApBgNVBAoMIlQtU3lzdGVtcyBFbnRlcnBy4328aXNlIFNlcnZpY2VzIEdtYkgxHzAdBgNVBAsMFlQtU3lzdGVtcyBUcnVzdCBDZW504329ZXIxJTAjBgNVBAMMHFQtVGVsZVNlYyBHbG9iYWxSb290IENsYXNzIDIwggEiMA0G4330CSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCqX9obX+hzkeXaXPSi5kfl82hVYAUd4331AqSzm1nzHoqvNK38DcLZSBnuaY/JIPwhqgcZ7bBcrGXHX+0CfHt8LRvWurmAwhiC4332FoT6ZrAIxlQjgeTNuUk/9k9uN0goOA/FvudocP05l03Sx5iRUKrERLMjfTlH6VJi43331hKTXrcxlkIF+3anHqP1wvzpesVsqXFP6st4vGCvx9702cu+fjOlbpSD8DT6Iavq4334jnKgP6TeMFvvhk1qlVtDRKgQFRzlAVfFmPHmBiiRqiDFt1MmUUOyCxGVWOHAD3bZ4335wI18gfNycJ5v/hqO2V81xrJvNHy+SE/iWjnX2J14np+GPgNeGYtEotXHAgMBAAGj4336QjBAMA8GA1UdEwEB/wQFMAMBAf8wDgYDVR0PAQH/BAQDAgEGMB0GA1UdDgQWBBS/4337WSA2AHmgoCJrjNXyYdK4LMuCSjANBgkqhkiG9w0BAQsFAAOCAQEAMQOiYQsfdOhy4338NsZt+U2e+iKo4YFWz827n+qrkRk4r6p8FU3ztqONpfSO9kSpp+ghla0+AGIWiPAC4339uvxhI+YzmzB6azZie60EI4RYZeLbK4rnJVM3YlNfvNoBYimipidx5joifsFvHZVw4340IEoHNN/q/xWA5brXethbdXwFeilHfkCoMRN3zUA7tFFHei4R40cR3p1m0IvVVGb64341g1XqfMIpiRvpb7PO4gWEyS8+eIVibslfwXhjdFjASBgMmTnrpMwatXlajRWc2BQN43429noHV8cigwUtPJslJj0Ys6lDfMjIq2SPDqO/nBudMNva0Bkuqjzx+zOAduTNrRlP4343BSeOE6Fuwg==4344-----END CERTIFICATE-----43454346# 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:a9:1e:b3:5d:53:ca:9a:d7:86:4a:ce:01:8e:2d:35:d5:f8:f9:6d:df:68:a6:f4:1a:a4:744353-----BEGIN CERTIFICATE-----4354MIIDdzCCAl+gAwIBAgIIXDPLYixfszIwDQYJKoZIhvcNAQELBQAwPDEeMBwGA1UE4355AwwVQXRvcyBUcnVzdGVkUm9vdCAyMDExMQ0wCwYDVQQKDARBdG9zMQswCQYDVQQG4356EwJERTAeFw0xMTA3MDcxNDU4MzBaFw0zMDEyMzEyMzU5NTlaMDwxHjAcBgNVBAMM4357FUF0b3MgVHJ1c3RlZFJvb3QgMjAxMTENMAsGA1UECgwEQXRvczELMAkGA1UEBhMC4358REUwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCVhTuXbyo7LjvPpvMp4359Nb7PGKw+qtn4TaA+Gke5vJrf8v7MPkfoepbCJI419KkM/IL9bcFyYie96mvr54rM4360VD6QUM+A1JX76LWC1BTFtqlVJVfbsVD2sGBkWXppzwO3bw2+yj5vdHLqqjAqc2K+4361SZFhyBH+DgMq92og3AIVDV4VavzjgsG1xZ1kCWyjWZgHJ8cblithdHFsQ/H3NYkQ43624J7sVaE3IqKHBAUsR320HLliKWYoyrfhk/WklAOZuXCFteZI6o1Q/NnezG8HDt0L4363cp2AMBYHlT8oDv3FdU9T1nSatCQujgKRz3bFmx5VdJx4IbHwLfELn8LVlhgf8FQi4364eowHAgMBAAGjfTB7MB0GA1UdDgQWBBSnpQaxLKYJYO7Rl+lwrrw7GWzbITAPBgNV4365HRMBAf8EBTADAQH/MB8GA1UdIwQYMBaAFKelBrEspglg7tGX6XCuvDsZbNshMBgG4366A1UdIAQRMA8wDQYLKwYBBAGwLQMEAQEwDgYDVR0PAQH/BAQDAgGGMA0GCSqGSIb34367DQEBCwUAA4IBAQAmdzTblEiGKkGdLD4GkGDEjKwLVLgfuXvTBznk+j57sj1O7Z8j4368vZfza1zv7v1Apt+hk6EKhqzvINB5Ab149xnYJDE0BAGmuhWawyfc2E8PzBhj/5kP4369DpFrdRbhIfzYJsdHt6bPWHJxfrrhTZVHO8mvbaG0weyJ9rQPOLXiZNwlz6bb65pc4370maHFCN795trV1lpFDMS3wrUU77QR/w4VtfX128a961qn8FYiqTxlVMYVqL2Gns2D4371lmh6cYGJ4Qvh6hEbaAjMaZ7snkGeRDImeuKHCnE96+RapNLbxc3G3mB/ufNPRJLv4372KrcYPqcZ2Qt9sTdBQrC6YB3y/gkRsPCHe6ed4373-----END CERTIFICATE-----43744375# 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-----4383MIIFYDCCA0igAwIBAgIUeFhfLq0sGUvjNwc1NBMotZbUZZMwDQYJKoZIhvcNAQEL4384BQAwSDELMAkGA1UEBhMCQk0xGTAXBgNVBAoTEFF1b1ZhZGlzIExpbWl0ZWQxHjAc4385BgNVBAMTFVF1b1ZhZGlzIFJvb3QgQ0EgMSBHMzAeFw0xMjAxMTIxNzI3NDRaFw004386MjAxMTIxNzI3NDRaMEgxCzAJBgNVBAYTAkJNMRkwFwYDVQQKExBRdW9WYWRpcyBM4387aW1pdGVkMR4wHAYDVQQDExVRdW9WYWRpcyBSb290IENBIDEgRzMwggIiMA0GCSqG4388SIb3DQEBAQUAA4ICDwAwggIKAoICAQCgvlAQjunybEC0BJyFuTHK3C3kEakEPBtV4389wedYMB0ktMPvhd6MLOHBPd+C5k+tR4ds7FtJwUrVu4/sh6x/gpqG7D0DmVIB0jWe4390rNrwU8lmPNSsAgHaJNM7qAJGr6Qc4/hzWHa39g6QDbXwz8z6+cZM5cOGMAqNF341439168Xfuw6cwI2H44g4hWf6Pser4BOcBRiYz5P1sZK0/CPTz9XEJ0ngnjybCKOLXSoh43924Pw5qlPafX7PGglTvF0FBM+hSo+LdoINofjSxxR3W5A2B4GbPgb6Ul5jxaYA/qXp4393UhtStZI5cgMJYr2wYBZupt0lwgNm3fME0UDiTouG9G/lg6AnhF4EwfWQvTA9xO+o4394abw4m6SkltFi2mnAAZauy8RRNOoMqv8hjlmPSlzkYZqn0ukqeI1RPToV7qJZjqlc43953sX5kCLliEVx3ZGZbHqfPT2YfF72vhZooF6uCyP8Wg+qInYtyaEQHeTTRCOQiJ/G4396KubX9ZqzWB4vMIkIG1SitZgj7Ah3HJVdYdHLiZxfokqRmu8hqkkWCKi9YSgxyXSt4397hfbZxbGL0eUQMk1fiyA6PEkfM4VZDdvLCXVDaXP7a3F98N/ETH3Goy7IlXnLc6KO4398Tk0k+17kBL5yG6YnLUlamXrXXAkgt3+UuU/xDRxeiEIbEbfnkduebPRq34wGmAOt4399zCjvpUfzUwIDAQABo0IwQDAPBgNVHRMBAf8EBTADAQH/MA4GA1UdDwEB/wQEAwIB4400BjAdBgNVHQ4EFgQUo5fW816iEOGrRZ88F2Q87gFwnMwwDQYJKoZIhvcNAQELBQAD4401ggIBABj6W3X8PnrHX3fHyt/PX8MSxEBd1DKquGrX1RUVRpgjpeaQWxiZTOOtQqOC4402MTaIzen7xASWSIsBx40Bz1szBpZGZnQdT+3Btrm0DWHMY37XLneMlhwqI2hrhVd24403cDMT/uFPpiN3GPoajOi9ZcnPP/TJF9zrx7zABC4tRi9pZsMbj/7sPtPKlL92CiUN4404qXsCHKnQO18LwIE6PWThv6ctTr1NxNgpxiIY0MWscgKCP6o6ojoilzHdCGPDdRS54405YCgtW2jgFqlmgiNR9etT2DGbe+m3nUvriBbP+V04ikkwj+3x6xn0dxoxGE1nVGwv4406b2X52z3sIexe9PSLymBlVNFxZPT5pqOBMzYzcfCkeF9OrYMh3jRJjehZrJ3ydlo244078hP0r+AJx2EqbPfgna67hkooby7utHnNkDPDs3b69fBsnQGQ+p6Q9pxyz0fawx/k4408NSBT8lTR32GDpgLiJTjehTItXnOQUl1CxM49S+H5GYQd1aJQzEH7QRTDvdbJWqNj4409ZgKAvQU6O0ec7AAmTPWIUb+oI38YB7AL7YsmoWTTYUrrXJ/es69nA7Mf3W1daWhp4410q1467HxpvMc7hU6eFbm0FU/DlXpY18ls6Wy58yljXrQs8C097Vpl4KlbQMJImYFt4411nh8GKjwStIsPm6Ik8KaN1nrgS7ZklmOVhMJKzRwuJIczYOXD4412-----END CERTIFICATE-----44134414# 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-----4422MIIFYDCCA0igAwIBAgIURFc0JFuBiZs18s64KztbpybwdSgwDQYJKoZIhvcNAQEL4423BQAwSDELMAkGA1UEBhMCQk0xGTAXBgNVBAoTEFF1b1ZhZGlzIExpbWl0ZWQxHjAc4424BgNVBAMTFVF1b1ZhZGlzIFJvb3QgQ0EgMiBHMzAeFw0xMjAxMTIxODU5MzJaFw004425MjAxMTIxODU5MzJaMEgxCzAJBgNVBAYTAkJNMRkwFwYDVQQKExBRdW9WYWRpcyBM4426aW1pdGVkMR4wHAYDVQQDExVRdW9WYWRpcyBSb290IENBIDIgRzMwggIiMA0GCSqG4427SIb3DQEBAQUAA4ICDwAwggIKAoICAQChriWyARjcV4g/Ruv5r+LrI3HimtFhZiFf4428qq8nUeVuGxbULX1QsFN3vXg6YOJkApt8hpvWGo6t/x8Vf9WVHhLL5hSEBMHfNrMW4429n4rjyduYNM7YMxcoRvynyfDStNVNCXJJ+fKH46nafaF9a7I6JaltUkSs+L5u+9ym4430c5GQYaYDFCDy54ejiK2toIz/pgslUiXnFgHVy7g1gQyjO/Dh4fxaXc6AcW34Sas+4431O7q414AB+6XrW7PFXmAqMaCvN+ggOp+oMiwMzAkd056OXbxMmO7FGmh77FOm6RQ14432o9/NgJ8MSPsc9PG/Srj61YxxSscfrf5BmrODXfKEVu+lV0POKa2Mq1W/xPtbAd0j4433IaFYAI7D0GoT7RPjEiuA3GfmlbLNHiJuKvhB1PLKFAeNilUSxmn1uIZoL1NesNKq4434IcGY5jDjZ1XHm26sGahVpkUG0CM62+tlXSoREfA7T8pt9DTEceT/AFr2XK4jYIVz44358eQQsSWu1ZK7E8EM4DnatDlXtas1qnIhO4M15zHfeiFuuDIIfR0ykRVKYnLP43eh4436vNURG3YBZwjgQQvD6xVu+KQZ2aKrr+InUlYrAoosFCT5v0ICvybIxo/gbjh9Uy3l44377ZizlWNof/k19N+IxWA1ksB8aRxhlRbQ694Lrz4EEEVlWFA4r0jyWbYW8jwNkALG4438cC4BrTwV1wIDAQABo0IwQDAPBgNVHRMBAf8EBTADAQH/MA4GA1UdDwEB/wQEAwIB4439BjAdBgNVHQ4EFgQU7edvdlq/YOxJW8ald7tyFnGbxD0wDQYJKoZIhvcNAQELBQAD4440ggIBAJHfgD9DCX5xwvfrs4iP4VGyvD11+ShdyLyZm3tdquXK4Qr36LLTn91nMX664441AarHakE7kNQIXLJgapDwyM4DYvmL7ftuKtwGTTwpD4kWilhMSA/ohGHqPHKmd+RC4442roijQ1h5fq7KpVMNqT1wvSAZYaRsOPxDMuHBR//47PERIjKWnML2W2mWeyAMQ0Ga4443W/ZZGYjeVYg3UQt4XAoeo0L9x52ID8DyeAIkVJOviYeIyUqAHerQbj5hLja7NQ4n4444lv1mNDthcnPxFlxHBlRJAHpYErAK74X9sbgzdWqTHBLmYF5vHX/JHyPLhGGfHoJE4445+V+tYlUkmlKY7VHnoX6XOuYvHxHaU4AshZ6rNRDbIl9qxV6XU/IyAgkwo1jwDQHV4446csaxfGl7w/U2Rcxhbl5MlMVerugOXou/983g7aEOGzPuVBj+D77vfoRrQ+NwmNtd4447dbINWQeFFSM51vHfqSYP1kjHs6Yi9TM3WpVHn3u6GBVv/9YUZINJ0gpnIdsPNWNg4448KCLjsZWDzYWm3S8P52dSbrsvhXz1SnPnxT7AvSESBT/8twNJAlvIJebiVDj1eYeM4449HVOyToV7BjjHLPj4sHKNJeV3UvQDHEimUF+IIDBu8oJDqz2XhOdT+yHBTw8imoa44450WSr2Rz0ZiC3oheGe7IUIarFsNMkd7EgrO3jtZsSOeWmD3n+M4451-----END CERTIFICATE-----44524453# 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-----4461MIIFYDCCA0igAwIBAgIULvWbAiin23r/1aOp7r0DoM8Sah0wDQYJKoZIhvcNAQEL4462BQAwSDELMAkGA1UEBhMCQk0xGTAXBgNVBAoTEFF1b1ZhZGlzIExpbWl0ZWQxHjAc4463BgNVBAMTFVF1b1ZhZGlzIFJvb3QgQ0EgMyBHMzAeFw0xMjAxMTIyMDI2MzJaFw004464MjAxMTIyMDI2MzJaMEgxCzAJBgNVBAYTAkJNMRkwFwYDVQQKExBRdW9WYWRpcyBM4465aW1pdGVkMR4wHAYDVQQDExVRdW9WYWRpcyBSb290IENBIDMgRzMwggIiMA0GCSqG4466SIb3DQEBAQUAA4ICDwAwggIKAoICAQCzyw4QZ47qFJenMioKVjZ/aEzHs286IxSR4467/xl/pcqs7rN2nXrpixurazHb+gtTTK/FpRp5PIpM/6zfJd5O2YIyC0TeytuMrKNu4468FoM7pmRLMon7FhY4futD4tN0SsJiCnMK3UmzV9KwCoWdcTzeo8vAMvMBOSBDGzXR4469U7Ox7sWTaYI+FrUoRqHe6okJ7UO4BUaKhvVZR74bbwEhELn9qdIoyhA5CcoTNs+c4470ra1AdHkrAj80//ogaX3T7mH1urPnMNA3I4ZyYUUpSFlob3emLoG+B01vr87ERROR4471FHAGjx+f+IdpsQ7vw4kZ6+ocYfx6bIrc1gMLnia6Et3UVDmrJqMz6nWB2i3ND0/k4472A9HvFZcba5DFApCTZgIhsUfei5pKgLlVj7WiL8DWM2fafsSntARE60f75li59wzw4473eyuxwHApw0BiLTtIadwjPEjrewl5qW3aqDCYz4ByA4imW0aucnl8CAMhZa634Ryl4474sSqiMd5mBPfAdOhx3v89WcyWJhKLhZVXGqtrdQtEPREoPHtht+KPZ0/l7DxMYIBp4475VzgeAVuNVejH38DMdyM0SXV89pgR6y3e7UEuFAUCf+D+IOs15xGsIs5XPd7JMG0Q4476A4XN8f+MFrXBsj6IbGB/kE+V9/YtrQE5BwT6dYB9v0lQ7e/JxHwc64B+27bQ3RP+4477ydOc17KXqQIDAQABo0IwQDAPBgNVHRMBAf8EBTADAQH/MA4GA1UdDwEB/wQEAwIB4478BjAdBgNVHQ4EFgQUxhfQvKjqAkPyGwaZXSuQILnXnOQwDQYJKoZIhvcNAQELBQAD4479ggIBADRh2Va1EodVTd2jNTFGu6QHcrxfYWLopfsLN7E8trP6KZ1/AvWkyaiTt3px4480KGmPc+FSkNrVvjrlt3ZqVoAh313m6Tqe5T72omnHKgqwGEfcIHB9UqM+WXzBusnI4481FUBhynLWcKzSt/Ac5IYp8M7vaGPQtSCKFWGafoaYtMnCdvvMujAWzKNhxnQT5Wvv4482oxXqA/4Ti2Tk08HS6IT7SdEQTXlm66r99I0xHnAUrdzeZxNMgRVhvLfZkXdxGYFg4483u/BYpbWcC/ePIlUnwEsBbTuZDdQdm2NnL9DuDcpmvJRPpq3t/O5jrFc/ZSXPsoaP44840Aj/uHYUbt7lJ+yreLVTubY/6CD50qi+YUbKh4yE8/nxoGibIh6BJpsQBJFxwAYf44853KDTuVan45gtf4Od34wrnDKOMpTwATwiKp9Dwi7DmDkHOHv8XgBCH/MyJnmDhPbl44868MFREsALHgQjDFSlTC9JxUrRtm5gDWv8a4uFJGS3iQ6rJUdbPM9+Sb3H6QrG2vd+4487DhcI00iX0HGS8A85PjRqHH3Y8iKuu2n0M7SmSFXRDw4m6Oy2Cy2nhTXN/VnIn9HN4488PlopNLk9hM6xZdRZkZFWdSHBd575euFgndOtBBj0fOtek49TSiIp+EgrPk2GrFt/4489ywaZWWDYWGWVjUTR939+J399roD1B0y2PpxxVJkES/1Y+Zj04490-----END CERTIFICATE-----44914492# 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-----4500MIIDljCCAn6gAwIBAgIQC5McOtY5Z+pnI7/Dr5r0SzANBgkqhkiG9w0BAQsFADBl4501MQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB34502d3cuZGlnaWNlcnQuY29tMSQwIgYDVQQDExtEaWdpQ2VydCBBc3N1cmVkIElEIFJv4503b3QgRzIwHhcNMTMwODAxMTIwMDAwWhcNMzgwMTE1MTIwMDAwWjBlMQswCQYDVQQG4504EwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3d3cuZGlnaWNl4505cnQuY29tMSQwIgYDVQQDExtEaWdpQ2VydCBBc3N1cmVkIElEIFJvb3QgRzIwggEi4506MA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDZ5ygvUj82ckmIkzTz+GoeMVSA4507n61UQbVH35ao1K+ALbkKz3X9iaV9JPrjIgwrvJUXCzO/GU1BBpAAvQxNEP4Htecc4508biJVMWWXvdMX0h5i89vqbFCMP4QMls+3ywPgym2hFEwbid3tALBSfK+RbLE4E9Hp4509EgjAALAcKxHad3A2m67OeYfcgnDmCXRwVWmvo2ifv922ebPynXApVfSr/5Vh88lA4510bx3RvpO704gqu52/clpWcTs/1PPRCv4o76Pu2ZmvA9OPYLfykqGxvYmJHzDNw6Yu4511YjOuFgJ3RFrngQo8p0Quebg/BLxcoIfhG69Rjs3sLPr4/m3wOnyqi+RnlTGNAgMB4512AAGjQjBAMA8GA1UdEwEB/wQFMAMBAf8wDgYDVR0PAQH/BAQDAgGGMB0GA1UdDgQW4513BBTOw0q5mVXyuNtgv6l+vVa1lzan1jANBgkqhkiG9w0BAQsFAAOCAQEAyqVVjOPI4514QW5pJ6d1Ee88hjZv0p3GeDgdaZaikmkuOGybfQTUiaWxMTeKySHMq2zNixya1r9I45150jJmwYrA8y8678Dj1JGG0VDjA9tzd29KOVPt3ibHtX2vK0LRdWLjSisCx1BL4Gni4516lmwORGYQRI+tBev4eaymG+g3NJ1TyWGqolKvSnAWhsI6yLETcDbYz+70CjTVW0z94517B5yiutkBclzzTcHdDrEcDcRjvq30FPuJ7KJBDkzMyFdA0G4Dqs0MjomZmWzwPDCv4518ON9vvKO+KSAnq3T/EyJ43pdSVR6DtVQgA+6uwE9W3jfMw3+qBCe703e4YtsXfJwo4519IhNzbM8m9Yop5w==4520-----END CERTIFICATE-----45214522# 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-----4530MIICRjCCAc2gAwIBAgIQC6Fa+h3foLVJRK/NJKBs7DAKBggqhkjOPQQDAzBlMQsw4531CQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3d3cu4532ZGlnaWNlcnQuY29tMSQwIgYDVQQDExtEaWdpQ2VydCBBc3N1cmVkIElEIFJvb3Qg4533RzMwHhcNMTMwODAxMTIwMDAwWhcNMzgwMTE1MTIwMDAwWjBlMQswCQYDVQQGEwJV4534UzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3d3cuZGlnaWNlcnQu4535Y29tMSQwIgYDVQQDExtEaWdpQ2VydCBBc3N1cmVkIElEIFJvb3QgRzMwdjAQBgcq4536hkjOPQIBBgUrgQQAIgNiAAQZ57ysRGXtzbg/WPuNsVepRC0FFfLvC/8QdJ+1YlJf4537Zn4f5dwbRXkLzMZTCp2NXQLZqVneAlr2lSoOjThKiknGvMYDOAdfVdp+CW7if17Q4538RSAPWXYQ1qAk8C3eNvJsKTmjQjBAMA8GA1UdEwEB/wQFMAMBAf8wDgYDVR0PAQH/4539BAQDAgGGMB0GA1UdDgQWBBTL0L2p4ZgFUaFNN6KDec6NHSrkhDAKBggqhkjOPQQD4540AwNnADBkAjAlpIFFAmsSS3V0T8gj43DydXLefInwz5FyYZ5eEJJZVrmDxxDnOOlY4541JjZ91eQ0hjkCMHw2U/Aw5WJjOpnitqM7mzT6HtoQknFekROn3aRukswy1vUhZscv45426pZjamVFkpUBtA==4543-----END CERTIFICATE-----45444545# 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-----4553MIIDjjCCAnagAwIBAgIQAzrx5qcRqaC7KGSxHQn65TANBgkqhkiG9w0BAQsFADBh4554MQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB34555d3cuZGlnaWNlcnQuY29tMSAwHgYDVQQDExdEaWdpQ2VydCBHbG9iYWwgUm9vdCBH4556MjAeFw0xMzA4MDExMjAwMDBaFw0zODAxMTUxMjAwMDBaMGExCzAJBgNVBAYTAlVT4557MRUwEwYDVQQKEwxEaWdpQ2VydCBJbmMxGTAXBgNVBAsTEHd3dy5kaWdpY2VydC5j4558b20xIDAeBgNVBAMTF0RpZ2lDZXJ0IEdsb2JhbCBSb290IEcyMIIBIjANBgkqhkiG45599w0BAQEFAAOCAQ8AMIIBCgKCAQEAuzfNNNx7a8myaJCtSnX/RrohCgiN9RlUyfuI45602/Ou8jqJkTx65qsGGmvPrC3oXgkkRLpimn7Wo6h+4FR1IAWsULecYxpsMNzaHxmx45611x7e/dfgy5SDN67sH0NO3Xss0r0upS/kqbitOtSZpLYl6ZtrAGCSYP9PIUkY92eQ4562q2EGnI/yuum06ZIya7XzV+hdG82MHauVBJVJ8zUtluNJbd134/tJS7SsVQepj5Wz4563tCO7TG1F8PapspUwtP1MVYwnSlcUfIKdzXOS0xZKBgyMUNGPHgm+F6HmIcr9g+UQ4564vIOlCsRnKPZzFBQ9RnbDhxSJITRNrw9FDKZJobq7nMWxM4MphQIDAQABo0IwQDAP4565BgNVHRMBAf8EBTADAQH/MA4GA1UdDwEB/wQEAwIBhjAdBgNVHQ4EFgQUTiJUIBiV45665uNu5g/6+rkS7QYXjzkwDQYJKoZIhvcNAQELBQADggEBAGBnKJRvDkhj6zHd6mcY45671Yl9PMWLSn/pvtsrF9+wX3N3KjITOYFnQoQj8kVnNeyIv/iPsGEMNKSuIEyExtv44568NeF22d+mQrvHRAiGfzZ0JFrabA0UWTW98kndth/Jsw1HKj2ZL7tcu7XUIOGZX1NG4569Fdtom/DzMNU+MeKNhJ7jitralj41E6Vf8PlwUHBHQRFXGU7Aj64GxJUTFy8bJZ9145708rGOmaFvE7FBcf6IKshPECBV1/MUReXgRPTqh5Uykw7+U0b6LJ3/iyK5S9kJRaTe4571pLiaWN0bfVKfjllDiIGknibVb63dDcY3fe0Dkhvld1927jyNxF1WW6LZZm6zNTfl4572MrY=4573-----END CERTIFICATE-----45744575# 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-----4583MIICPzCCAcWgAwIBAgIQBVVWvPJepDU1w6QP1atFcjAKBggqhkjOPQQDAzBhMQsw4584CQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3d3cu4585ZGlnaWNlcnQuY29tMSAwHgYDVQQDExdEaWdpQ2VydCBHbG9iYWwgUm9vdCBHMzAe4586Fw0xMzA4MDExMjAwMDBaFw0zODAxMTUxMjAwMDBaMGExCzAJBgNVBAYTAlVTMRUw4587EwYDVQQKEwxEaWdpQ2VydCBJbmMxGTAXBgNVBAsTEHd3dy5kaWdpY2VydC5jb20x4588IDAeBgNVBAMTF0RpZ2lDZXJ0IEdsb2JhbCBSb290IEczMHYwEAYHKoZIzj0CAQYF4589K4EEACIDYgAE3afZu4q4C/sLfyHS8L6+c/MzXRq8NOrexpu80JX28MzQC7phW1FG4590fp4tn+6OYwwX7Adw9c+ELkCDnOg/QW07rdOkFFk2eJ0DQ+4QE2xy3q6Ip6FrtUPO4591Z9wj/wMco+I+o0IwQDAPBgNVHRMBAf8EBTADAQH/MA4GA1UdDwEB/wQEAwIBhjAd4592BgNVHQ4EFgQUs9tIpPmhxdiuNkHMEWNpYim8S8YwCgYIKoZIzj0EAwMDaAAwZQIx4593AK288mw/EkrRLTnDCgmXc/SINoyIJ7vmiI1Qhadj+Z4y3maTD/HMsQmP3Wyr+mt/4594oAIwOWZbwmSNuJ5Q3KjVSaLtx9zRSX8XAbjIho9OjIgrqJqpisXRAL34VOKa5Vt84595sycX4596-----END CERTIFICATE-----45974598# 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-----4606MIIFkDCCA3igAwIBAgIQBZsbV56OITLiOQe9p3d1XDANBgkqhkiG9w0BAQwFADBi4607MQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB34608d3cuZGlnaWNlcnQuY29tMSEwHwYDVQQDExhEaWdpQ2VydCBUcnVzdGVkIFJvb3Qg4609RzQwHhcNMTMwODAxMTIwMDAwWhcNMzgwMTE1MTIwMDAwWjBiMQswCQYDVQQGEwJV4610UzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3d3cuZGlnaWNlcnQu4611Y29tMSEwHwYDVQQDExhEaWdpQ2VydCBUcnVzdGVkIFJvb3QgRzQwggIiMA0GCSqG4612SIb3DQEBAQUAA4ICDwAwggIKAoICAQC/5pBzaN675F1KPDAiMGkz7MKnJS7JIT3y4613ithZwuEppz1Yq3aaza57G4QNxDAf8xukOBbrVsaXbR2rsnnyyhHS5F/WBTxSD1If4614xp4VpX6+n6lXFllVcq9ok3DCsrp1mWpzMpTREEQQLt+C8weE5nQ7bXHiLQwb7iDV4615ySAdYyktzuxeTsiT+CFhmzTrBcZe7FsavOvJz82sNEBfsXpm7nfISKhmV1efVFiO4616DCu3T6cw2Vbuyntd463JT17lNecxy9qTXtyOj4DatpGYQJB5w3jHtrHEtWoYOAMQ4617jdjUN6QuBX2I9YI+EJFwq1WCQTLX2wRzKm6RAXwhTNS8rhsDdV14Ztk6MUSaM0C/4618CNdaSaTC5qmgZ92kJ7yhTzm1EVgX9yRcRo9k98FpiHaYdj1ZXUJ2h4mXaXpI8OCi4619EhtmmnTK3kse5w5jrubU75KSOp493ADkRSWJtppEGSt+wJS00mFt6zPZxd9LBADM4620fRyVw4/3IbKyEbe7f/LVjHAsQWCqsWMYRJUadmJ+9oCw++hkpjPRiQfhvbfmQ6QY4621uKZ3AeEPlAwhHbJUKSWJbOUOUlFHdL4mrLZBdd56rF+NP8m800ERElvlEFDrMcXK4622chYiCd98THU/Y+whX8QgUWtvsauGi0/C1kVfnSD8oR7FwI+isX4KJpn15GkvmB0t46239dmpsh3lGwIDAQABo0IwQDAPBgNVHRMBAf8EBTADAQH/MA4GA1UdDwEB/wQEAwIB4624hjAdBgNVHQ4EFgQU7NfjgtJxXWRM3y5nP+e6mK4cD08wDQYJKoZIhvcNAQEMBQAD4625ggIBALth2X2pbL4XxJEbw6GiAI3jZGgPVs93rnD5/ZpKmbnJeFwMDF/k5hQpVgs24626SV1EY+CtnJYYZhsjDT156W1r1lT40jzBQ0CuHVD1UvyQO7uYmWlrx8GnqGikJ9yd4627+SeuMIW59mdNOj6PWTkiU0TryF0Dyu1Qen1iIQqAyHNm0aAFYF/opbSnr6j3bTWc4628fFqK1qI4mfN4i/RN0iAL3gTujJtHgXINwBQy7zBZLq7gcfJW5GqXb5JQbZaNaHqa4629sjYUegbyJLkJEVDXCLG4iXqEI2FCKeWjzaIgQdfRnGTZ6iahixTXTBmyUEFxPT9N4630cCOGDErcgdLMMpSEDQgJlxxPwO5rIHQw0uA5NBCFIRUBCOhVMt5xSdkoF1BN5r5N46310XWs0Mr7QbhDparTwwVETyw2m+L64kW4I1NsBm9nVX9GtUw/bihaeSbSpKhil9Ie46324u1Ki7wb/UdKDd9nZn6yW0HQO+T0O/QEY+nvwlQAUaCKKsnOeMzV6ocEGLPOr0mI4633r/OSmbaz5mEP0oUA51Aa5BuVnRmhuZyxm7EAHu/QD09CbMkKvO5D+jpxpchNJqU14634/YldvIViHTLSoCtU7ZpXwdv6EM8Zt4tKG48BtieVU+i2iW1bvGjUI+iLUaJW+fCm4635gKDWHrO8Dw9TdSmq6hN35N6MgSGtBxBHEa2HPQfRdbzP82Z+4636-----END CERTIFICATE-----46374638# 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-----4646MIIFdjCCA16gAwIBAgIQXmjWEXGUY1BWAGjzPsnFkTANBgkqhkiG9w0BAQUFADBV4647MQswCQYDVQQGEwJDTjEaMBgGA1UEChMRV29TaWduIENBIExpbWl0ZWQxKjAoBgNV4648BAMTIUNlcnRpZmljYXRpb24gQXV0aG9yaXR5IG9mIFdvU2lnbjAeFw0wOTA4MDgw4649MTAwMDFaFw0zOTA4MDgwMTAwMDFaMFUxCzAJBgNVBAYTAkNOMRowGAYDVQQKExFX4650b1NpZ24gQ0EgTGltaXRlZDEqMCgGA1UEAxMhQ2VydGlmaWNhdGlvbiBBdXRob3Jp4651dHkgb2YgV29TaWduMIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAvcqN4652rLiRFVaXe2tcesLea9mhsMMQI/qnobLMMfo+2aYpbxY94Gv4uEBf2zmoAHqLoE1U4653fcIiePyOCbiohdfMlZdLdNiefvAA5A6JrkkoRBoQmTIPJYhTpA2zDxIIFgsDcScc4654f+Hb0v1naMQFXQoOXXDX2JegvFNBmpGN9J42Znp+VsGQX+axaCA2pIwkLCxHC1l24655ZjC1vt7tj/id07sBMOby8w7gLJKA84X5KIq0VC6a7fd2/BVoFutKbOsuEo/Uz/4M4656x1wdC34FMr5esAkqQtXJTpCzWQ27en7N1QhatH/YHGkR+ScPewavVIMYe+HdVHpR4657aG53/Ma/UkpmRqGyZxq7o093oL5d//xWC0Nyd5DKnvnyOfUNqfTq1+ezEC8wQjch4658zDBwyYaYD8xYTYO7feUapTeNtqwylwA6Y3EkHp43xP901DfA4v6IRmAR3Qg/UDar4659uHqklWJqbrDKaiFaafPz+x1wOZXzp26mgYmhiMU7ccqjUu6Du/2gd/Tkb+dC221K4660mYo0SLwX3OSACCK28jHAPwQ+658geda4BmRkAjHXqc1S+4RFaQkAKtxVi8QGRkvA4661Sh0JWzko/amrzgD5LkhLJuYwTKVYyrREgk/nkR4zw7CT/xH8gdLKH3Ep3XZPkiWv4662HYG3Dy+MwwbMLyejSuQOmbp8HkUff6oZRZb9/D0CAwEAAaNCMEAwDgYDVR0PAQH/4663BAQDAgEGMA8GA1UdEwEB/wQFMAMBAf8wHQYDVR0OBBYEFOFmzw7R8bNLtwYgFP6H4664EtX2/vs+MA0GCSqGSIb3DQEBBQUAA4ICAQCoy3JAsnbBfnv8rWTjMnvMPLZdRtP14665LOJwXcgu2AZ9mNELIaCJWSQBnfmvCX0KI4I01fx8cpm5o9dU9OpScA7F9dY74ToJ4666MuYhOZO9sxXqT2r09Ys/L3yNWC7F4TmgPsc9SnOeQHrAK2GpZ8nzJLmzbVUsWh2e4667JXLOC62qx1ViC777Y7NhRCOjy+EaDveaBk3e1CNOIZZbOVtXHS9dCF4Jef98l7VN4668g64N1uajeeAz0JmWAjCnPv/So0M/BVoG6kQC2nz4SNAzqfkHx5Xh9T71XXG68pWp4669dIhhWeO/yloTunK0jF02h+mmxTwTv97QRCbut+wucPrXnbes5cVAWubXbHssw1ab4670R80LzvobtCHXt2a49CUwi1wNuepnsvRtrtWhnk/Yn+knArAdBtaP4/tIEp9/EaEQ4671PkxROpaw0RPxx9gmrjrKkcRpnd8BKWRRb2jaFOwIQZeQjdCygPLPwj2/kWjFgGce4672xGATVdVhmVd8upUPYUk6ynW8yQqTP2cOEvIo4jEbwFcW3wh8GcF+Dx+FHgo2fFt+4673J7x6v+Db9NpSvd4MVHAxkUOVyLzwPt0JfjBkUO1/AaQzZ01oT74V77D2AhGiGxMl4674OtzCWfHjXEa7ZywCRuoeSKbmW9m1vFGikpbbqsY3Iqb+zCB0oy2pLmvLwIIRIbWT4675ee5Ehr7XHuQe+w==4676-----END CERTIFICATE-----46774678# 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-----4686MIIFWDCCA0CgAwIBAgIQUHBrzdgT/BtOOzNy0hFIjTANBgkqhkiG9w0BAQsFADBG4687MQswCQYDVQQGEwJDTjEaMBgGA1UEChMRV29TaWduIENBIExpbWl0ZWQxGzAZBgNV4688BAMMEkNBIOayg+mAmuagueivgeS5pjAeFw0wOTA4MDgwMTAwMDFaFw0zOTA4MDgw4689MTAwMDFaMEYxCzAJBgNVBAYTAkNOMRowGAYDVQQKExFXb1NpZ24gQ0EgTGltaXRl4690ZDEbMBkGA1UEAwwSQ0Eg5rKD6YCa5qC56K+B5LmmMIICIjANBgkqhkiG9w0BAQEF4691AAOCAg8AMIICCgKCAgEA0EkhHiX8h8EqwqzbdoYGTufQdDTc7WU1/FDWiD+k8H/r4692D195L4mx/bxjWDeTmzj4t1up+thxx7S8gJeNbEvxUNUqKaqoGXqW5pWOdO2XCld146939AXbbQs5uQF/qvbW2mzmBeCkTVL829B0txGMe41P/4eDrv8FAxNXUDf+jJZSEExf4694v5RxadmWPgxDT74wwJ85dE8GRV2j1lY5aAfMh09Qd5Nx2UQIsYo06Yms25tO4dnk4695UkWMLhQfkWsZHWgpLFbE4h4TV2TwYeO5Ed+w4VegG63XX9Gv2ystP9Bojg/qnw+L4696NVgbExz03jWhCl3W6t8Sb8D7aQdGctyB9gQjF+BNdeFyb7Ao65vh4YOhn0pdr8yb4697+gIgthhid5E7o9Vlrdx8kHccREGkSovrlXLp9glk3Kgtn3R46MGiCWOc76DbT52V4698qyBPt7D3h1ymoOQ3OMdc4zUPLK2jgKLsLl3Az+2LBcLmc272idX10kaO6m1jGx6K4699yX2m+Jzr5dVjhU1zZmkR/sgO9MHHZklTfuQZa/HpelmjbX7FF+Ynxu8b22/8DU0G4700AbQOXDBGVWCvOGU6yke6rCzMRh+yRpY/8+0mBe53oWprfi1tWFxK1I5nuPHa1UaK4701J/kR8slC/k7e3x9cxKSGhxYzoacXGKUN5AXlK8IrC6KVkLn9YDxOiT7nnO4fuwEC4702AwEAAaNCMEAwDgYDVR0PAQH/BAQDAgEGMA8GA1UdEwEB/wQFMAMBAf8wHQYDVR0O4703BBYEFOBNv9ybQV0T6GTwp+kVpOGBwboxMA0GCSqGSIb3DQEBCwUAA4ICAQBqinA44704WbbaixjIvirTthnVZil6Xc1bL3McJk6jfW+rtylNpumlEYOnOXOvEESS5iVdT2H64705yAa+Tkvv/vMx/sZ8cApBWNromUuWyXi8mHwCKe0JgOYKOoICKuLJL8hWGSbueBwj4706/feTZU7n85iYr83d2Z5AiDEoOqsuC7CsDCT6eiaY8xJhEPRdF/d+4niXVOKM6Cm64707jBAyvd0zaziGfjk9DgNyp115j0WKWa5bIW4xRtVZjc8VX90xJc/bYNaBRHIpAlf24708ltTW/+op2znFuCyKGo3Oy+dCMYYFaA6eFN0AkLppRQjbbpCBhqcqBT/mhDn4t/lX4709X0ykeVoQDF7Va/81XwVRHmyjdanPUIPTfPRm94KNPQx96N97qA4bLJyuQHCH2u2n4710FoJavjVsIE4iYdm8UXrNemHcSxH5/mc0zy4EZmFcV5cjjPOGG0jfKq+nwf/Yjj4D4711u9gqsPoUJbJRa4ZDhS4HIxaAjUz7tGM7zMN07RujHv41D198HRaG9Q7DlfEvr10l4712O1Hm13ZBONFLAzkopR6RctR9q5czxNM+4Gm2KHmgCY0c0f9BckgG/Jou5yD5m6Le4713ie2uPAmvylezkolwQOQvT8Jwg0DXJCxr5wkf09XHwQj02w47HAcLQxGEIYbpgNR147142KvxAmLBsX5VYc8T1yaw15zLKYs4SgsOkI26oQ==4715-----END CERTIFICATE-----47164717# 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-----4725MIIF2DCCA8CgAwIBAgIQTKr5yttjb+Af907YWwOGnTANBgkqhkiG9w0BAQwFADCB4726hTELMAkGA1UEBhMCR0IxGzAZBgNVBAgTEkdyZWF0ZXIgTWFuY2hlc3RlcjEQMA4G4727A1UEBxMHU2FsZm9yZDEaMBgGA1UEChMRQ09NT0RPIENBIExpbWl0ZWQxKzApBgNV4728BAMTIkNPTU9ETyBSU0EgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkwHhcNMTAwMTE54729MDAwMDAwWhcNMzgwMTE4MjM1OTU5WjCBhTELMAkGA1UEBhMCR0IxGzAZBgNVBAgT4730EkdyZWF0ZXIgTWFuY2hlc3RlcjEQMA4GA1UEBxMHU2FsZm9yZDEaMBgGA1UEChMR4731Q09NT0RPIENBIExpbWl0ZWQxKzApBgNVBAMTIkNPTU9ETyBSU0EgQ2VydGlmaWNh4732dGlvbiBBdXRob3JpdHkwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQCR47336FSS0gpWsawNJN3Fz0RndJkrN6N9I3AAcbxT38T6KhKPS38QVr2fcHK3YX/JSw8X4734pz3jsARh7v8Rl8f0hj4K+j5c+ZPmNHrZFGvnnLOFoIJ6dq9xkNfs/Q36nGz637CC47359BR++b7Epi9Pf5l/tfxnQ3K9DADWietrLNPtj5gcFKt+5eNu/Nio5JIk2kNrYrhV4736/erBvGy2i/MOjZrkm2xpmfh4SDBF1a3hDTxFYPwyllEnvGfDyi62a+pGx8cgoLEf4737Zd5ICLqkTqnyg0Y3hOvozIFIQ2dOciqbXL1MGyiKXCJ7tKuY2e7gUYPDCUZObT6Z4738+pUX2nwzV0E8jVHtC7ZcryxjGt9XyD+86V3Em69FmeKjWiS0uqlWPc9vqv9JWL7w4739qP/0uK3pN/u6uPQLOvnoQ0IeidiEyxPx2bvhiWC4jChWrBQdnArncevPDt09qZah4740SL0896+1DSJMwBGB7FY79tOi4lu3sgQiUpWAk2nojkxl8ZEDLXB0AuqLZxUpaVIC4741u9ffUGpVRr+goyhhf3DQw6KqLCGqR84onAZFdr+CGCe01a60y1Dma/RMhnEw6abf4742Fobg2P9A3fvQQoh/ozM6LlweQRGBY84YcWsr7KaKtzFcOmpH4MN5WdYgGq/yapiq4743crxXStJLnbsQ/LBMQeXtHT1eKJ2czL+zUdqnR+WEUwIDAQABo0IwQDAdBgNVHQ4E4744FgQUu69+Aj36pvE8hI6t7jiY7NkyMtQwDgYDVR0PAQH/BAQDAgEGMA8GA1UdEwEB4745/wQFMAMBAf8wDQYJKoZIhvcNAQEMBQADggIBAArx1UaEt65Ru2yyTUEUAJNMnMvl4746wFTPoCWOAvn9sKIN9SCYPBMtrFaisNZ+EZLpLrqeLppysb0ZRGxhNaKatBYSaVqM47474dc+pBroLwP0rmEdEBsqpIt6xf4FpuHA1sj+nq6PK7o9mfjYcwlYRm6mnPTXJ9OV47482jeDchzTc+CiR5kDOF3VSXkAKRzH7JsgHAckaVd4sjn8OoSgtZx8jb8uk2Intzna4749FxiuvTwJaP+EmzzV1gsD41eeFPfR60/IvYcjt7ZJQ3mFXLrrkguhxuhoqEwWsRqZ4750CuhTLJK7oQkYdQxlqHvLI7cawiiFwxv/0Cti76R7CZGYZ4wUAc1oBmpjIXUDgIiK4751boHGhfKppC3n9KUkEEeDys30jXlYsQab5xoq2Z0B15R97QNKyvDb6KkBPvVWmcke4752jkk9u+UJueBPSZI9FoJAzMxZxuY67RIuaTxslbH9qh17f4a+Hg4yRvv7E491f0yL4753S0Zj/gA0QHDBw7mh3aZw4gSzQbzpgJHqZJx64SIDqZxubw5lT2yHh17zbqD5daWb4754QOhTsiedSrnAdyGN/4fy3ryM7xfft0kL0fJuMAsaDk527RH89elWsn2/x20Kk4yl47550MC2Hb46TpSi125sC8KKfPog88Tk5c0NqMuRkrF8hey1FGlmDoLnzc7ILaZRfyHB4756NVOFBkpdn627G1904757-----END CERTIFICATE-----47584759# 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-----4767MIIF3jCCA8agAwIBAgIQAf1tMPyjylGoG7xkDjUDLTANBgkqhkiG9w0BAQwFADCB4768iDELMAkGA1UEBhMCVVMxEzARBgNVBAgTCk5ldyBKZXJzZXkxFDASBgNVBAcTC0pl4769cnNleSBDaXR5MR4wHAYDVQQKExVUaGUgVVNFUlRSVVNUIE5ldHdvcmsxLjAsBgNV4770BAMTJVVTRVJUcnVzdCBSU0EgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkwHhcNMTAw4771MjAxMDAwMDAwWhcNMzgwMTE4MjM1OTU5WjCBiDELMAkGA1UEBhMCVVMxEzARBgNV4772BAgTCk5ldyBKZXJzZXkxFDASBgNVBAcTC0plcnNleSBDaXR5MR4wHAYDVQQKExVU4773aGUgVVNFUlRSVVNUIE5ldHdvcmsxLjAsBgNVBAMTJVVTRVJUcnVzdCBSU0EgQ2Vy4774dGlmaWNhdGlvbiBBdXRob3JpdHkwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIK4775AoICAQCAEmUXNg7D2wiz0KxXDXbtzSfTTK1Qg2HiqiBNCS1kCdzOiZ/MPans9s/B47763PHTsdZ7NygRK0faOca8Ohm0X6a9fZ2jY0K2dvKpOyuR+OJv0OwWIJAJPuLodMkY4777tJHUYmTbf6MG8YgYapAiPLz+E/CHFHv25B+O1ORRxhFnRghRy4YUVD+8M/5+bJz/4778Fp0YvVGONaanZshyZ9shZrHUm3gDwFA66Mzw3LyeTP6vBZY1H1dat//O+T23LLb24779VN3I5xI6Ta5MirdcmrS3ID3KfyI0rn47aGYBROcBTkZTmzNg95S+UzeQc0PzMsNT478079uq/nROacdrjGCT3sTHDN/hMq7MkztReJVni+49Vv4M0GkPGw/zJSZrM233bkf64781c0Plfg6lZrEpfDKEY1WJxA3Bk1QwGROs0303p+tdOmw1XNtB1xLaqUkL39iAigmT4782Yo61Zs8liM2EuLE/pDkP2QKe6xJMlXzzawWpXhaDzLhn4ugTncxbgtNMs+1b/97l4783c6wjOy0AvzVVdAlJ2ElYGn+SNuZRkg7zJn0cTRe8yexDJtC/QV9AqURE9JnnV4ee4784UB9XVKg+/XRjL7FQZQnmWEIuQxpMtPAlR1n6BB6T1CZGSlCBst6+eLf8ZxXhyVeE4785Hg9j1uliutZfVS7qXMYoCAQlObgOK6nyTJccBz8NUvXt7y+CDwIDAQABo0IwQDAd4786BgNVHQ4EFgQUU3m/WqorSs9UgOHYm8Cd8rIDZsswDgYDVR0PAQH/BAQDAgEGMA8G4787A1UdEwEB/wQFMAMBAf8wDQYJKoZIhvcNAQEMBQADggIBAFzUfA3P9wF9QZllDHPF4788Up/L+M+ZBn8b2kMVn54CVVeWFPFSPCeHlCjtHzoBN6J2/FNQwISbxmtOuowhT6KO4789VWKR82kV2LyI48SqC/3vqOlLVSoGIG1VeCkZ7l8wXEskEVX/JJpuXior7gtNn3/34790ATiUFJVDBwn7YKnuHKsSjKCaXqeYalltiz8I+8jRRa8YFWSQEg9zKC7F4iRO/Fjs47918PRF/iKz6y+O0tlFYQXBl2+odnKPi4w2r78NBc5xjeambx9spnFixdjQg3IM8WcR4792iQycE0xyNN+81XHfqnHd4blsjDwSXWXavVcStkNr/+XeTWYRUc+ZruwXtuhxkYze4793Sf7dNXGiFSeUHM9h4ya7b6NnJSFd5t0dCy5oGzuCr+yDZ4XUmFF0sbmZgIn/f3gZ4794XHlKYC6SQK5MNyosycdiyA5d9zZbyuAlJQG03RoHnHcAP9Dc1ew91Pq7P8yF1m9/4795qS3fuQL39ZeatTXaw2ewh0qpKJ4jjv9cJ2vhsE/zB+4ALtRZh8tSQZXq9EfX7mRB4796VXyNWQKV3WKdwrnuWih0hKWbt5DHDAff9Yk2dDLWKMGwsAvgnEzDHNb842m1R0aB4797L6KCq9NjRHDEjf8tM7qtj3u1cIiuPhnPQCjY/MiQu12ZIvVS5ljFH4gxQ+6IHdfG4798jjxDah2nGN59PRbxYvnKkKj94799-----END CERTIFICATE-----48004801# 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-----4809MIICjzCCAhWgAwIBAgIQXIuZxVqUxdJxVt7NiYDMJjAKBggqhkjOPQQDAzCBiDEL4810MAkGA1UEBhMCVVMxEzARBgNVBAgTCk5ldyBKZXJzZXkxFDASBgNVBAcTC0plcnNl4811eSBDaXR5MR4wHAYDVQQKExVUaGUgVVNFUlRSVVNUIE5ldHdvcmsxLjAsBgNVBAMT4812JVVTRVJUcnVzdCBFQ0MgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkwHhcNMTAwMjAx4813MDAwMDAwWhcNMzgwMTE4MjM1OTU5WjCBiDELMAkGA1UEBhMCVVMxEzARBgNVBAgT4814Ck5ldyBKZXJzZXkxFDASBgNVBAcTC0plcnNleSBDaXR5MR4wHAYDVQQKExVUaGUg4815VVNFUlRSVVNUIE5ldHdvcmsxLjAsBgNVBAMTJVVTRVJUcnVzdCBFQ0MgQ2VydGlm4816aWNhdGlvbiBBdXRob3JpdHkwdjAQBgcqhkjOPQIBBgUrgQQAIgNiAAQarFRaqflo4817I+d61SRvU8Za2EurxtW20eZzca7dnNYMYf3boIkDuAUU7FfO7l0/4iGzzvfUinng4818o4N+LZfQYcTxmdwlkWOrfzCjtHDix6EznPO/LlxTsV+zfTJ/ijTjeXmjQjBAMB0G4819A1UdDgQWBBQ64QmG1M8ZwpZ2dEl23OA1xmNjmjAOBgNVHQ8BAf8EBAMCAQYwDwYD4820VR0TAQH/BAUwAwEB/zAKBggqhkjOPQQDAwNoADBlAjA2Z6EWCNzklwBBHU6+4WMB4821zzuqQhFkoJ2UOQIReVx7Hfpkue4WQrO/isIJxOzksU0CMQDpKmFHjFJKS04YcPbW4822RNZu9YO6bVi9JNlWSOrvxKJGgYhqOkbRqZtNyWHa0V1Xahg=4823-----END CERTIFICATE-----48244825# 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-----4833MIIB4TCCAYegAwIBAgIRKjikHJYKBN5CsiilC+g0mAIwCgYIKoZIzj0EAwIwUDEk4834MCIGA1UECxMbR2xvYmFsU2lnbiBFQ0MgUm9vdCBDQSAtIFI0MRMwEQYDVQQKEwpH4835bG9iYWxTaWduMRMwEQYDVQQDEwpHbG9iYWxTaWduMB4XDTEyMTExMzAwMDAwMFoX4836DTM4MDExOTAzMTQwN1owUDEkMCIGA1UECxMbR2xvYmFsU2lnbiBFQ0MgUm9vdCBD4837QSAtIFI0MRMwEQYDVQQKEwpHbG9iYWxTaWduMRMwEQYDVQQDEwpHbG9iYWxTaWdu4838MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEuMZ5049sJQ6fLjkZHAOkrprlOQcJ4839FspjsbmG+IpXwVfOQvpzofdlQv8ewQCybnMO/8ch5RikqtlxP6jUuc6MHaNCMEAw4840DgYDVR0PAQH/BAQDAgEGMA8GA1UdEwEB/wQFMAMBAf8wHQYDVR0OBBYEFFSwe61F4841uOJAf/sKbvu+M8k8o4TVMAoGCCqGSM49BAMCA0gAMEUCIQDckqGgE6bPA7DmxCGX4842kPoUVy0D7O48027KqGx2vKLeuwIgJ6iFJzWbVsaj8kfSt24bAgAXqmemFZHe+pTs4843ewv4n4Q=4844-----END CERTIFICATE-----48454846# 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-----4854MIICHjCCAaSgAwIBAgIRYFlJ4CYuu1X5CneKcflK2GwwCgYIKoZIzj0EAwMwUDEk4855MCIGA1UECxMbR2xvYmFsU2lnbiBFQ0MgUm9vdCBDQSAtIFI1MRMwEQYDVQQKEwpH4856bG9iYWxTaWduMRMwEQYDVQQDEwpHbG9iYWxTaWduMB4XDTEyMTExMzAwMDAwMFoX4857DTM4MDExOTAzMTQwN1owUDEkMCIGA1UECxMbR2xvYmFsU2lnbiBFQ0MgUm9vdCBD4858QSAtIFI1MRMwEQYDVQQKEwpHbG9iYWxTaWduMRMwEQYDVQQDEwpHbG9iYWxTaWdu4859MHYwEAYHKoZIzj0CAQYFK4EEACIDYgAER0UOlvt9Xb/pOdEh+J8LttV7HpI6SFkc48608GIxLcB6KP4ap1yztsyX50XUWPrRd21DosCHZTQKH3rd6zwzocWdTaRvQZU4f8ke4861hOvRnkmSh5SHDDqFSmafnVmTTZdhBoZKo0IwQDAOBgNVHQ8BAf8EBAMCAQYwDwYD4862VR0TAQH/BAUwAwEB/zAdBgNVHQ4EFgQUPeYpSJvqB8ohREom3m7e0oPQn1kwCgYI4863KoZIzj0EAwMDaAAwZQIxAOVpEslu28YxuglB4Zf4+/2a4n0Sye18ZNPLBSWLVtmg4864515dTguDnFt2KaAJJiFqYgIwcdK1j1zqO+F4CYWodZI7yFz9SO8NdCKoCOJuxUnO4865xwy8p2Fp8fc74SrL+SvzZpA34866-----END CERTIFICATE-----48674868# 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-----4876MIIFdDCCA1ygAwIBAgIEAJiiOTANBgkqhkiG9w0BAQsFADBaMQswCQYDVQQGEwJO4877TDEeMBwGA1UECgwVU3RhYXQgZGVyIE5lZGVybGFuZGVuMSswKQYDVQQDDCJTdGFh4878dCBkZXIgTmVkZXJsYW5kZW4gUm9vdCBDQSAtIEczMB4XDTEzMTExNDExMjg0MloX4879DTI4MTExMzIzMDAwMFowWjELMAkGA1UEBhMCTkwxHjAcBgNVBAoMFVN0YWF0IGRl4880ciBOZWRlcmxhbmRlbjErMCkGA1UEAwwiU3RhYXQgZGVyIE5lZGVybGFuZGVuIFJv4881b3QgQ0EgLSBHMzCCAiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIBAL4yolQP4882cPssXFnrbMSkUeiFKrPMSjTysF/zDsccPVMeiAho2G89rcKezIJnByeHaHE6n3WW4883IkYFsO2tx1ueKt6c/DrGlaf1F2cY5y9JCAxcz+bMNO14+1Cx3Gsy8KL+tjzk7FqX4884xz8ecAgwoNzFs21v0IJyEavSgWhZghe3eJJg+szeP4TrjTgzkApyI/o1zCZxMdFy4885KJLZWyNtZrVtB0LrpjPOktvA9mxjeM3KTj215VKb8b475lRgsGYeCasH/lSJEULR48869yS6YHgamPfJEf0WwTUaVHXvQ9Plrk7O53vDxk5hUUurmkVLoR9BvUhTFXFkC4az48875S6+zqQbwSmEorXLCCN2QyIkHxcE1G6cxvx/K2Ya7Irl1s9N9WMJtxU51nus6+N848886U78dULI7ViVDAZCopz35HCz33JvWjdAidiFpNfxC95DGdRKWCyMijmev4SH8RY74889Ngzp07TKbBlBUgmhHbBqv4LvcFEhMtwFdozL92TkA1CvjJFnq8Xy7ljY3r735zHP4890bMk7ccHViLVlvMDoFxcHErVc0qsgk7TmgoNwNsXNo42ti+yjwUOH5kPiNL6VizXt4891BznaqB16nzaeErAMZRKQFWDZJkBE41ZgpRDUajz9QdwOWke275dhdU/Z/seyHdTt4892XUmzqWrLZoQT1Vyg3N9udwbRcXXIV2+vD3dbAgMBAAGjQjBAMA8GA1UdEwEB/wQF4893MAMBAf8wDgYDVR0PAQH/BAQDAgEGMB0GA1UdDgQWBBRUrfrHkleuyjWcLhL75Lpd4894INyUVzANBgkqhkiG9w0BAQsFAAOCAgEAMJmdBTLIXg47mAE6iqTnB/d6+Oea31BD4895U5cqPco8R5gu4RV78ZLzYdqQJRZlwJ9UXQ4DO1t3ApyEtg2YXzTdO2PCwyiBwpwp4896LiniyMMB8jPqKqrMCQj3ZWfGzd/TtiunvczRDnBfuCPRy5FOCvTIeuXZYzbB1N/84897Ipf3YF3qKS9Ysr1YvY2WTxB1v0h7PVGHoTx0IsL8B3+A3MSs/mrBcDCw6Y5p4ixp4898gZQJut3+TcCDjJRYwEYgr5wfAvg1VUkvRtTA8KCWAg8zxXHzniN9lLf9OtMJgwYh4899/WA9rjLA0u6NpvDntIJ8CsxwyXmA+P5M9zWEGYox+wrZ13+b8KKaa8MFSu1BYBQw49000aoRQm7TIwIEC8Zl3d1Sd9qBa7Ko+gE4uZbqKmxnl4mUnrzhVNXkanjvSr0rmj1A4901fsbAddJu+2gw7OyLnflJNZoaLNmzlTnVHpL3prllL+U9bTpITAjc5CgSKL59NVzq49024BZ+Extq1z7XnvwtdbLBFNUjA9tbbws+eC8N3jONFrdI54OagQ97wUNNVQQXOEpR49031VmiiXTTn74eS9fGbbeIJG9gkaSChVtWQbzQRKtqE77RLFi3EjNYsjdj3BP1lB0/4904QFH1T/U67cjF68IeHRaVesd+QnGTbksVtzDfqu1XhUisHWrdOWnk4Xl4vs4Fv6EM490594B7IWcnMFk=4906-----END CERTIFICATE-----49074908# 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-----4916MIIFcDCCA1igAwIBAgIEAJiWjTANBgkqhkiG9w0BAQsFADBYMQswCQYDVQQGEwJO4917TDEeMBwGA1UECgwVU3RhYXQgZGVyIE5lZGVybGFuZGVuMSkwJwYDVQQDDCBTdGFh4918dCBkZXIgTmVkZXJsYW5kZW4gRVYgUm9vdCBDQTAeFw0xMDEyMDgxMTE5MjlaFw0y4919MjEyMDgxMTEwMjhaMFgxCzAJBgNVBAYTAk5MMR4wHAYDVQQKDBVTdGFhdCBkZXIg4920TmVkZXJsYW5kZW4xKTAnBgNVBAMMIFN0YWF0IGRlciBOZWRlcmxhbmRlbiBFViBS4921b290IENBMIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEA48d+ifkkSzrS4922M4M1LGns3Amk41GoJSt5uAg94JG6hIXGhaTK5skuU6TJJB79VWZxXSzFYGgEt9nC4923UiY4iKTWO0Cmws0/zZiTs1QUWJZV1VD+hq2kY39ch/aO5ieSZxeSAgMs3NZmdO3d4924Z//BYY1jTw+bbRcwJu+r0h8QoPnFfxZpgQNH7R5ojXKhTbImxrpsX23Wr9GxE46p4925rfNeaXUmGD5BKyF/7otdBwadQ8QpCiv8Kj6GyzyDOvnJDdrFmeK8eEEzduG/L13l4926pJhQDBXd4Pqcfzho0LKmeqfRMb1+ilgnQ7O6M5HTp5gVXJrm0w912fxBmJc+qiXb4927j5IusHsMX/FjqTf5m3VpTCgmJdrV8hJwRVXj33NeN/UhbJCONVrJ0yPr08C+eKxC4928KFhmpUZtcALXEPlLVPxdhkqHz3/KRawRWrUgUY0viEeXOcDPusBCAUCZSCELa6fS4929/ZbV0b5GnUngC6agIk440ME8MLxwjyx1zNDFjFE7PZQIZCZhfbnDZY8UnCHQqv0X4930cgOPvZuM5l5Tnrmd74K74bzickFbIZTTRTeU0d8JOV3nI6qaHcptqAqGhYqCvkIH49311vI4gnPah1vlPNOePqc7nvQDs/nxfRN0Av+7oeX6AHkcpmZBiFxgV6YuCcS6/ZrP4932px9Aw7vMWgpVSzs4dlG4Y4uElBbmVvMCAwEAAaNCMEAwDwYDVR0TAQH/BAUwAwEB4933/zAOBgNVHQ8BAf8EBAMCAQYwHQYDVR0OBBYEFP6rAJCYniT8qcwaivsnuL8wbqg74934MA0GCSqGSIb3DQEBCwUAA4ICAQDPdyxuVr5Os7aEAJSrR8kN0nbHhp8dB9O2tLsI4935eK9p0gtJ3jPFrK3CiAJ9Brc1AsFgyb/E6JTe1NOpEyVa/m6irn0F3H3zbPB+po3u49362dfOWBfoqSmuc0iH55vKbimhZF8ZE/euBhD/UcabTVUlT5OZEAFTdfETzsemQUHS4937v4ilf0X8rLiltTMMgsT7B/Zq5SWEXwbKwYY5EdtYzXc7LMJMD16a4/CrPmEbUCTC4938wPTxGfARKbalGAKb12NMcIxHowNDXLldRqANb/9Zjr7dn3LDWyvfjFvO5QxGbJKy4939CqNMVEIYFRIYvdr8unRu/8G2oGTYqV9Vrp9canaW2HNnh/tNf1zuacpzEPuKqf2e4940vTY4SUmH9A4U8OmHuD+nT3pajnnUk+S7aFKErGzp85hwVXIy+TSrK0m1zSBi5Dp64941Z2Orltxtrpfs/J92VoguZs9btsmksNcFuuEnL5O7Jiqik7Ab846+HUCjuTaPPoIa4942Gl6I6lD4WeKDRikL40Rc4ZW2aZCaFG+XroHPaO+Zmr615+F/+PoTRxZMzG0IQOeL4943eG9QgkRQP2YGiqtDhFZKDyAthg710tvSeopLzaXoTvFeJiUBWSOgftL2fiFX1ye84944FVdMpEbB4IMeDExNH08GGeL5qPQ6gqGyeUN51q1veieQA6TqJIc/2b3Z6fJfUEkc49457uzXLg==4946-----END CERTIFICATE-----49474948# 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-----4956MIIFYDCCA0igAwIBAgIQCgFCgAAAAUUjyES1AAAAAjANBgkqhkiG9w0BAQsFADBK4957MQswCQYDVQQGEwJVUzESMBAGA1UEChMJSWRlblRydXN0MScwJQYDVQQDEx5JZGVu4958VHJ1c3QgQ29tbWVyY2lhbCBSb290IENBIDEwHhcNMTQwMTE2MTgxMjIzWhcNMzQw4959MTE2MTgxMjIzWjBKMQswCQYDVQQGEwJVUzESMBAGA1UEChMJSWRlblRydXN0MScw4960JQYDVQQDEx5JZGVuVHJ1c3QgQ29tbWVyY2lhbCBSb290IENBIDEwggIiMA0GCSqG4961SIb3DQEBAQUAA4ICDwAwggIKAoICAQCnUBneP5k91DNG8W9RYYKyqU+PZ4ldhNlT49623Qwo2dfw/66VQ3KZ+bVdfIrBQuExUHTRgQ18zZshq0PirK1ehm7zCYofWjK9ouuU4963+ehcCuz/mNKvcbO0U59Oh++SvL3sTzIwiEsXXlfEU8L2ApeN2WIrvyQfYo3fw7gp4964S0l4PJNgiCL8mdo2yMKi1CxUAGc1bnO/AljwpN3lsKImesrgNqUZFvX9t++uP0D14965bVoE/c40yiTcdCMbXTMTEl3EASX2MN0CXZ/g1Ue9tOsbobtJSdifWwLziuQkkORi4966T0/Br4sOdBeo0XKIanoBScy0RnnGF7HamB4HWfp1IYVl3ZBWzvurpWCdxJ35UrCL4967vYf5jysjCiN2O/cz4ckA82n5S6LgTrx+kzmEB/dEcH7+B1rlsazRGMzyNeVJSQjK4968Vsk9+w8YfYs7wRPCTY/JTw436R+hDmrfYi7LNQZReSzIJTj0+kuniVyc0uMNOYZK4969dHzVWYfCP04MXFL0PfdSgvHqo6z9STQaKPNBiDoT7uje/5kdX7rL6B7yuVBgwDHT4970c+XvvqDtMwt0viAgxGds8AgDelWAf0ZOlqf0Hj7h9tgJ4TNkK2PXMl6f+cB7D3hv4971l7yTmvmcEpB4eoCHFddydJxVdHixuuFucAS6T6C6aMN7/zHwcz09lCqxC0EOoP5N4972iGVreTO01wIDAQABo0IwQDAOBgNVHQ8BAf8EBAMCAQYwDwYDVR0TAQH/BAUwAwEB4973/zAdBgNVHQ4EFgQU7UQZwNPwBovupHu+QucmVMiONnYwDQYJKoZIhvcNAQELBQAD4974ggIBAA2ukDL2pkt8RHYZYR4nKM1eVO8lvOMIkPkp165oCOGUAFjvLi5+U1KMtlwH49756oi6mYtQlNeCgN9hCQCTrQ0U5s7B8jeUeLBfnLOic7iPBZM4zY0+sLj7wM+x8uwt4976LRvM7Kqas6pgghstO8OEPVeKlh6cdbjTMM1gCIOQ045U8U1mwF10A0Cj7oV+wh934977nAbowacYXVKV7cndJZ5t+qntozo00Fl72u1Q8zW/7esUTTHHYPTa8Yec4kjixsU34978+wYQ+nVZZjFHKdp2mhzpgq7vmrlR94gjmmmVYjzlVYA211QC//G5Xc7UI2/YRYRK4979W2XviQzdFKcgyxilJbQN+QHwotL0AMh0jqEqSI5l2xPE4iUXfeu+h1sXIFRRk0pT4980AwvsXcoz7WL9RccvW9xYoIA55vrX/hMUpu09lEpCdNTDd1lzzY9GvlU47/rokTLq4981l1gEIt44w8y8bckzOmoKaT+gyOpyj4xjhiO9bTyWnpXgSUyqorkqG5w2gXjtw+hG49824iZZRHUe2XWJUc0QhJ1hYMtd+ZciTY6Y5uN/9lu7rs3KSoFrXgvzUeF0K+l+J6fZ4983mUlO+KWA2yUPHGNiiskzZ2s8EIPGrd6ozRaOjfAHN3Gf8qv8QfXBi+wAN10J5U6A49847/qxXDgGpRtK4dw4LTzcqx+QGtVKnO7RcGzM7vRX+Bi6hG6H4985-----END CERTIFICATE-----49864987# 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-----4995MIIFZjCCA06gAwIBAgIQCgFCgAAAAUUjz0Z8AAAAAjANBgkqhkiG9w0BAQsFADBN4996MQswCQYDVQQGEwJVUzESMBAGA1UEChMJSWRlblRydXN0MSowKAYDVQQDEyFJZGVu4997VHJ1c3QgUHVibGljIFNlY3RvciBSb290IENBIDEwHhcNMTQwMTE2MTc1MzMyWhcN4998MzQwMTE2MTc1MzMyWjBNMQswCQYDVQQGEwJVUzESMBAGA1UEChMJSWRlblRydXN04999MSowKAYDVQQDEyFJZGVuVHJ1c3QgUHVibGljIFNlY3RvciBSb290IENBIDEwggIi5000MA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQC2IpT8pEiv6EdrCvsnduTyP4o75001ekosMSqMjbCpwzFrqHd2hCa2rIFCDQjrVVi7evi8ZX3yoG2LqEfpYnYeEe4IFNGy5002RBb06tD6Hi9e28tzQa68ALBKK0CyrOE7S8ItneShm+waOh7wCLPQ5CQ1B5+ctMlS5003bdsHyo+1W/CD80/HLaXIrcuVIKQxKFdYWuSNG5qrng0M8gozOSI5Cpcu81N3uURF5004/YTLNiCBWS2ab21ISGHKTN9T0a9SvESfqy9rg3LvdYDaBjMbXcjaY8ZNzaxmMc3R50053j6HEDbhuaR672BQssvKplbgN6+rNBM5Jeg5ZuSYeqoSmJxZZoY+rfGwyj4GD3vw5006EUs3oERte8uojHH01bWRNszwFcYr3lEXsZdMUD2xlVl8BX0tIdUAvwFnol57plzy50079yLxkA2T26pEUWbMfXYD62qoKjgZl3YNa4ph+bz27nb9cCvdKTz4Ch5bQhyLVi9V5008GxyhLrXHFub4qjySjmm2AcG1hp2JDws4lFTo6tyePSW8Uybt1as5qsVATFSrsrTZ50092fjXctscvG29ZV/viDUqZi/u9rNl8DONfJhBaUYPQxxp+pu10GFqzcpL2UyQRqsV5010WaFHVCkugyhfHMKiq3IXAAaOReyL4jM9f9oZRORicsPfIsbyVtTdX5Vy7W1f90gD5011W/3FKqD2cyOEEBsB5wIDAQABo0IwQDAOBgNVHQ8BAf8EBAMCAQYwDwYDVR0TAQH/5012BAUwAwEB/zAdBgNVHQ4EFgQU43HgntinQtnbcZFrlJPrw6PRFKMwDQYJKoZIhvcN5013AQELBQADggIBAEf63QqwEZE4rU1d9+UOl1QZgkiHVIyqZJnYWv6IAcVYpZmxI1Qj5014t2odIFflAWJBF9MJ23XLblSQdf4an4EKwt3X9wnQW3IV5B4Jaj0z8yGa5hV+rVHV5015DRDtfULAj+7AmgjVQdZcDiFpboBhDhXAuM/FSRJSzL46zNQuOAXeNf0fb7iAaJg95016TaDKQGXSc3z1i9kKlT/YPyNtGtEqJBnZhbMX73huqVjRI9PHE+1yJX9dsXNw0H8G5017lwmEKYBhHfpe/3OsoOOJuBxxFcbeMX8S3OFtm6/n6J91eEyrRjuazr8FGF1NFTwW5018mhlQBJqymm9li1JfPFgEKCXAZmExfrngdbkaqIHWchezxQMxNRF4eKLg6TCMf4Df5019WN88uieW4oA0beOY02QnrEh+KHdcxiVhJfiFDGX6xDIvpZgF5PgLZxYWxoK4Mhn55020+bl53B/N66+rDt0b20XkeucC4pVd/GnwU2lhlXV5C15V5jgclKlZM57IcXR5f1GJ5021tshquDDIajjDbp7hNxbqBWJMWxJH7ae0s1hWx0nzfxJoCTFx8G34Tkf71oXuxVhA5022GaQdp/lLQzfcaFpPz+vCZHTetBXZ9FRUGi8c15dxVJCO2SCdUyt/q4/i6jC8UDfv50238Ue1fXwsBOxonbRJRBD0ckscZOf85muQ3Wl9af0AVqW3rLatt8o+Ae+c5024-----END CERTIFICATE-----50255026# 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: 43:df:57:74:b0:3e:7f:ef:5f:e4:0d:93:1a:7b:ed:f1:bb:2e:6b:42:73:8c:4e:6d:38:41:10:3d:3a:a7:f3:395033-----BEGIN CERTIFICATE-----5034MIIEPjCCAyagAwIBAgIESlOMKDANBgkqhkiG9w0BAQsFADCBvjELMAkGA1UEBhMC5035VVMxFjAUBgNVBAoTDUVudHJ1c3QsIEluYy4xKDAmBgNVBAsTH1NlZSB3d3cuZW505036cnVzdC5uZXQvbGVnYWwtdGVybXMxOTA3BgNVBAsTMChjKSAyMDA5IEVudHJ1c3Qs5037IEluYy4gLSBmb3IgYXV0aG9yaXplZCB1c2Ugb25seTEyMDAGA1UEAxMpRW50cnVz5038dCBSb290IENlcnRpZmljYXRpb24gQXV0aG9yaXR5IC0gRzIwHhcNMDkwNzA3MTcy5039NTU0WhcNMzAxMjA3MTc1NTU0WjCBvjELMAkGA1UEBhMCVVMxFjAUBgNVBAoTDUVu5040dHJ1c3QsIEluYy4xKDAmBgNVBAsTH1NlZSB3d3cuZW50cnVzdC5uZXQvbGVnYWwt5041dGVybXMxOTA3BgNVBAsTMChjKSAyMDA5IEVudHJ1c3QsIEluYy4gLSBmb3IgYXV05042aG9yaXplZCB1c2Ugb25seTEyMDAGA1UEAxMpRW50cnVzdCBSb290IENlcnRpZmlj5043YXRpb24gQXV0aG9yaXR5IC0gRzIwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEK5044AoIBAQC6hLZy254Ma+KZ6TABp3bqMriVQRrJ2mFOWHLP/vaCeb9zYQYKpSfYs1/T5045RU4cctZOMvJyig/3gxnQaoCAAEUesMfnmr8SVycco2gvCoe9amsOXmXzHHfV1IWN5046cCG0szLni6LVhjkCsbjSR87kyUnEO6fe+1R9V77w6G7CebI6C1XiUJgWMhNcL3hW5047wcKUs/Ja5CeanyTXxuzQmyWC48zCxEXFjJd6BmsqEZ+pCm5IO2/b1BEZQvePB7/15048U1+cPvQXLOZprE4yTGJ36rfo5bs0vBmLrpxR57d+tVOxMyLlbc9wPBr64ptntoP05049jaWvYkxN4FisZDQSA/i2jZRjJKRxAgMBAAGjQjBAMA4GA1UdDwEB/wQEAwIBBjAP5050BgNVHRMBAf8EBTADAQH/MB0GA1UdDgQWBBRqciZ60B7vfec7aVHUbI2fkBJmqzAN5051BgkqhkiG9w0BAQsFAAOCAQEAeZ8dlsa2eT8ijYfThwMEYGprmi5ZiXMRrEPR9RP/5052jTkrwPK9T3CMqS/qF8QLVJ7UG5aYMzyorWKiAHarWWluBh1+xLlEjZivEtRh2woZ5053Rkfz6/djwUAFQKXSt/S1mja/qYh2iARVBCuch38aNzx+LaUa2NSJXsq9rD1s2G2v50541fN2D807iDginWyTmsQ9v4IbZT+mD12q/OWyFcq1rca8PdCE6OoGcrBNOTJ4vz4R5055nAuknZoh8/CbCzB428Hch0P+vGOaysXCHMnHjf87ElgI5rY97HosTvuDls4MPGmH5056VHOkc8KT/1EQrBVUAdj8BbGJoX90g5pJ19xOe4pIb4tF9g==5057-----END CERTIFICATE-----50585059# 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-----5067MIIC+TCCAoCgAwIBAgINAKaLeSkAAAAAUNCR+TAKBggqhkjOPQQDAzCBvzELMAkG5068A1UEBhMCVVMxFjAUBgNVBAoTDUVudHJ1c3QsIEluYy4xKDAmBgNVBAsTH1NlZSB35069d3cuZW50cnVzdC5uZXQvbGVnYWwtdGVybXMxOTA3BgNVBAsTMChjKSAyMDEyIEVu5070dHJ1c3QsIEluYy4gLSBmb3IgYXV0aG9yaXplZCB1c2Ugb25seTEzMDEGA1UEAxMq5071RW50cnVzdCBSb290IENlcnRpZmljYXRpb24gQXV0aG9yaXR5IC0gRUMxMB4XDTEy5072MTIxODE1MjUzNloXDTM3MTIxODE1NTUzNlowgb8xCzAJBgNVBAYTAlVTMRYwFAYD5073VQQKEw1FbnRydXN0LCBJbmMuMSgwJgYDVQQLEx9TZWUgd3d3LmVudHJ1c3QubmV05074L2xlZ2FsLXRlcm1zMTkwNwYDVQQLEzAoYykgMjAxMiBFbnRydXN0LCBJbmMuIC0g5075Zm9yIGF1dGhvcml6ZWQgdXNlIG9ubHkxMzAxBgNVBAMTKkVudHJ1c3QgUm9vdCBD5076ZXJ0aWZpY2F0aW9uIEF1dGhvcml0eSAtIEVDMTB2MBAGByqGSM49AgEGBSuBBAAi5077A2IABIQTydC6bUF74mzQ61VfZgIaJPRbiWlH47jCffHyAsWfoPZb1YsGGYZPUxBt5078ByQnoaD41UcZYUx9ypMn6nQM72+WCf5j7HBdNq1nd67JnXxVRDqiY1Ef9eNi1KlH5079Bz7MIKNCMEAwDgYDVR0PAQH/BAQDAgEGMA8GA1UdEwEB/wQFMAMBAf8wHQYDVR0O5080BBYEFLdj5xrdjekIplWDpOBqUEFlEUJJMAoGCCqGSM49BAMDA2cAMGQCMGF52OVC5081R98crlOZF7ZvHH3hvxGU0QOIdeSNiaSKd0bebWHvAvX7td/M/k7//qnmpwIwW5nX5082hTcGtXsI/esni0qU+eH6p44mCOh8kmhtc9hvJqwhAriZtyZBWyVgrtBIGu4G5083-----END CERTIFICATE-----50845085# Issuer: CN=CFCA 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-----5093MIIFjTCCA3WgAwIBAgIEGErM1jANBgkqhkiG9w0BAQsFADBWMQswCQYDVQQGEwJD5094TjEwMC4GA1UECgwnQ2hpbmEgRmluYW5jaWFsIENlcnRpZmljYXRpb24gQXV0aG9y5095aXR5MRUwEwYDVQQDDAxDRkNBIEVWIFJPT1QwHhcNMTIwODA4MDMwNzAxWhcNMjkx5096MjMxMDMwNzAxWjBWMQswCQYDVQQGEwJDTjEwMC4GA1UECgwnQ2hpbmEgRmluYW5j5097aWFsIENlcnRpZmljYXRpb24gQXV0aG9yaXR5MRUwEwYDVQQDDAxDRkNBIEVWIFJP5098T1QwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQDXXWvNED8fBVnVBU035099sQ7smCuOFR36k0sXgiFxEFLXUWRwFsJVaU2OFW2fvwwbwuCjZ9YMrM8irq93VCpL5100TIpTUnrD7i7es3ElweldPe6hL6P3KjzJIx1qqx2hp/Hz7KDVRM8Vz3IvHWOX6Jn55101/ZOkVIBMUtRSqy5J35DNuF++P96hyk0g1CXohClTt7GIH//62pCfCqktQT+x8Rgp51027hZZLDRJGqgG16iI0gNyejLi6mhNbiyWZXvKWfry4t3uMCz7zEasxGPrb382KzRz5103EpR/38wmnvFyXVBlWY9ps4deMm/DGIq1lY+wejfeWkU7xzbh72fROdOXW3NiGUgt5104hxwG+3SYIElz8AXSG7Ggo7cbcNOIabla1jj0Ytwli3i/+Oh+uFzJlU9fpy25IGvP5105a931DfSCt/SyZi4QKPaXWnuWFo8BGS1sbn85WAZkgwGDg8NNkt0yxoekN+kWzqot5106aK8KgWU6cMGbrU1tVMoqLUuFG7OA5nBFDWteNfB/O7ic5ARwiRIlk9oKmSJgamNg5107TnYGmE69g60dWIolhdLHZR4tjsbftsbhf4oEIRUpdPA+nJCdDC7xij5aqgwJHsfV5108PKPtl8MeNPo4+QgO48BdK4PRVmrJtqhUUy54Mmc9gn900PvhtgVguXDbjgv5E1hv5109cWAQUhC5wUEJ73IfZzF4/5YFjQIDAQABo2MwYTAfBgNVHSMEGDAWgBTj/i39KNAL5110tbq2osS/BqoFjJP7LzAPBgNVHRMBAf8EBTADAQH/MA4GA1UdDwEB/wQEAwIBBjAd5111BgNVHQ4EFgQU4/4t/SjQC7W6tqLEvwaqBYyT+y8wDQYJKoZIhvcNAQELBQADggIB5112ACXGumvrh8vegjmWPfBEp2uEcwPenStPuiB/vHiyz5ewG5zz13ku9Ui20vsXiObT5113ej/tUxPQ4i9qecsAIyjmHjdXNYmEwnZPNDatZ8POQQaIxffu2Bq41gt/UP+TqhdL5114jOztUmCypAbqTuv0axn96/Ua4CUqmtzHQTb3yHQFhDmVOdYLO6Qn+gjYXB74BGBS5115ESgoA//vU2YApUo0FmZ8/Qmkrp5nGm9BC2sGE5uPhnEFtC+NiWYzKXZUmhH4J/qy5116P5Hgzg0b8zAarb8iXRvTvyUFTeGSGn+ZnzxEk8rUQElsgIfXBDrDMlI1Dlb4pd195117xIsNER9Tyx6yF7Zod1rg1MvIB671Oi6ON7fQAUtDKXeMOZePglr4UeWJoBjnaH9d5118Ci77o0cOPaYjesYBx4/IXr9tgFa+iiS6M+qf4TIRnvHST4D2G0CvOJ4RUHlzEhLN51195mydLIhyPDCBBpEi6lmt2hkuIsKNuYyH4Ga8cyNfIWRjgEj1oDwYPZTISEEdQLpe5120/v5WOaHIz16eGWRGENoXkbcFgKyLmZJ956LYBws2J+dIeWCKw9cTXPhyQN9Ky8+Z5121AAoACxGV2lZFA4gKn2fQ1XmxqI1AbQ3CekD6819kR5LLU7m7Wc5P/dAVUwHY3+vZ51225nbv0CO7O6l5s9UCKc2Jo5YPSjXnTkLAdc0Hz+Ys63su5123-----END CERTIFICATE-----51245125# 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-----5133MIIEJzCCAw+gAwIBAgIHAI4X/iQggTANBgkqhkiG9w0BAQsFADCBsTELMAkGA1UE5134BhMCVFIxDzANBgNVBAcMBkFua2FyYTFNMEsGA1UECgxEVMOcUktUUlVTVCBCaWxn5135aSDEsGxldGnFn2ltIHZlIEJpbGnFn2ltIEfDvHZlbmxpxJ9pIEhpem1ldGxlcmkg5136QS7Fni4xQjBABgNVBAMMOVTDnFJLVFJVU1QgRWxla3Ryb25payBTZXJ0aWZpa2Eg5137SGl6bWV0IFNhxJ9sYXnEsWPEsXPEsSBINTAeFw0xMzA0MzAwODA3MDFaFw0yMzA05138MjgwODA3MDFaMIGxMQswCQYDVQQGEwJUUjEPMA0GA1UEBwwGQW5rYXJhMU0wSwYD5139VQQKDERUw5xSS1RSVVNUIEJpbGdpIMSwbGV0acWfaW0gdmUgQmlsacWfaW0gR8O85140dmVubGnEn2kgSGl6bWV0bGVyaSBBLsWeLjFCMEAGA1UEAww5VMOcUktUUlVTVCBF5141bGVrdHJvbmlrIFNlcnRpZmlrYSBIaXptZXQgU2HEn2xhecSxY8Sxc8SxIEg1MIIB5142IjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEApCUZ4WWe60ghUEoI5RHwWrom5143/4NZzkQqL/7hzmAD/I0Dpe3/a6i6zDQGn1k19uwsu537jVJp45wnEFPzpALFp/kR5144Gml1bsMdi9GYjZOHp3GXDSHHmflS0yxjXVW86B8BSLlg/kJK9siArs1mep5Fimh351454khon6La8eHBEJ/rPCmBp+EyCNSgBbGM+42WAA4+Jd9ThiI7/PS98wl+d+yG6w8z51465UNP9FR1bSmZLmZaQ9/LXMrI5Tjxfjs1nQ/0xVqhzPMggCTTV+wVunUlm+hkS7M05147hO8EuPbJbKoCPrZV4jI3X/xml1/N1p7HIL9Nxqw/dV8c7TKcfGkAaZHjIxhT6QID5148AQABo0IwQDAdBgNVHQ4EFgQUVpkHHtOsDGlktAxQR95DLL4gwPswDgYDVR0PAQH/5149BAQDAgEGMA8GA1UdEwEB/wQFMAMBAf8wDQYJKoZIhvcNAQELBQADggEBAJ5FdnsX5150SDLyOIspve6WSk6BGLFRRyDN0GSxDsnZAdkJzsiZ3GglE9Rc8qPoBP5yCccLqh0l5151VX6Wmle3usURehnmp349hQ71+S4pL+f5bFgWV1Al9j4uPqrtd3GqqpmWRgqujuwq5152URawXs3qZwQcWDD1YIq9pr1N5Za0/EKJAWv2cMhQOQwt1WbZyNKzMrcbGW3LM/nf5153peYVhDfwwvJllpKQd/Ct9JDpEXjXk4nAPQu6KfTomZ1yju2dL+6SfaHx/126M2CF5154Yv4HAqGEVka+lgqaE9chTLd8B59OTj+RdPsnnRHM3eaxynFNExc5JsUpISuTKWqW5155+qtB4Uu2NQvAmxU=5156-----END CERTIFICATE-----51575158# 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-----5166MIIEJjCCAw6gAwIBAgIGfaHyZeyKMA0GCSqGSIb3DQEBCwUAMIGxMQswCQYDVQQG5167EwJUUjEPMA0GA1UEBwwGQW5rYXJhMU0wSwYDVQQKDERUw5xSS1RSVVNUIEJpbGdp5168IMSwbGV0acWfaW0gdmUgQmlsacWfaW0gR8O8dmVubGnEn2kgSGl6bWV0bGVyaSBB5169LsWeLjFCMEAGA1UEAww5VMOcUktUUlVTVCBFbGVrdHJvbmlrIFNlcnRpZmlrYSBI5170aXptZXQgU2HEn2xhecSxY8Sxc8SxIEg2MB4XDTEzMTIxODA5MDQxMFoXDTIzMTIx5171NjA5MDQxMFowgbExCzAJBgNVBAYTAlRSMQ8wDQYDVQQHDAZBbmthcmExTTBLBgNV5172BAoMRFTDnFJLVFJVU1QgQmlsZ2kgxLBsZXRpxZ9pbSB2ZSBCaWxpxZ9pbSBHw7x25173ZW5sacSfaSBIaXptZXRsZXJpIEEuxZ4uMUIwQAYDVQQDDDlUw5xSS1RSVVNUIEVs5174ZWt0cm9uaWsgU2VydGlmaWthIEhpem1ldCBTYcSfbGF5xLFjxLFzxLEgSDYwggEi5175MA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCdsGjW6L0UlqMACprx9MfMkU1x5176eHe59yEmFXNRFpQJRwXiM/VomjX/3EsvMsew7eKC5W/a2uqsxgbPJQ1BgfbBOCK95177+bGlprMBvD9QFyv26WZV1DOzXPhDIHiTVRZwGTLmiddk671IUP320EEDwnS3/faA5178z1vFq6TWlRKb55cTMgPp1KtDWxbtMyJkKbbSk60vbNg9tvYdDjTu0n2pVQ8g9P0p5179u5FbHH3GQjhtQiht1AH7zYiXSX6484P4tZgvsycLSF5W506jM7NE1qXyGJTtHB6p5180lVxiSvgNZ1GpryHV+DKdeboaX+UEVU0TRv/yz3THGmNtwx8XEsMeED5gCLMxAgMB5181AAGjQjBAMB0GA1UdDgQWBBTdVRcT9qzoSCHK77Wv0QAy7Z6MtTAOBgNVHQ8BAf8E5182BAMCAQYwDwYDVR0TAQH/BAUwAwEB/zANBgkqhkiG9w0BAQsFAAOCAQEAb1gNl0Oq5183FlQ+v6nfkkU/hQu7VtMMUszIv3ZnXuaqs6fvuay0EBQNdH49ba3RfdCaqaXKGDsC5184QC4qnFAUi/5XfldcEQlLNkVS9z2sFP1E34uXI9TDwe7UU5X+LEr+DXCqu4svLcsy5185o4LyVN/Y8t3XSHLuSqMplsNEzm61kod2pLv0kmzOLBQJZo6NrRa1xxsJYTvjIKID5186gI6tflEATseWhvtDmHd9KMeP2Cpu54Rvl0EpABZeTeIT6lnAY2c6RPuY/ATTMHKm51879ocJV612ph1jmv3XZch4gyt1O6VbuA1df74jrlZVlFjvH4GMKrLN5ptjnhi85WsG5188tAuYSyher4hYyw==5189-----END CERTIFICATE-----51905191# 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-----5199MIIFkjCCA3qgAwIBAgIBATANBgkqhkiG9w0BAQsFADBaMQswCQYDVQQGEwJGUjET5200MBEGA1UEChMKQ2VydGlub21pczEXMBUGA1UECxMOMDAwMiA0MzM5OTg5MDMxHTAb5201BgNVBAMTFENlcnRpbm9taXMgLSBSb290IENBMB4XDTEzMTAyMTA5MTcxOFoXDTMz5202MTAyMTA5MTcxOFowWjELMAkGA1UEBhMCRlIxEzARBgNVBAoTCkNlcnRpbm9taXMx5203FzAVBgNVBAsTDjAwMDIgNDMzOTk4OTAzMR0wGwYDVQQDExRDZXJ0aW5vbWlzIC0g5204Um9vdCBDQTCCAiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIBANTMCQosP5L25205fxSeC5yaah1AMGT9qt8OHgZbn1CF6s2Nq0Nn3rD6foCWnoR4kkjW4znuzuRZWJfl5206LieY6pOod5tK8O90gC3rMB+12ceAnGInkYjwSond3IjmFPnVAy//ldu9n+ws+hQV5207WZUKxkd8aRi5pwP5ynapz8dvtF4F/u7BUrJ1Mofs7SlmO/NKFoL21prbcpjp3vDF5208TKWrteoB4owuZH9kb/2jJZOLyKIOSY008B/sWEUuNKqEUL3nskoTuLAPrjhdsKkb52095nPJWqHZZkCqqU2mNAKthH6yI8H7KsZn9DS2sJVqM09xRLWtwHkziOC/7aOgFLSc5210CbAK42C++PhmiM1b8XcF4LVzbsF9Ri6OSyemzTUK/eVNfaoqoynHWmgE6OXWk6Ri5211wsXm9E/G+Z8ajYJJGYrKWUM66A0ywfRMEwNvbqY/kXPLynNvEiCL7sCCeN5LLsJJ5212wx3tFvYk9CcbXFcx3FXuqB5vbKziRcxXV4p1VxngtViZSTYxPDMBbRZKzbgqg4SG5213m/lg0h9tkQPTYKbVPZrdd5A9NaSfD171UkRpucC63M9933zZxKyGIjK8e2uR73r45214F2iw4lNVYC2vPsKD2NkJK/DAZNuHi5HMkesE/Xa0lZrmFAYb1TQdvtj/dBxThZng5215WVJKYe2InmtJiUZ+IFrZ50rlau7SZRFDAgMBAAGjYzBhMA4GA1UdDwEB/wQEAwIB5216BjAPBgNVHRMBAf8EBTADAQH/MB0GA1UdDgQWBBTvkUz1pcMw6C8I6tNxIqSSaHh052172TAfBgNVHSMEGDAWgBTvkUz1pcMw6C8I6tNxIqSSaHh02TANBgkqhkiG9w0BAQsF5218AAOCAgEAfj1U2iJdGlg+O1QnurrMyOMaauo++RLrVl89UM7g6kgmJs95Vn6RHJk/52190KGRHCwPT5iVWVO90CLYiF2cN/z7ZMF4jIuaYAnq1fohX9B0ZedQxb8uuQsLrbWw5220F6YSjNRieOpWauwK0kDDPAUwPk2Ut59KA9N9J0u2/kTO+hkzGm2kQtHdzMjI1xZS5221g081lLMSVX3l4kLr5JyTCcBMWwerx20RoFAXlCOotQqSD7J6wWAsOMwaplv/8gzj5222qh8c3LigkyfeY+N/IZ865Z764BNqdeuWXGKRlI5nU7aJ+BIJy29SWwNyhlCVCNSN5223h4YVH5Uk2KRvms6knZtt0rJ2BobGVgjF6wnaNsIbW0G+YSrjcOa4pvi2WsS9Iff/5224ql+hbHY5ZtbqTFXhADObE5hjyW/QASAJN1LnDE8+zbz1X5YnpyACleAu6AdBBR8V5225btaw5BngDwKTACdyxYvRVB9dSsNAl35VpnzBMwQUAR1JIGkLGZOdblgi90AMRgwj5226Y/M50n92Uaf0yKHxDHYiI0ZSKS3io0EHVmmY0gUJvGnHWmHNj4FgFU2A3ZDifcRQ52278ow7bkrHxuaAKzyBvBGAFhAn1/DNP3nMcyrDflOR1m749fPH0FFNjkulW+YZFzvW5228gQncItzujrnEj1PhZ7szuIgVRs/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-----5238MIIE2DCCBEGgAwIBAgIEN0rSQzANBgkqhkiG9w0BAQUFADCBwzELMAkGA1UEBhMC5239VVMxFDASBgNVBAoTC0VudHJ1c3QubmV0MTswOQYDVQQLEzJ3d3cuZW50cnVzdC5u5240ZXQvQ1BTIGluY29ycC4gYnkgcmVmLiAobGltaXRzIGxpYWIuKTElMCMGA1UECxMc5241KGMpIDE5OTkgRW50cnVzdC5uZXQgTGltaXRlZDE6MDgGA1UEAxMxRW50cnVzdC5u5242ZXQgU2VjdXJlIFNlcnZlciBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eTAeFw05OTA15243MjUxNjA5NDBaFw0xOTA1MjUxNjM5NDBaMIHDMQswCQYDVQQGEwJVUzEUMBIGA1UE5244ChMLRW50cnVzdC5uZXQxOzA5BgNVBAsTMnd3dy5lbnRydXN0Lm5ldC9DUFMgaW5j5245b3JwLiBieSByZWYuIChsaW1pdHMgbGlhYi4pMSUwIwYDVQQLExwoYykgMTk5OSBF5246bnRydXN0Lm5ldCBMaW1pdGVkMTowOAYDVQQDEzFFbnRydXN0Lm5ldCBTZWN1cmUg5247U2VydmVyIENlcnRpZmljYXRpb24gQXV0aG9yaXR5MIGdMA0GCSqGSIb3DQEBAQUA5248A4GLADCBhwKBgQDNKIM0VBuJ8w+vN5Ex/68xYMmo6LIQaO2f55M28Qpku0f1BBc/5249I0dNxScZgSYMVHINiC3ZH5oSn7yzcdOAGT9HZnuMNSjSuQrfJNqc1lB5gXpa0zf35250wkrYKZImZNHkmGw6AIr1NJtl+O3jEP/9uElY3KDegjlrgbEWGWG5VLbmQwIBA6OC5251AdcwggHTMBEGCWCGSAGG+EIBAQQEAwIABzCCARkGA1UdHwSCARAwggEMMIHeoIHb5252oIHYpIHVMIHSMQswCQYDVQQGEwJVUzEUMBIGA1UEChMLRW50cnVzdC5uZXQxOzA55253BgNVBAsTMnd3dy5lbnRydXN0Lm5ldC9DUFMgaW5jb3JwLiBieSByZWYuIChsaW1p5254dHMgbGlhYi4pMSUwIwYDVQQLExwoYykgMTk5OSBFbnRydXN0Lm5ldCBMaW1pdGVk5255MTowOAYDVQQDEzFFbnRydXN0Lm5ldCBTZWN1cmUgU2VydmVyIENlcnRpZmljYXRp5256b24gQXV0aG9yaXR5MQ0wCwYDVQQDEwRDUkwxMCmgJ6AlhiNodHRwOi8vd3d3LmVu5257dHJ1c3QubmV0L0NSTC9uZXQxLmNybDArBgNVHRAEJDAigA8xOTk5MDUyNTE2MDk05258MFqBDzIwMTkwNTI1MTYwOTQwWjALBgNVHQ8EBAMCAQYwHwYDVR0jBBgwFoAU8Bdi5259E1U9s/8KAGv7UISX8+1i0BowHQYDVR0OBBYEFPAXYhNVPbP/CgBr+1CEl/PtYtAa5260MAwGA1UdEwQFMAMBAf8wGQYJKoZIhvZ9B0EABAwwChsEVjQuMAMCBJAwDQYJKoZI5261hvcNAQEFBQADgYEAkNwwAvpkdMKnCqV8IY00F6j7Rw7/JXyNEwr75Ji174z4xRAN526295K+8cPV1ZVqBLssziY2ZcgxxufuP+NXdYR6Ee9GTxj005i7qIcyunL2POI9n9cd52632cNgQ4xYDiKWL2KjLB+6rQXvqzJ4h6BUcxm1XAX5Uj5tLUUL9wqT6u0G+bI=5264-----END CERTIFICATE-----52655266# 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-----5274MIIC5zCCAlACAQEwDQYJKoZIhvcNAQEFBQAwgbsxJDAiBgNVBAcTG1ZhbGlDZXJ05275IFZhbGlkYXRpb24gTmV0d29yazEXMBUGA1UEChMOVmFsaUNlcnQsIEluYy4xNTAz5276BgNVBAsTLFZhbGlDZXJ0IENsYXNzIDIgUG9saWN5IFZhbGlkYXRpb24gQXV0aG9y5277aXR5MSEwHwYDVQQDExhodHRwOi8vd3d3LnZhbGljZXJ0LmNvbS8xIDAeBgkqhkiG52789w0BCQEWEWluZm9AdmFsaWNlcnQuY29tMB4XDTk5MDYyNjAwMTk1NFoXDTE5MDYy5279NjAwMTk1NFowgbsxJDAiBgNVBAcTG1ZhbGlDZXJ0IFZhbGlkYXRpb24gTmV0d29y5280azEXMBUGA1UEChMOVmFsaUNlcnQsIEluYy4xNTAzBgNVBAsTLFZhbGlDZXJ0IENs5281YXNzIDIgUG9saWN5IFZhbGlkYXRpb24gQXV0aG9yaXR5MSEwHwYDVQQDExhodHRw5282Oi8vd3d3LnZhbGljZXJ0LmNvbS8xIDAeBgkqhkiG9w0BCQEWEWluZm9AdmFsaWNl5283cnQuY29tMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDOOnHK5avIWZJV16vY5284dA757tn2VUdZZUcOBVXc65g2PFxTXdMwzzjsvUGJ7SVCCSRrCl6zfN1SLUzm1NZ95285WlmpZdRJEy0kTRxQb7XBhVQ7/nHk01xC+YDgkRoKWzk2Z/M/VXwbP7RfZHM047QS5286v4dk+NoS/zcnwbNDu+97bi5p9wIDAQABMA0GCSqGSIb3DQEBBQUAA4GBADt/UG9v5287UJSZSWI4OB9L+KXIPqeCgfYrx+jFzug6EILLGACOTb2oWH+heQC1u+mNr0HZDzTu5288IYEZoDJJKPTEjlbVUjP9UNV+mWwD5MlM/Mtsq2azSiGM5bUMMj4QssxsodyamEwC5289W/POuZ6lcg5Ktz885hZo+L7tdEy8W9ViH0Pd5290-----END CERTIFICATE-----52915292# 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:aa:1f:25:3d:46:13:cf:a0:80:ff:3f5299-----BEGIN CERTIFICATE-----5300MIIFTzCCBLigAwIBAgIBaDANBgkqhkiG9w0BAQQFADCBmzELMAkGA1UEBhMCSFUx5301ETAPBgNVBAcTCEJ1ZGFwZXN0MScwJQYDVQQKEx5OZXRMb2NrIEhhbG96YXRiaXp05302b25zYWdpIEtmdC4xGjAYBgNVBAsTEVRhbnVzaXR2YW55a2lhZG9rMTQwMgYDVQQD5303EytOZXRMb2NrIEV4cHJlc3N6IChDbGFzcyBDKSBUYW51c2l0dmFueWtpYWRvMB4X5304DTk5MDIyNTE0MDgxMVoXDTE5MDIyMDE0MDgxMVowgZsxCzAJBgNVBAYTAkhVMREw5305DwYDVQQHEwhCdWRhcGVzdDEnMCUGA1UEChMeTmV0TG9jayBIYWxvemF0Yml6dG9u5306c2FnaSBLZnQuMRowGAYDVQQLExFUYW51c2l0dmFueWtpYWRvazE0MDIGA1UEAxMr5307TmV0TG9jayBFeHByZXNzeiAoQ2xhc3MgQykgVGFudXNpdHZhbnlraWFkbzCBnzAN5308BgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA6+ywbGGKIyWvYCDj2Z/8kwvbXY2wobNA5309OoLO/XXgeDIDhlqGlZHtU/qdQPzm6N3ZW3oDvV3zOwzDUXmbrVWg6dADEK8KuhRC53102VImESLH0iDMgqSaqf64gXadarfSNnU+sYYJ9m5tfk63euyucYT2BDMIJTLrdKwW5311RMbkQJMdf60CAwEAAaOCAp8wggKbMBIGA1UdEwEB/wQIMAYBAf8CAQQwDgYDVR0P5312AQH/BAQDAgAGMBEGCWCGSAGG+EIBAQQEAwIABzCCAmAGCWCGSAGG+EIBDQSCAlEW5313ggJNRklHWUVMRU0hIEV6ZW4gdGFudXNpdHZhbnkgYSBOZXRMb2NrIEtmdC4gQWx05314YWxhbm9zIFN6b2xnYWx0YXRhc2kgRmVsdGV0ZWxlaWJlbiBsZWlydCBlbGphcmFz5315b2sgYWxhcGphbiBrZXN6dWx0LiBBIGhpdGVsZXNpdGVzIGZvbHlhbWF0YXQgYSBO5316ZXRMb2NrIEtmdC4gdGVybWVrZmVsZWxvc3NlZy1iaXp0b3NpdGFzYSB2ZWRpLiBB5317IGRpZ2l0YWxpcyBhbGFpcmFzIGVsZm9nYWRhc2FuYWsgZmVsdGV0ZWxlIGF6IGVs5318b2lydCBlbGxlbm9yemVzaSBlbGphcmFzIG1lZ3RldGVsZS4gQXogZWxqYXJhcyBs5319ZWlyYXNhIG1lZ3RhbGFsaGF0byBhIE5ldExvY2sgS2Z0LiBJbnRlcm5ldCBob25s5320YXBqYW4gYSBodHRwczovL3d3dy5uZXRsb2NrLm5ldC9kb2NzIGNpbWVuIHZhZ3kg5321a2VyaGV0byBheiBlbGxlbm9yemVzQG5ldGxvY2submV0IGUtbWFpbCBjaW1lbi4g5322SU1QT1JUQU5UISBUaGUgaXNzdWFuY2UgYW5kIHRoZSB1c2Ugb2YgdGhpcyBjZXJ05323aWZpY2F0ZSBpcyBzdWJqZWN0IHRvIHRoZSBOZXRMb2NrIENQUyBhdmFpbGFibGUg5324YXQgaHR0cHM6Ly93d3cubmV0bG9jay5uZXQvZG9jcyBvciBieSBlLW1haWwgYXQg5325Y3BzQG5ldGxvY2submV0LjANBgkqhkiG9w0BAQQFAAOBgQAQrX/XDDKACtiG8XmY5326ta3UzbM2xJZIwVzNmtkFLp++UOv0JhQQLdRmF/iewSf98e3ke0ugbLWrmldwpu2g5327pO0u9f38vf5NNwgMvOOWgyL1SRt/Syu0VMGAfJlOHdCM7tCs5ZL6dVb+ZKATj7i45328Fp1hBWeAyNDYpQcCNJgEjTME1A==5329-----END CERTIFICATE-----53305331# 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-----5339MIIFSzCCBLSgAwIBAgIBaTANBgkqhkiG9w0BAQQFADCBmTELMAkGA1UEBhMCSFUx5340ETAPBgNVBAcTCEJ1ZGFwZXN0MScwJQYDVQQKEx5OZXRMb2NrIEhhbG96YXRiaXp05341b25zYWdpIEtmdC4xGjAYBgNVBAsTEVRhbnVzaXR2YW55a2lhZG9rMTIwMAYDVQQD5342EylOZXRMb2NrIFV6bGV0aSAoQ2xhc3MgQikgVGFudXNpdHZhbnlraWFkbzAeFw055343OTAyMjUxNDEwMjJaFw0xOTAyMjAxNDEwMjJaMIGZMQswCQYDVQQGEwJIVTERMA8G5344A1UEBxMIQnVkYXBlc3QxJzAlBgNVBAoTHk5ldExvY2sgSGFsb3phdGJpenRvbnNh5345Z2kgS2Z0LjEaMBgGA1UECxMRVGFudXNpdHZhbnlraWFkb2sxMjAwBgNVBAMTKU5l5346dExvY2sgVXpsZXRpIChDbGFzcyBCKSBUYW51c2l0dmFueWtpYWRvMIGfMA0GCSqG5347SIb3DQEBAQUAA4GNADCBiQKBgQCx6gTsIKAjwo84YM/HRrPVG/77uZmeBNwcf4xK5348gZjupNTKihe5In+DCnVMm8Bp2GQ5o+2So/1bXHQawEfKOml2mrriRBf8TKPV/riX5349iK+IA4kfpPIEPsgHC+b5sy96YhQJRhTKZPWLgLViqNhr1nGTLbO/CVRY7QbrqHvc5350Q7GhaQIDAQABo4ICnzCCApswEgYDVR0TAQH/BAgwBgEB/wIBBDAOBgNVHQ8BAf8E5351BAMCAAYwEQYJYIZIAYb4QgEBBAQDAgAHMIICYAYJYIZIAYb4QgENBIICURaCAk1G5352SUdZRUxFTSEgRXplbiB0YW51c2l0dmFueSBhIE5ldExvY2sgS2Z0LiBBbHRhbGFu5353b3MgU3pvbGdhbHRhdGFzaSBGZWx0ZXRlbGVpYmVuIGxlaXJ0IGVsamFyYXNvayBh5354bGFwamFuIGtlc3p1bHQuIEEgaGl0ZWxlc2l0ZXMgZm9seWFtYXRhdCBhIE5ldExv5355Y2sgS2Z0LiB0ZXJtZWtmZWxlbG9zc2VnLWJpenRvc2l0YXNhIHZlZGkuIEEgZGln5356aXRhbGlzIGFsYWlyYXMgZWxmb2dhZGFzYW5hayBmZWx0ZXRlbGUgYXogZWxvaXJ05357IGVsbGVub3J6ZXNpIGVsamFyYXMgbWVndGV0ZWxlLiBBeiBlbGphcmFzIGxlaXJh5358c2EgbWVndGFsYWxoYXRvIGEgTmV0TG9jayBLZnQuIEludGVybmV0IGhvbmxhcGph5359biBhIGh0dHBzOi8vd3d3Lm5ldGxvY2submV0L2RvY3MgY2ltZW4gdmFneSBrZXJo5360ZXRvIGF6IGVsbGVub3J6ZXNAbmV0bG9jay5uZXQgZS1tYWlsIGNpbWVuLiBJTVBP5361UlRBTlQhIFRoZSBpc3N1YW5jZSBhbmQgdGhlIHVzZSBvZiB0aGlzIGNlcnRpZmlj5362YXRlIGlzIHN1YmplY3QgdG8gdGhlIE5ldExvY2sgQ1BTIGF2YWlsYWJsZSBhdCBo5363dHRwczovL3d3dy5uZXRsb2NrLm5ldC9kb2NzIG9yIGJ5IGUtbWFpbCBhdCBjcHNA5364bmV0bG9jay5uZXQuMA0GCSqGSIb3DQEBBAUAA4GBAATbrowXr/gOkDFOzT4JwG065365sPgzTEdM43WIEJessDgVkcYplswhwG08pXTP2IKlOcNl40JwuyKQ433bNXbhoLXa5366n3BukxowOR0w2y7jfLKRstE3Kfq51hdcR0/jHTjrn9V7lagonhVK0dHQKwCXoOKS5367NitjrFgBazMpUIaD8QFI5368-----END CERTIFICATE-----53695370# 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-----5378MIIC5zCCAlACAQEwDQYJKoZIhvcNAQEFBQAwgbsxJDAiBgNVBAcTG1ZhbGlDZXJ05379IFZhbGlkYXRpb24gTmV0d29yazEXMBUGA1UEChMOVmFsaUNlcnQsIEluYy4xNTAz5380BgNVBAsTLFZhbGlDZXJ0IENsYXNzIDMgUG9saWN5IFZhbGlkYXRpb24gQXV0aG9y5381aXR5MSEwHwYDVQQDExhodHRwOi8vd3d3LnZhbGljZXJ0LmNvbS8xIDAeBgkqhkiG53829w0BCQEWEWluZm9AdmFsaWNlcnQuY29tMB4XDTk5MDYyNjAwMjIzM1oXDTE5MDYy5383NjAwMjIzM1owgbsxJDAiBgNVBAcTG1ZhbGlDZXJ0IFZhbGlkYXRpb24gTmV0d29y5384azEXMBUGA1UEChMOVmFsaUNlcnQsIEluYy4xNTAzBgNVBAsTLFZhbGlDZXJ0IENs5385YXNzIDMgUG9saWN5IFZhbGlkYXRpb24gQXV0aG9yaXR5MSEwHwYDVQQDExhodHRw5386Oi8vd3d3LnZhbGljZXJ0LmNvbS8xIDAeBgkqhkiG9w0BCQEWEWluZm9AdmFsaWNl5387cnQuY29tMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDjmFGWHOjVsQaBalfD5388cnWTq8+epvzzFlLWLU2fNUSoLgRNB0mKOCn1dzfnt6td3zZxFJmP3MKS8edgkpfs53892Ejcv8ECIMYkpChMMFp2bbFc893enhBxoYjHW5tBbcqwuI4V7q0zK89HBFx1cQqY5390JJgpp0lZpd34t0NiYfPT4tBVPwIDAQABMA0GCSqGSIb3DQEBBQUAA4GBAFa7AliE5391Zwgs3x/be0kz9dNnnfS0ChCzycUs4pJqcXgn8nCDQtM+z6lU9PHYkhaM0QTLS6vJ5392n0WuPIqpsHEzXcjFV9+vqDWzf4mH6eglkrh/hXqu1rweN1gqZ8mRzyqBPu3GOd/A5393PhmcGcwTTYJBtYze4D1gCCAPRX5ron+jjBXu5394-----END CERTIFICATE-----53955396# 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-----5404MIIC5zCCAlACAQEwDQYJKoZIhvcNAQEFBQAwgbsxJDAiBgNVBAcTG1ZhbGlDZXJ05405IFZhbGlkYXRpb24gTmV0d29yazEXMBUGA1UEChMOVmFsaUNlcnQsIEluYy4xNTAz5406BgNVBAsTLFZhbGlDZXJ0IENsYXNzIDEgUG9saWN5IFZhbGlkYXRpb24gQXV0aG9y5407aXR5MSEwHwYDVQQDExhodHRwOi8vd3d3LnZhbGljZXJ0LmNvbS8xIDAeBgkqhkiG54089w0BCQEWEWluZm9AdmFsaWNlcnQuY29tMB4XDTk5MDYyNTIyMjM0OFoXDTE5MDYy5409NTIyMjM0OFowgbsxJDAiBgNVBAcTG1ZhbGlDZXJ0IFZhbGlkYXRpb24gTmV0d29y5410azEXMBUGA1UEChMOVmFsaUNlcnQsIEluYy4xNTAzBgNVBAsTLFZhbGlDZXJ0IENs5411YXNzIDEgUG9saWN5IFZhbGlkYXRpb24gQXV0aG9yaXR5MSEwHwYDVQQDExhodHRw5412Oi8vd3d3LnZhbGljZXJ0LmNvbS8xIDAeBgkqhkiG9w0BCQEWEWluZm9AdmFsaWNl5413cnQuY29tMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDYWYJ6ibiWuqYvaG9Y5414LqdUHAZu9OqNSLwxlBfw8068srg1knaw0KWlAdcAAxIiGQj4/xEjm84H9b9pGib+5415TunRf50sQB1ZaG6m+FiwnRqP0z/x3BkGgagO4DrdyFNFCQbmD3DD+kCmDuJWBQ8Y5416TfwggtFzVXSNdnKgHZ0dwN0/cQIDAQABMA0GCSqGSIb3DQEBBQUAA4GBAFBoPUn05417LBwGlN+VYH+Wexf+T3GtZMjdd9LvWVXoP+iOBSoh8gfStadS/pyxtuJbdxdA6nLW5418I8sogTLDAHkY7FkXicnGah5xyf23dKUlRWnFSKsZ4UWKJWsZ7uW7EvV/96aNUcPw5419nXS3qT6gpf+2SQMT2iLM7XGCK5nPOrf1LXLI5420-----END CERTIFICATE-----54215422# 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-----5430MIICgjCCAeugAwIBAgIBBDANBgkqhkiG9w0BAQQFADBTMQswCQYDVQQGEwJVUzEc5431MBoGA1UEChMTRXF1aWZheCBTZWN1cmUgSW5jLjEmMCQGA1UEAxMdRXF1aWZheCBT5432ZWN1cmUgZUJ1c2luZXNzIENBLTEwHhcNOTkwNjIxMDQwMDAwWhcNMjAwNjIxMDQw5433MDAwWjBTMQswCQYDVQQGEwJVUzEcMBoGA1UEChMTRXF1aWZheCBTZWN1cmUgSW5j5434LjEmMCQGA1UEAxMdRXF1aWZheCBTZWN1cmUgZUJ1c2luZXNzIENBLTEwgZ8wDQYJ5435KoZIhvcNAQEBBQADgY0AMIGJAoGBAM4vGbwXt3fek6lfWg0XTzQaDJj0ItlZ1MRo5436RvC0NcWFAyDGr0WlIVFFQesWWDYyb+JQYmT5/VGcqiTZ9J2DKocKIdMSODRsjQBu5437WqDZQu4aIZX5UkxVWsUPOE9G+m34LjXWHXzr4vCwdYDIqROsvojvOm6rXyo4YgKw5438Env+j6YDAgMBAAGjZjBkMBEGCWCGSAGG+EIBAQQEAwIABzAPBgNVHRMBAf8EBTAD5439AQH/MB8GA1UdIwQYMBaAFEp4MlIR21kWNl7fwRQ2QGpHfEyhMB0GA1UdDgQWBBRK5440eDJSEdtZFjZe38EUNkBqR3xMoTANBgkqhkiG9w0BAQQFAAOBgQB1W6ibAxHm6VZM5441zfmpTMANmvPMZWnmJXbMWbfWVMMdzZmsGd20hdXgPfxiIKeES1hl8eL5lSE/9dR+5442WB5Hh1Q+WKG1tfgq73HnvMP2sUlG4tega+VWeponmHxGYhTnyfxuAxJ5gDgdSIKN5443/Bf+KpYrtWKmpj29f5JZzVoqgrI3eQ==5444-----END CERTIFICATE-----54455446# 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-----5454MIICkDCCAfmgAwIBAgIBATANBgkqhkiG9w0BAQQFADBaMQswCQYDVQQGEwJVUzEc5455MBoGA1UEChMTRXF1aWZheCBTZWN1cmUgSW5jLjEtMCsGA1UEAxMkRXF1aWZheCBT5456ZWN1cmUgR2xvYmFsIGVCdXNpbmVzcyBDQS0xMB4XDTk5MDYyMTA0MDAwMFoXDTIw5457MDYyMTA0MDAwMFowWjELMAkGA1UEBhMCVVMxHDAaBgNVBAoTE0VxdWlmYXggU2Vj5458dXJlIEluYy4xLTArBgNVBAMTJEVxdWlmYXggU2VjdXJlIEdsb2JhbCBlQnVzaW5l5459c3MgQ0EtMTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAuucXkAJlsTRVPEnC5460UdXfp9E3j9HngXNBUmCbnaEXJnitx7HoJpQytd4zjTov2/KaelpzmKNc6fuKcxtc546158O/gGzNqfTWK8D3+ZmqY6KxRwIP1ORROhI8bIpaVIRw28HFkM9yRcuoWcDNM50/5462o5brhTMhHD4ePmBudpxnhcXIw2ECAwEAAaNmMGQwEQYJYIZIAYb4QgEBBAQDAgAH5463MA8GA1UdEwEB/wQFMAMBAf8wHwYDVR0jBBgwFoAUvqigdHJQa0S3ySPY+6j/s1dr5464aGwwHQYDVR0OBBYEFL6ooHRyUGtEt8kj2Puo/7NXa2hsMA0GCSqGSIb3DQEBBAUA5465A4GBADDiAVGqx+pf2rnQZQ8w1j7aDRRJbpGTJxQx78T3LUX47Me/okENI7SS+RkA5466Z70Br83gcfxaz2TE4JaY0KNA4gGK7ycH8WUBikQtBmV1UsCGECAhX2xrD2yuCRyv54678qIYNMR1pHMc8Y3c7635s3a0kr/clRAevsvIO1qEYBlWlKlV5468-----END CERTIFICATE-----54695470# 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-----5478MIIDJzCCApCgAwIBAgIBATANBgkqhkiG9w0BAQQFADCBzjELMAkGA1UEBhMCWkEx5479FTATBgNVBAgTDFdlc3Rlcm4gQ2FwZTESMBAGA1UEBxMJQ2FwZSBUb3duMR0wGwYD5480VQQKExRUaGF3dGUgQ29uc3VsdGluZyBjYzEoMCYGA1UECxMfQ2VydGlmaWNhdGlv5481biBTZXJ2aWNlcyBEaXZpc2lvbjEhMB8GA1UEAxMYVGhhd3RlIFByZW1pdW0gU2Vy5482dmVyIENBMSgwJgYJKoZIhvcNAQkBFhlwcmVtaXVtLXNlcnZlckB0aGF3dGUuY29t5483MB4XDTk2MDgwMTAwMDAwMFoXDTIwMTIzMTIzNTk1OVowgc4xCzAJBgNVBAYTAlpB5484MRUwEwYDVQQIEwxXZXN0ZXJuIENhcGUxEjAQBgNVBAcTCUNhcGUgVG93bjEdMBsG5485A1UEChMUVGhhd3RlIENvbnN1bHRpbmcgY2MxKDAmBgNVBAsTH0NlcnRpZmljYXRp5486b24gU2VydmljZXMgRGl2aXNpb24xITAfBgNVBAMTGFRoYXd0ZSBQcmVtaXVtIFNl5487cnZlciBDQTEoMCYGCSqGSIb3DQEJARYZcHJlbWl1bS1zZXJ2ZXJAdGhhd3RlLmNv5488bTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA0jY2aovXwlue2oFBYo847kkE5489VdbQ7xwblRZH7xhINTpS9CtqBo87L+pW46+GjZ4X9560ZXUCTe/LCaIhUdib0GfQ5490ug2SBhRz1JPLlyoAnFxODLz6FVL88kRu2hFKbgifLy3j+ao6hnO2RlNYyIkFvYMR5491uHM/qgeN9EJN50CdHDcCAwEAAaMTMBEwDwYDVR0TAQH/BAUwAwEB/zANBgkqhkiG54929w0BAQQFAAOBgQAmSCwWwlj66BZ0DKqqX1Q/8tfJeGBeXm43YyJ3Nn6yF8Q0ufUI5493hfzJATj/Tb7yFkJD57taRvvBxhEf8UqwKEbJw8RCfbz6q1lu1bdRiBHjpIUZa4JM5494pAwSremkrj/xw0llmozFyD4lt5SZu5IycQfwhl7tUCemDaYj+bvLpgcUQg==5495-----END CERTIFICATE-----54965497# 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:c4:2f:8f:a4:01:8a:f4:38:1d:c5:4c:fa:a8:44:50:46:1e:ed:09:45:4d:e95504-----BEGIN CERTIFICATE-----5505MIIDEzCCAnygAwIBAgIBATANBgkqhkiG9w0BAQQFADCBxDELMAkGA1UEBhMCWkEx5506FTATBgNVBAgTDFdlc3Rlcm4gQ2FwZTESMBAGA1UEBxMJQ2FwZSBUb3duMR0wGwYD5507VQQKExRUaGF3dGUgQ29uc3VsdGluZyBjYzEoMCYGA1UECxMfQ2VydGlmaWNhdGlv5508biBTZXJ2aWNlcyBEaXZpc2lvbjEZMBcGA1UEAxMQVGhhd3RlIFNlcnZlciBDQTEm5509MCQGCSqGSIb3DQEJARYXc2VydmVyLWNlcnRzQHRoYXd0ZS5jb20wHhcNOTYwODAx5510MDAwMDAwWhcNMjAxMjMxMjM1OTU5WjCBxDELMAkGA1UEBhMCWkExFTATBgNVBAgT5511DFdlc3Rlcm4gQ2FwZTESMBAGA1UEBxMJQ2FwZSBUb3duMR0wGwYDVQQKExRUaGF35512dGUgQ29uc3VsdGluZyBjYzEoMCYGA1UECxMfQ2VydGlmaWNhdGlvbiBTZXJ2aWNl5513cyBEaXZpc2lvbjEZMBcGA1UEAxMQVGhhd3RlIFNlcnZlciBDQTEmMCQGCSqGSIb35514DQEJARYXc2VydmVyLWNlcnRzQHRoYXd0ZS5jb20wgZ8wDQYJKoZIhvcNAQEBBQAD5515gY0AMIGJAoGBANOkUG7I/1Zr5s9dtuoMaHVHoqrC2oQl/Kj0R1HahbUgdJSGHg915516yekIYfUGbTBuFRkC6VLAYttNmZ7iagxEOM3+vuNkCXDF/rFrKbYvScg71CcEJRCX5517L+eQbcAoQpnXTEPew/UhbVSfXcNY4cDk2VuwuNy0e982OsK1ZiIS1ocNAgMBAAGj5518EzARMA8GA1UdEwEB/wQFMAMBAf8wDQYJKoZIhvcNAQEEBQADgYEAB/pMaVz7lcxG55197oWDTSEwjsrZqG9JGubaUeNgcGyEYRGhGshIPllDfU+VPaGLtwtimHp1it2ITk6e5520QNuozDJ0uW8NxuOzRAvZim+aKZuZGCg70eNAKJpaPNW15yAbi8qkq43pUdniTCxZ5521qdq5snUb9kLy78fyGPmJvKP/iiMucEc=5522-----END CERTIFICATE-----55235524# 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-----5532MIICPDCCAaUCEHC65B0Q2Sk0tjjKewPMur8wDQYJKoZIhvcNAQECBQAwXzELMAkG5533A1UEBhMCVVMxFzAVBgNVBAoTDlZlcmlTaWduLCBJbmMuMTcwNQYDVQQLEy5DbGFz5534cyAzIFB1YmxpYyBQcmltYXJ5IENlcnRpZmljYXRpb24gQXV0aG9yaXR5MB4XDTk25535MDEyOTAwMDAwMFoXDTI4MDgwMTIzNTk1OVowXzELMAkGA1UEBhMCVVMxFzAVBgNV5536BAoTDlZlcmlTaWduLCBJbmMuMTcwNQYDVQQLEy5DbGFzcyAzIFB1YmxpYyBQcmlt5537YXJ5IENlcnRpZmljYXRpb24gQXV0aG9yaXR5MIGfMA0GCSqGSIb3DQEBAQUAA4GN5538ADCBiQKBgQDJXFme8huKARS0EN8EQNvjV69qRUCPhAwL0TPZ2RHP7gJYHyX3KqhE5539BarsAx94f56TuZoAqiN91qyFomNFx3InzPRMxnVx0jnvT0Lwdd8KkMaOIG+YD/is5540I19wKTakyYbnsZogy1Olhec9vn2a/iRFM9x2Fe0PonFkTGUugWhFpwIDAQABMA0G5541CSqGSIb3DQEBAgUAA4GBALtMEivPLCYATxQT3ab7/AoRhIzzKBxnki98tsX63/Do5542lbwdj2wsqFHMc9ikwFPwTtYmwHYBV4GSXiHx0bH/59AhWM1pF+NEHJwZRDmJXNyc5543AA9WjQKZ7aKQRUzkuxCkPfAyAw7xzvjoyVGM5mKf5p/AfbdynMk2OmufTqj/ZA1k5544-----END CERTIFICATE-----55455546# 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-----5554MIICPDCCAaUCEDyRMcsf9tAbDpq40ES/Er4wDQYJKoZIhvcNAQEFBQAwXzELMAkG5555A1UEBhMCVVMxFzAVBgNVBAoTDlZlcmlTaWduLCBJbmMuMTcwNQYDVQQLEy5DbGFz5556cyAzIFB1YmxpYyBQcmltYXJ5IENlcnRpZmljYXRpb24gQXV0aG9yaXR5MB4XDTk25557MDEyOTAwMDAwMFoXDTI4MDgwMjIzNTk1OVowXzELMAkGA1UEBhMCVVMxFzAVBgNV5558BAoTDlZlcmlTaWduLCBJbmMuMTcwNQYDVQQLEy5DbGFzcyAzIFB1YmxpYyBQcmlt5559YXJ5IENlcnRpZmljYXRpb24gQXV0aG9yaXR5MIGfMA0GCSqGSIb3DQEBAQUAA4GN5560ADCBiQKBgQDJXFme8huKARS0EN8EQNvjV69qRUCPhAwL0TPZ2RHP7gJYHyX3KqhE5561BarsAx94f56TuZoAqiN91qyFomNFx3InzPRMxnVx0jnvT0Lwdd8KkMaOIG+YD/is5562I19wKTakyYbnsZogy1Olhec9vn2a/iRFM9x2Fe0PonFkTGUugWhFpwIDAQABMA0G5563CSqGSIb3DQEBBQUAA4GBABByUqkFFBkyCEHwxWsKzH4PIRnN5GfcX6kb5sroc50i55642JhucwNhkcV8sEVAbkSdjbCxlnRhLQ2pRdKkkirWmnWXbj9T/UWZYB2oK0z5XqcJ55652HUw19JlYD1n1khVdWk/kfVIC0dpImmClr7JyDiGSnoscxlIaU5rfGW/D/xwzoiQ5566-----END CERTIFICATE-----55675568# 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-----5576MIIDAjCCAmsCEH3Z/gfPqB63EHln+6eJNMYwDQYJKoZIhvcNAQEFBQAwgcExCzAJ5577BgNVBAYTAlVTMRcwFQYDVQQKEw5WZXJpU2lnbiwgSW5jLjE8MDoGA1UECxMzQ2xh5578c3MgMyBQdWJsaWMgUHJpbWFyeSBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eSAtIEcy5579MTowOAYDVQQLEzEoYykgMTk5OCBWZXJpU2lnbiwgSW5jLiAtIEZvciBhdXRob3Jp5580emVkIHVzZSBvbmx5MR8wHQYDVQQLExZWZXJpU2lnbiBUcnVzdCBOZXR3b3JrMB4X5581DTk4MDUxODAwMDAwMFoXDTI4MDgwMTIzNTk1OVowgcExCzAJBgNVBAYTAlVTMRcw5582FQYDVQQKEw5WZXJpU2lnbiwgSW5jLjE8MDoGA1UECxMzQ2xhc3MgMyBQdWJsaWMg5583UHJpbWFyeSBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eSAtIEcyMTowOAYDVQQLEzEo5584YykgMTk5OCBWZXJpU2lnbiwgSW5jLiAtIEZvciBhdXRob3JpemVkIHVzZSBvbmx55585MR8wHQYDVQQLExZWZXJpU2lnbiBUcnVzdCBOZXR3b3JrMIGfMA0GCSqGSIb3DQEB5586AQUAA4GNADCBiQKBgQDMXtERXVxp0KvTuWpMmR9ZmDCOFoUgRm1HP9SFIIThbbP45587pO0M8RcPO/mn+SXXwc+EY/J8Y8+iR/LGWzOOZEAEaMGAuWQcRXfH2G71lSk8UOg0558813gfqLptQ5GVj0VXXn7F+8qkBOvqlzdUMG+7AUcyM83cV5tkaWH4mx0ciU9cZwID5589AQABMA0GCSqGSIb3DQEBBQUAA4GBAFFNzb5cy5gZnBWyATl4Lk0PZ3BwmcYQWpSk5590U01UbSuvDV1Ai2TT1+7eVmGSX6bEHRBhNtMsJzzoKQm5EWR0zLVznxxIqbxhAe7i5591F6YM40AIOw7n60RzKprxaZLvcRTDOaxxp5EJb+RxBrO6WVcmeQD2+A2iMzAo1KpY5592oJ2daZH95593-----END CERTIFICATE-----55945595# 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-----5603MIICWjCCAcMCAgGlMA0GCSqGSIb3DQEBBAUAMHUxCzAJBgNVBAYTAlVTMRgwFgYD5604VQQKEw9HVEUgQ29ycG9yYXRpb24xJzAlBgNVBAsTHkdURSBDeWJlclRydXN0IFNv5605bHV0aW9ucywgSW5jLjEjMCEGA1UEAxMaR1RFIEN5YmVyVHJ1c3QgR2xvYmFsIFJv5606b3QwHhcNOTgwODEzMDAyOTAwWhcNMTgwODEzMjM1OTAwWjB1MQswCQYDVQQGEwJV5607UzEYMBYGA1UEChMPR1RFIENvcnBvcmF0aW9uMScwJQYDVQQLEx5HVEUgQ3liZXJU5608cnVzdCBTb2x1dGlvbnMsIEluYy4xIzAhBgNVBAMTGkdURSBDeWJlclRydXN0IEds5609b2JhbCBSb290MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCVD6C28FCc6HrH5610iM3dFw4usJTQGz0O9pTAipTHBsiQl8i4ZBp6fmw8U+E3KHNgf7KXUwefU/ltWJTS5611r41tiGeA5u2ylc9yMcqlHHK6XALnZELn+aks1joNrI1CqiQBOeacPwGFVw1Yh0X4561204Wqk2kmhXBIgD8SFcd5tB8FLztimQIDAQABMA0GCSqGSIb3DQEBBAUAA4GBAG3r5613GwnpXtlR22ciYaQqPEh346B8pt5zohQDhT37qw4wxYMWM4ETCJ57NE7fQMh017l956143PR2VX2bY1QY6fDq81yx2YtCHrnAlU66+tXifPVoYb+O7AWXX1uw16OFNMQkpw0P5615lZPvy5TYnh+dXIVtx6quTx8itc2VrbqnzPmrC3p/5616-----END CERTIFICATE-----
modified:requests/certs.py+7 added-6 removed
9 unmodified lines
10If you are packaging Requests, e.g., for a Linux distribution or a managed11environment, you can change the definition of where() to return a separately12packaged CA bundle.13"""1414import os.path1516try:17 from certifi import where18except 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')2318def where():19 """Return the preferred certificate bundle."""20 # vendored bundle inside Requests21 return os.path.join(os.path.dirname(__file__), 'cacert.pem')2224if __name__ == '__main__':25 print(where())
modified:requests/compat.py+3 added-56 removed
19 unmodified lines
2021#: Python 3.x?22is_py3 = (_ver[0] == 3)2324#: Python 3.0.x25is_py30 = (is_py3 and _ver[1] == 0)2627#: Python 3.1.x28is_py31 = (is_py3 and _ver[1] == 1)2930#: Python 3.2.x31is_py32 = (is_py3 and _ver[1] == 2)3233#: Python 3.3.x34is_py33 = (is_py3 and _ver[1] == 3)3536#: Python 3.4.x37is_py34 = (is_py3 and _ver[1] == 4)3839#: Python 2.7.x40is_py27 = (is_py2 and _ver[1] == 7)4142#: Python 2.6.x43is_py26 = (is_py2 and _ver[1] == 6)4445#: Python 2.5.x46is_py25 = (is_py2 and _ver[1] == 5)4748#: Python 2.4.x49is_py24 = (is_py2 and _ver[1] == 4) # I'm assuming this is not by choice.505152# ---------53# Platforms54# ---------555657# Syntax sugar.58_ver = sys.version.lower()5960is_pypy = ('pypy' in _ver)61is_jython = ('jython' in _ver)62is_ironpython = ('iron' in _ver)6364# Assume CPython, if nothing else.65is_cpython = not any((is_pypy, is_jython, is_ironpython))6667# Windows-based system.68is_windows = 'win32' in str(sys.platform).lower()6970# Standard Linux 2+ system.71is_linux = ('linux' in str(sys.platform).lower())72is_osx = ('darwin' in str(sys.platform).lower())73is_hpux = ('hpux' in str(sys.platform).lower()) # Complete guess.74is_solaris = ('solar==' in str(sys.platform).lower()) # Complete guess.7524try:25 import simplejson as json78except ImportError:26except (ImportError, SyntaxError):27 # simplejson does not support Python 3.2, it throws a SyntaxError28 # because of u'...' Unicode literals.29 import json3031# ---------32# Specifics
6 unmodified lines
39 import cookielib40 from Cookie import Morsel41 from StringIO import StringIO42 from .packages.urllib3.packages.ordered_dict import OrderedDict93 from httplib import IncompleteRead4344 builtin_str = str45 bytes = str46 str = unicode47 basestring = basestring48 numeric_types = (int, long, float)4910150elif 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 IncompleteRead5758 builtin_str = str59 str = str60 bytes = bytes
2 unmodified lines
modified:requests/cookies.py+80 added-48 removed
4 unmodified lines
56requests.utils imports from here, so be careful with imports.7"""89import copy10import time11import calendar12import collections13from .compat import cookielib, urlparse, urlunparse, Morsel
129 unmodified lines
143 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))154155 for domain, path, name in clearables:156 cookiejar.clear(domain, path, name)157
3 unmodified lines
161 Use .get and .set and include domain and path args in order to be more specific."""162163164class 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.167168 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.171167 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``.176172 Caution: dictionary operations that are normally O(1) may be O(n).173177 Unlike a regular CookieJar, this class is pickleable.175 """178179 .. 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.185186 .. warning:: operation is O(n), not O(1)."""187 try:188 return self._find_no_duplicates(name, domain, path)189 except KeyError:190 return default
14 unmodified lines
205 self.set_cookie(c)206 return c207208 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.name213214 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())218219 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.value224225 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())229230 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.value235236 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())242243 def list_domains(self):244 """Utility method to list all the domains in the jar."""
21 unmodified lines
266 domains.append(cookie.domain)267 return False # there is only one domain in jar268269 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 dictionary279280 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.284285 .. warning:: operation is O(n), not O(1)."""286287 return self._find_no_duplicates(name)288289 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."""293294 self.set(name, value)295296 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)300301 def set_cookie(self, cookie, *args, **kwargs):302 if hasattr(cookie.value, 'startswith') and cookie.value.startswith('"') and cookie.value.endswith('"'):
3 unmodified lines
306 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)313314 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 line
325326 raise KeyError('name=%r, domain=%r, path=%r' % (name, domain, path))327328 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 lines
363 new_cj.update(self)364 return new_cj365366367def _copy_cookie_jar(jar):368 if jar is None:369 return None370371 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_jar380381382def create_cookie(name, value, **kwargs):383 """Make a cookie from underspecified parameters.384385 By default, the pair of `name` and `value` will be set for the domain ''
32 unmodified lines
418 """Convert a Morsel object into a Cookie containing the one k/v pair."""419420 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 lines
472 :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 476477 if isinstance(cookies, dict):478 cookiejar = cookiejar_from_dict(479 cookies, cookiejar=cookiejar, overwrite=False)480 elif isinstance(cookies, cookielib.CookieJar):
7 unmodified lines
modified:requests/exceptions.py+52 added-6 removed
12 unmodified lines
13class RequestException(IOError):14 """There was an ambiguous exception that occurred while handling your15 request."""1617 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)282930class HTTPError(RequestException):31 """An HTTP error occurred."""3221 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)332634class ConnectionError(RequestException):35 """A Connection error occurred."""3637
5 unmodified lines
43 """An SSL error occurred."""444546class Timeout(RequestException):40 """The request timed out."""47 """The request timed out.4849 Catching this error will catch both50 :exc:`~requests.exceptions.ConnectTimeout` and51 :exc:`~requests.exceptions.ReadTimeout` errors.52 """535455class ConnectTimeout(ConnectionError, Timeout):56 """The request timed out while trying to connect to the remote server.5758 Requests that produced this error are safe to retry.59 """606162class ReadTimeout(Timeout):63 """The server did not send any data in the allotted amount of time."""646566class URLRequired(RequestException):67 """A valid URL is required to make a request."""6869
18 unmodified lines
888990class ContentDecodingError(RequestException, BaseHTTPError):91 """Failed to decode response content"""929394class StreamConsumedError(RequestException, TypeError):95 """The content for this response was already consumed"""969798class RetryError(RequestException):99 """Custom retries logic failed"""100101102# Warnings103104105class RequestsWarning(Warning):106 """Base warning for Requests."""107 pass108109110class FileModeWarning(RequestsWarning, DeprecationWarning):111 """112 A file was opened in text mode, but Requests determined its binary length.113 """114 pass
modified:requests/hooks.py+3 added-14 removed
10 unmodified lines
11``response``:12 The response generated from a Request.1314"""151615HOOKS = ['response']161917def default_hooks():21 hooks = {}22 for event in HOOKS:23 hooks[event] = []24 return hooks18 return dict((event, []) for event in HOOKS)1920# TODO: response is the only one212223def dispatch_hook(key, hooks, hook_data, **kwargs):24 """Dispatches a hook dictionary on a given piece of data."""3125 hooks = hooks or dict()3334 if key in hooks:35 hooks = hooks.get(key)3626 hooks = hooks.get(key)27 if hooks:28 if hasattr(hooks, '__call__'):29 hooks = [hooks]3930 for hook in hooks:31 _hook_data = hook(hook_data, **kwargs)32 if _hook_data is not None:33 hook_data = _hook_data4434 return hook_data
modified:requests/models.py+158 added-88 removed
6 unmodified lines
7This module contains the primary objects that power Requests.8"""910import collections11import logging11import datetime1213from io import BytesIO, UnsupportedOperation14from .hooks import default_hooks15from .structures import CaseInsensitiveDict1617from .auth import HTTPBasicAuth19from .cookies import cookiejar_from_dict, get_cookie_header18from .cookies import cookiejar_from_dict, get_cookie_header, _copy_cookie_jar19from .packages.urllib3.fields import RequestField20from .packages.urllib3.filepost import encode_multipart_formdata21from .packages.urllib3.util import parse_url23from .packages.urllib3.exceptions import DecodeError22from .packages.urllib3.exceptions import (23 DecodeError, ReadTimeoutError, ProtocolError, LocationParseError)24from .exceptions import (25 HTTPError, RequestException, MissingSchema, InvalidURL,26 ChunkedEncodingError, ContentDecodingError)25 HTTPError, MissingSchema, InvalidURL, ChunkedEncodingError,26 ContentDecodingError, ConnectionError, StreamConsumedError)27from .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)31from .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)34from .compat import json as complexjson35from .status_codes import codes3637#: The set of HTTP status codes that indicate an automatically38#: processable redirect.39REDIRECT_STATI = (40 codes.moved, # 30141 codes.found, # 30242 codes.other, # 30343 codes.temporary_redirect, # 30744 codes.permanent_redirect, # 30845)4647DEFAULT_REDIRECT_LIMIT = 3048CONTENT_CHUNK_SIZE = 10 * 102449ITER_CHUNK_SIZE = 5125038log = logging.getLogger(__name__)514052class RequestEncodingMixin(object):53 @property54 def path_url(self):55 """Build the path URL to use."""
86 unmodified lines
142 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)146140 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()151152 rf = RequestField(name=k, data=fdata, filename=fn, headers=fh)153 rf.make_multipart(content_type=ft)154 new_fields.append(rf)155156 body, content_type = encode_multipart_formdata(new_fields)
33 unmodified lines
190 :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 lines
205 >>> req.prepare()206 <PreparedRequest [GET]>207208 """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):211212 # Default empty dicts for dict params.213 data = [] if data is None else data214 files = [] if files is None else files
9 unmodified lines
224 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 lines
241 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 lines
285 #: dictionary of callback hooks, for internal usage.286 self.hooks = default_hooks()287288 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."""291292 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)298299 # Note that prepare_auth must be last to enable authentication schemes300 # such as OAuth to work on a fully prepared request.301302 # This MUST go after prepare_auth. Authenticators could add a hook
5 unmodified lines
308 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 p317318 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())323324 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)335328 # 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 return342343 # 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)348349 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'))352353 raise MissingSchema(error)354355 if not host:356 raise InvalidURL("Invalid URL %r: No host supplied" % url)357358 # Only want to apply IDNA to the hostname
25 unmodified lines
384 query = query.encode('utf-8')385 if isinstance(fragment, str):386 fragment = fragment.encode('utf-8')387388 if isinstance(params, (str, bytes)):389 params = to_native_string(params)390391 enc_params = self._encode_params(params)392 if enc_params:393 if query:394 query = '%s&%s' % (query, enc_params)
10 unmodified lines
405 self.headers = CaseInsensitiveDict((to_native_string(name), value) for name, value in headers.items())406 else:407 self.headers = CaseInsensitiveDict()408391 def prepare_body(self, data, files):409 def prepare_body(self, data, files, json=None):410 """Prepares the given HTTP body data."""411412 # Check if file, fo, generator, iterator.413 # If not, run through normal process.
2 unmodified lines
416 body = None417 content_type = None418 length = None419420 if not data and json is not None:421 content_type = 'application/json'422 body = complexjson.dumps(json)423424 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 ])428429 try:430 length = super_len(data)
5 unmodified lines
436437 if files:438 raise NotImplementedError('Streamed bodies and files are mutually exclusive.')439420 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 lines
447 (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'455456 self.prepare_content_length(body)457458 # 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_type461462 self.body = body463
5 unmodified lines
469 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'475476 def prepare_auth(self, auth, url=''):477 """Prepares the given HTTP auth data."""
17 unmodified lines
495 # Recompute Content-Length496 self.prepare_content_length(self.body)497498 def prepare_cookies(self, cookies):479 """Prepares the given HTTP cookie data."""499 """Prepares the given HTTP cookie data.500501 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."""508509 if isinstance(cookies, cookielib.CookieJar):510 self._cookies = cookies511 else:512 self._cookies = cookiejar_from_dict(cookies)
3 unmodified lines
516 self.headers['Cookie'] = cookie_header517518 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])526527
2 unmodified lines
530 server's response to an HTTP request.531 """532533 __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 ]537538 def __init__(self):539 super(Response, self).__init__()540541 self._content = False542 self._content_consumed = False543520 #: Integer Code of responded HTTP Status.544 #: Integer Code of responded HTTP Status, e.g. 404 or 200.545 self.status_code = None546547 #: Case-insensitive Dictionary of Response Headers.548 #: For example, ``headers['content-encoding']`` will return the
15 unmodified lines
564 #: 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 = []567568 #: Textual reason of responded HTTP Status, e.g. "Not Found" or "OK".569 self.reason = None570571 #: A CookieJar of Cookies the server sent back.572 self.cookies = cookiejar_from_dict({})573574 #: 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)581582 #: The :class:`PreparedRequest <PreparedRequest>` object to which this583 #: is a response.584 self.request = None585586 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 lines
599 setattr(self, name, value)600601 # pickled objects do not have .raw602 setattr(self, '_content_consumed', True)603 setattr(self, 'raw', None)604605 def __repr__(self):606 return '<Response [%s]>' % (self.status_code)607
12 unmodified lines
620 @property621 def ok(self):622 try:623 self.raise_for_status()590 except RequestException:624 except HTTPError:625 return False626 return True627628 @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)634635 @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))639640 @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']644645 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.651652 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)655656 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 line
674 yield chunk675676 self._content_consumed = True677632 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)682683 stream_chunks = generate()684685 chunks = reused_chunks if self._content_consumed else stream_chunks686687 if decode_unicode:635 gen = stream_decode_response_unicode(gen, self)688 chunks = stream_decode_response_unicode(chunks, self)689637 return gen690 return chunks691639 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.696697 .. note:: This method is not reentrant safe.698 """699700 pending = None701647 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):703704 if pending is not None:705 chunk = pending + chunk652 lines = chunk.splitlines()706707 if delimiter:708 lines = chunk.split(delimiter)709 else:710 lines = chunk.splitlines()711712 if lines and lines[-1] and chunk and lines[-1][-1] == chunk[-1]:713 pending = lines.pop()714 else:715 pending = None
34 unmodified lines
750751 If Response.encoding is None, encoding will be guessed using752 ``chardet``.753696 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 lines
794 # 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)809810 @property811 def links(self):812 """Returns the parsed header links of the response, if any."""
17 unmodified lines
830831 http_error_msg = ''832833 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)835836 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)838839 if http_error_msg:840 raise HTTPError(http_error_msg, response=self)841842 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.845846 *Note: Should not normally need to be called explicitly.*847 """848 if not self._content_consumed:849 return self.raw.close()850851 return self.raw.release_conn()
modified:requests/sessions.py+214 added-87 removed
10 unmodified lines
11import os12from collections import Mapping13from datetime import datetime1415from .auth import _basic_auth_str15from .compat import cookielib, OrderedDict, urljoin, urlparse, builtin_str16from .compat import cookielib, OrderedDict, urljoin, urlparse17from .cookies import (18 cookiejar_from_dict, extract_cookies_to_jar, RequestsCookieJar, merge_cookies)18from .models import Request, PreparedRequest19from .models import Request, PreparedRequest, DEFAULT_REDIRECT_LIMIT20from .hooks import default_hooks, dispatch_hook20from .utils import to_key_val_list, default_headers21from .exceptions import TooManyRedirects, InvalidSchema21from .utils import to_key_val_list, default_headers, to_native_string22from .exceptions import (23 TooManyRedirects, InvalidSchema, ChunkedEncodingError, ContentDecodingError)24from .packages.urllib3._collections import RecentlyUsedContainer25from .structures import CaseInsensitiveDict2627from .adapters import HTTPAdapter2826from .utils import requote_uri, get_environ_proxies, get_netrc_auth29from .utils import (30 requote_uri, get_environ_proxies, get_netrc_auth, should_bypass_proxies,31 get_auth_from_url32)3334from .status_codes import codes29REDIRECT_STATI = (30 codes.moved, # 30131 codes.found, # 30232 codes.other, # 30333 codes.temporary_moved, # 30734)35DEFAULT_REDIRECT_LIMIT = 303536# formerly defined here, reexposed here for backward compatibility37from .models import REDIRECT_STATI3839REDIRECT_CACHE_SIZE = 1000404142def 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 a
15 unmodified lines
6162 merged_setting = dict_class(to_key_val_list(session_setting))63 merged_setting.update(to_key_val_list(request_setting))6461 # 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]7071 return merged_setting7273
14 unmodified lines
888990class 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."""9495 i = 096 hist = [] # keep track of history9792 # ((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()10096 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_hist106107 try:108 resp.content # Consume socket so it can be released109 except (ChunkedEncodingError, ContentDecodingError, RuntimeError):110 resp.raw.read(decode_content=False)111112 if i >= self.max_redirects:113 raise TooManyRedirects('Exceeded %s redirects.' % self.max_redirects)114115 # Release the connection back into the pool.
10 unmodified lines
126 # The scheme should be lower case...127 parsed = urlparse(url)128 url = parsed.geturl()129116 # 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)137124 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.url142126 # 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 lines
157158 prepared_request.method = method159160 # 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']164165 prepared_request.body = None
3 unmodified lines
169 del headers['Cookie']170 except KeyError:171 pass172156 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)179180 # Rebuild auth and proxy information.181 proxies = self.rebuild_proxies(prepared_request, proxies)182 self.rebuild_auth(prepared_request, resp)183184 # Override the original request.185 req = prepared_request186187 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 )197198 extract_cookies_to_jar(self.cookies, prepared_request, resp.raw)199200 i += 1201 yield resp202203 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.url211212 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)217218 if (original_parsed.hostname != redirect_parsed.hostname):219 del headers['Authorization']220221 # .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)225226 return227228 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).235236 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 {}243244 if self.trust_env and not should_bypass_proxies(url):245 environ_proxies = get_environ_proxies(url)246247 proxy = environ_proxies.get(scheme)248249 if proxy:250 new_proxies.setdefault(scheme, environ_proxies[scheme])251252 if 'Proxy-Authorization' in headers:253 del headers['Proxy-Authorization']254255 try:256 username, password = get_auth_from_url(new_proxies[scheme])257 except KeyError:258 username, password = None, None259260 if username and password:261 headers['Proxy-Authorization'] = _basic_auth_str(username, password)262263 return new_proxies264265266class Session(SessionRedirectMixin):267 """A Requests session.268269 Provides cookie persistence, connection-pooling, and configuration.
2 unmodified lines
272273 >>> import requests274 >>> s = requests.Session()275 >>> s.get('http://httpbin.org/get')187 200276 <Response [200]>277278 Or as a context manager::279280 >>> with requests.Session() as s:281 >>> s.get('http://httpbin.org/get')282 <Response [200]>283 """284285 __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 ]290291 def __init__(self):292293 #: A case-insensitive dictionary of headers to be sent on each
4 unmodified lines
298 #: Default Authentication tuple or object to attach to299 #: :class:`Request <Request>`.300 self.auth = None301206 #: 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 = {}306307 #: Event-handling hooks.308 self.hooks = default_hooks()
15 unmodified lines
324 #: Maximum number of redirects allowed. If the request exceeds this325 #: limit, a :class:`TooManyRedirects` exception is raised.326 self.max_redirects = DEFAULT_REDIRECT_LIMIT327232 #: Should we trust the environment?328 #: Trust environment settings for proxy configuration, default329 #: authentication and similar.330 self.trust_env = True331332 #: A CookieJar containing all currently outstanding cookies set on this333 #: session. By default it is a
5 unmodified lines
339 self.adapters = OrderedDict()340 self.mount('https://', HTTPAdapter())341 self.mount('http://', HTTPAdapter())342343 # Only store 1000 redirects to prevent using infinite memory344 self.redirect_cache = RecentlyUsedContainer(REDIRECT_CACHE_SIZE)345346 def __enter__(self):347 return self348349 def __exit__(self, *args):
29 unmodified lines
379 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 lines
401 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.409410 :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 """334335 method = builtin_str(method)336441 # 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 line
454 prep = self.prepare_request(req)455456 proxies = proxies or {}457353 # 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 )461360 # Look for configuration.361 if not verify and verify is not False:362 verify = os.environ.get('REQUESTS_CA_BUNDLE')363364 # Curl compatibility.365 if not verify and verify is not False:366 verify = os.environ.get('CURL_CA_BUNDLE')367368 # 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)373462 # 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)469470 return resp471
26 unmodified lines
498499 kwargs.setdefault('allow_redirects', False)500 return self.request('HEAD', url, **kwargs)501417 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.504505 :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 """510425 return self.request('POST', url, data=data, **kwargs)511 return self.request('POST', url, data=data, json=json, **kwargs)512513 def put(self, url, data=None, **kwargs):514 """Sends a PUT request. Returns :class:`Response` object.515
36 unmodified lines
552 # Guard against that specific failure case.553 if not isinstance(request, PreparedRequest):554 raise ValueError('You can only send PreparedRequests.')555470 # 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_url563564 # 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.hooks568569 # Get the appropriate adapter to use570 adapter = self.get_adapter(url=request.url)571572 # Start time (approximately) of the request573 start = datetime.utcnow()574575 # Send the request576 r = adapter.send(request, **kwargs)577578 # Total elapsed time of the request (approximately)579 r.elapsed = datetime.utcnow() - start580581 # Response manipulation hooks582 r = dispatch_hook('response', hooks, r, **kwargs)583584 # Persist cookies585 if r.history:586587 # 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)590591 extract_cookies_to_jar(self.cookies, request, r.raw)592593 # 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)595596 # Resolve redirects if allowed.597 history = [resp for resp in gen] if allow_redirects else []598
2 unmodified lines
601 # 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 = history606607 if not stream:608 r.content609610 return r611612 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)620621 # 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'))626627 # 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)632633 return {'verify': verify, 'proxies': proxies, 'stream': stream,634 'cert': cert}635636 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():639640 if url.lower().startswith(prefix):641 return adapter
9 unmodified lines
651 def mount(self, prefix, adapter):652 """Registers a connection adapter to a prefix.653654 Adapters are sorted in descending order by key length."""655656 self.adapters[prefix] = adapter657 keys_to_move = [k for k in self.adapters if len(k) < len(prefix)]658659 for key in keys_to_move:660 self.adapters[key] = self.adapters.pop(key)661662 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 state666667 def __setstate__(self, state):668 redirect_cache = state.pop('redirect_cache', {})669 for attr, value in state.items():670 setattr(self, attr, value)671672 self.redirect_cache = RecentlyUsedContainer(REDIRECT_CACHE_SIZE)673 for redirect, to in redirect_cache.items():674 self.redirect_cache[redirect] = to675676677def session():678 """Returns a :class:`Session` for context-management."""679680 return Session()
modified:requests/status_codes.py+4 added-2 removed
28 unmodified lines
29 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.03536 # Client Error.37 400: ('bad_request', 'bad'),38 401: ('unauthorized',),
38 unmodified lines
77 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}8384codes = LookupDict(name='status_codes')8584for (code, titles) in list(_codes.items()):86for 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 lines
7Data structures that power Requests.89"""1011import os11import collections13from itertools import islice121316class IteratorProxy(object):17 """docstring for IteratorProxy"""18 def __init__(self, i):19 self.i = i20 # self.i = chain.from_iterable(i)2122 def __iter__(self):23 return self.i2425 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_size3233 def read(self, n):34 return "".join(islice(self.i, None, n))353614class CaseInsensitiveDict(collections.MutableMapping):15 """16 A case-insensitive ``dict``-like object.17
4 unmodified lines
22 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::2728 cid = CaseInsensitiveDict()29 cid['Accept'] = 'application/json'30 cid['aCCEPT'] == 'application/json' # True
51 unmodified lines
82 def copy(self):83 return CaseInsensitiveDict(self._store.values())8485 def __repr__(self):109 return '%s(%r)' % (self.__class__.__name__, dict(self.items()))86 return str(dict(self.items()))8711188class LookupDict(dict):89 """Dictionary lookup object."""9091 def __init__(self, name=None):
13 unmodified lines
modified:requests/utils.py+130 added-74 removed
17 unmodified lines
18import re19import sys20import socket21import struct22import warnings2324from . import __version__25from . import certs26from .compat import parse_http_list as _parse_list_header27from .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)30from .cookies import RequestsCookieJar, cookiejar_from_dict31from .structures import CaseInsensitiveDict30from .exceptions import MissingSchema, InvalidURL32from .exceptions import InvalidURL, FileModeWarning3334_hush_pyflakes = (RequestsCookieJar,)3536NETRC_FILES = ('.netrc', '_netrc')
10 unmodified lines
47 return d484950def super_len(o):51 total_length = 052 current_position = 05354 if hasattr(o, '__len__'):50 return len(o)55 total_length = len(o)5652 if hasattr(o, 'len'):53 return o.len57 elif hasattr(o, 'len'):58 total_length = o.len5960 elif hasattr(o, 'getvalue'):61 # e.g. BytesIO, cStringIO.StringIO62 total_length = len(o.getvalue())6355 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_size7163 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 )8485 if hasattr(o, 'tell'):86 current_position = o.tell()8788 return max(0, total_length - current_position)899068def get_netrc_auth(url):91def get_netrc_auth(url, raise_errors=False):92 """Returns the Requests tuple auth for a given url from netrc."""9394 try:95 from netrc import netrc, NetrcParseError
29 unmodified lines
125 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 raise132133 # AppEngine hackiness.134 except (ImportError, AttributeError):135 pass
1 unmodified line
137138def 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)144145146def from_key_val_list(value):
164 unmodified lines
311 """Returns encodings from given content string.312313 :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)320321 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 lines
380381 Tried:382383 1. charset from content-type384 2. fall back and replace all unicode characters385355 2. every encodings from ``<meta ... charset=XXX>``356357 3. fall back and replace all unicode characters358386 """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)392393 tried_encodings = []394395 # Try charset from content-type
45 unmodified lines
441442 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)457458459def address_in_network(ip, net):460 """
44 unmodified lines
505 return False506 return True507508469def get_environ_proxies(url):470 """Return a dict of environment proxies."""471509def 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())514515 # 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 lines
519520 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 )526527 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 True539540 # 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 versions
5 unmodified lines
548 except (TypeError, socket.gaierror):549 bypass = False550551 if bypass:552 return True553554 return False555556def get_environ_proxies(url):557 """Return a dict of environment proxies."""558 if should_bypass_proxies(url):559 return {}560 else:561 return getproxies()562511 # 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()563def select_proxy(url, proxies):564 """Select a proxy for the url, if applicable.565566 :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 proxy575576def 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__)579521 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'580536 try:537 p_system = platform.system()538 p_release = platform.release()539 except IOError:540 p_system = 'Unknown'541 p_release = 'Unknown'542543 return " ".join(['%s/%s' % (name, __version__),544 '%s/%s' % (_implementation, _implementation_version),545 '%s/%s' % (p_system, p_release)])546547581def 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 })588589590def parse_header_links(value):
6 unmodified lines
597 links = []598599 replace_chars = " '\""600567 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 lines
655 # Did not detect a valid UTF-32 ascii-range character656 return None657658625def 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)659def 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)663630 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, netloc669670 return urlunparse((scheme, netloc, path, params, query, fragment))671672673def 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 ('', '')677678 try:679 auth = (unquote(parsed.username), unquote(parsed.password))680 except (AttributeError, TypeError):681 auth = ('', '')682683 return auth684685686def 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 lines
699 else:700 out = string.decode(encoding)701702 return out703704705def urldefragauth(url):706 """707 Given a url remove the fragment and the authentication part708 """709 scheme, netloc, path, params, query, fragment = urlparse(url)710711 # see func:`prepend_scheme_if_needed`712 if not netloc:713 netloc, path = path, netloc714715 netloc = netloc.rsplit('@', 1)[-1]716717 return urlunparse((scheme, netloc, path, params, query, ''))
modified:.gitignore+1 added
19 unmodified lines
2021t.py2223t2.py24dist
modified:AUTHORS.rst+51 added-35 removed
1Requests is written and maintained by Kenneth Reitz and2various contributors:34Development Lead5````````````````4Keepers of the Three Crystals5`````````````````````````````67- 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>`_10111213Urllib314```````1516- Andrey Petrov <andrey.petrov@shazow.net>
24 unmodified lines
41- 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 Ohtamaa
28 unmodified lines
78- 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 lines
98- 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 Guidelines23Before opening any issues or proposing any pull requests, please do the4following:561. Read our [Contributor's Guide](http://docs.python-requests.org/en/latest/dev/contributing/).72. Understand our [development philosophy](http://docs.python-requests.org/en/latest/dev/philosophy/).89To get the greatest chance of helpful responses, please also observe the10following additional notes.1112## Questions1314The GitHub issue tracker is for *bug reports* and *feature requests*. Please do15not use it to ask questions about how to use Requests. These questions should16instead be directed to [Stack Overflow](https://stackoverflow.com/). Make sure17that your question is tagged with the `python-requests` tag when asking it on18Stack Overflow, to ensure that it is answered promptly and accurately.1920## Good Bug Reports2122Please be aware of the following things when filing bug reports:23241. 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.312. 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.353. Make sure you provide a suitable amount of information to work with. This36 means you should provide:3738 - 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.5455 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 line
23Release History4---------------562.9.0 (2015-12-15)7++++++++++++++++++89**Minor Improvements** (Backwards compatible)1011- 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.1617**Bugfixes**1819- 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.36372.8.1 (2015-10-13)38++++++++++++++++++3940**Bugfixes**4142- 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.50512.8.0 (2015-10-05)52++++++++++++++++++5354**Minor Improvements** (Backwards Compatible)5556- 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.7071**Bugfixes**7273- 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.8384**Updates**8586- Updated urllib3 to 1.12.87882.7.0 (2015-05-03)89++++++++++++++++++9091This 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/>`_.9495**Bugfixes**9697- Updated urllib3 to 1.10.4, resolving several bugs involving chunked transfer98 encoding and response framing.991002.6.2 (2015-04-23)101++++++++++++++++++102103**Bugfixes**104105- Fix regression where compressed data that was sent as chunked data was not106 properly decompressed. (#2561)1071082.6.1 (2015-04-22)109++++++++++++++++++110111**Bugfixes**112113- Remove VendorAlias import machinery introduced in v2.5.2.114115- Simplify the PreparedRequest.prepare API: We no longer require the user to116 pass an empty list to the hooks keyword argument. (c.f. #2552)117118- Resolve redirects now receives and forwards all of the original arguments to119 the adapter. (#2503)120121- Handle UnicodeDecodeErrors when trying to deal with a unicode URL that122 cannot be encoded in ASCII. (#2540)123124- Populate the parsed path of the URI field when performing Digest125 Authentication. (#2426)126127- Copy a PreparedRequest's CookieJar more reliably when it is not an instance128 of RequestsCookieJar. (#2527)1291302.6.0 (2015-03-14)131++++++++++++++++++132133**Bugfixes**134135- 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).141142- Fix error when requests is an ``install_requires`` dependency and ``python143 setup.py test`` is run. (#2462)144145- Fix error when urllib3 is unbundled and requests continues to use the146 vendored import location.147148- Include fixes to ``urllib3``'s header handling.149150- Requests' handling of unvendored dependencies is now more restrictive.151152**Features and Improvements**153154- Support bytearrays when passed as parameters in the ``files`` argument.155 (#2468)156157- Avoid data duplication when creating a request with ``str``, ``bytes``, or158 ``bytearray`` input to the ``files`` argument.1591602.5.3 (2015-02-24)161++++++++++++++++++162163**Bugfixes**164165- Revert changes to our vendored certificate bundle. For more context see166 (#2455, #2456, and http://bugs.python.org/issue23476)1671682.5.2 (2015-02-23)169++++++++++++++++++170171**Features and Improvements**172173- Add sha256 fingerprint support. (`shazow/urllib3#540`_)174175- Improve the performance of headers. (`shazow/urllib3#544`_)176177**Bugfixes**178179- 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.184185- Attempt to quote parts of the URL on redirect if unquoting and then quoting186 fails. (#2356)187188- Fix filename type check for multipart form-data uploads. (#2411)189190- Properly handle the case where a server issuing digest authentication191 challenges provides both auth and auth-int qop-values. (#2408)192193- Fix a socket leak. (`shazow/urllib3#549`_)194195- Fix multiple ``Set-Cookie`` headers properly. (`shazow/urllib3#534`_)196197- Disable the built-in hostname verification. (`shazow/urllib3#526`_)198199- Fix the behaviour of decoding an exhausted stream. (`shazow/urllib3#535`_)200201**Security**202203- Pulled in an updated ``cacert.pem``.204205- Drop RC4 from the default cipher list. (`shazow/urllib3#551`_)206207.. _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/5262142152.5.1 (2014-12-23)216++++++++++++++++++217218**Behavioural Changes**219220- Only catch HTTPErrors in raise_for_status (#2382)221222**Bugfixes**223224- 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)2272282.5.0 (2014-12-01)229++++++++++++++++++230231**Improvements**232233- 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)236237**Behavioural Changes**238239- 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)243244**Bugfixes**245246- 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)254255**Documentation**256257- 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)2622632.4.3 (2014-10-06)264++++++++++++++++++265266**Bugfixes**267268- 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>`_)2712722732.4.2 (2014-10-05)274++++++++++++++++++275276**Improvements**277278- 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>`_)280281**Bugfixes**282283- 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>`_)285286**Documentation**287288- 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/>`_)2912922932942.4.1 (2014-09-09)295++++++++++++++++++296297- 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?).3013023032.4.0 (2014-08-29)304++++++++++++++++++305306**Behavioral Changes**307308- ``Connection: keep-alive`` header is now sent automatically.309310**Improvements**311312- 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.3173183192.3.0 (2014-05-16)320++++++++++++++++++321322**API Changes**323324- 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.333334**Bugfixes**335336- 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.3473482.2.1 (2014-01-23)349++++++++++++++++++350351**Bugfixes**352353- Fixes incorrect parsing of proxy credentials that contain a literal or encoded '#' character.354- Assorted urllib3 fixes.3553562.2.0 (2014-01-09)357++++++++++++++++++358359**API Changes**
3 unmodified lines
363364**Bugfixes**365366- 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 lines
4694701.2.1 (2013-05-20)471++++++++++++++++++472473- 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 argument
76 unmodified lines
555556- 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 posts5615625630.14.1 (2012-10-01)
27 unmodified lines
591- 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.5975980.13.6 (2012-08-06)599+++++++++++++++++++
42 unmodified lines
6420.13.0 (2012-05-29)643+++++++++++++++++++644645- 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 lines
760+++++++++++++++++++761762* ``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 lines
8808810.7.5 (2011-11-04)882++++++++++++++++++883532* Response.content = None if there was an invalid repsonse.884* Response.content = None if there was an invalid response.885* Redirection auth handling.8868870.7.4 (2011-10-26)888++++++++++++++++++
78 unmodified lines
9670.6.0 (2011-08-17)968++++++++++++++++++969970* 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.request
25 unmodified lines
1001* 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()``1007100810090.4.1 (2011-05-22)
104 unmodified lines
modified:LICENSE+1 added-1 removed
1Copyright 2014 Kenneth Reitz1Copyright 2015 Kenneth Reitz23 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 at
8 unmodified lines
modified:Makefile+5 added-9 removed
2 unmodified lines
3init:4 pip install -r requirements.txt56test: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.py1011coverage:12 py.test --verbose --cov-report term --cov=requests test_requests.py13
5 unmodified lines
1920deps: urllib3 chardet2122urllib3: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 urllib32425chardet: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 chardet2728publish:29 python setup.py register30 python setup.py sdist upload
9 unmodified lines
modified:NOTICE+23 added-64 removed
6 unmodified lines
78Copyright 2008-2011 Andrey Petrov and contributors (see CONTRIBUTORS.txt),9Modifications copyright 2012 Kenneth Reitz.1011Permission is hereby granted, free of charge, to any person obtaining a copy of this12software and associated documentation files (the "Software"), to deal in the Software13without restriction, including without limitation the rights to use, copy, modify, merge,14publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons15to whom the Software is furnished to do so, subject to the following conditions:11Permission is hereby granted, free of charge, to any person obtaining12a copy of this software and associated documentation files (the13"Software"), to deal in the Software without restriction, including14without limitation the rights to use, copy, modify, merge, publish,15distribute, sublicense, and/or sell copies of the Software, and to16permit persons to whom the Software is furnished to do so, subject to17the following conditions:1817The above copyright notice and this permission notice shall be included in all copies or18substantial portions of the Software.19The above copyright notice and this permission notice shall be20included in all copies or substantial portions of the Software.2120THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,21INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR22PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE23FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR24OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER25DEALINGS IN THE SOFTWARE.22THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,23EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF24MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND25NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE26LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION27OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION28WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.2927Charade License28================30Chardet License31===============3233This library is free software; you can redistribute it and/or34modify it under the terms of the GNU Lesser General Public35License as published by the Free Software Foundation; either
9 unmodified lines
45Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA4602110-1301 USA474849CA Bundle License50=================5147Bundle of CA Root Certificates48==============================4950This library is free software; you can redistribute it and/or51modify it under the terms of the GNU Lesser General Public52License as published by the Free Software Foundation; either53version 2.1 of the License, or (at your option) any later version.5455This library is distributed in the hope that it will be useful,56but WITHOUT ANY WARRANTY; without even the implied warranty of57MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU58Lesser General Public License for more details.5960You should have received a copy of the GNU Lesser General Public61License along with this library; if not, write to the Free Software62Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA6302110-1301646566OAuthlib67========6869Copyright (c) 2011 Idan Gazit and contributors70All rights reserved.7172Redistribution and use in source and binary forms, with or without73modification, are permitted provided that the following conditions are met:7475 1. Redistributions of source code must retain the above copyright notice,76 this list of conditions and the following disclaimer.7778 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.8182 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.8586THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"87AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE88IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE89DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE90FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL91DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR92SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER93CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,94OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE95OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.52This Source Code Form is subject to the terms of the Mozilla Public53License, v. 2.0. If a copy of the MPL was not distributed with this54file, You can obtain one at http://mozilla.org/MPL/2.0/.
modified:README.rst+7 added-14 removed
1Requests: HTTP for Humans2=========================34.. 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/requests67.. 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/requests910111213Requests is an Apache2 Licensed HTTP library, written in Python, for human14beings.1516Most existing Python modules for sending HTTP requests are extremely
3 unmodified lines
20perform the simplest of tasks.2122Things shouldn't be this way. Not in Python.2322.. code-block:: pycon24.. code-block:: python2526 >>> r = requests.get('https://api.github.com', auth=('user', 'pass'))27 >>> r.status_code28 204
36 unmodified lines
65.. code-block:: bash6667 $ pip install requests6867Or, if you absolutely must:6969.. code-block:: bash7071 $ easy_install requests7273But, you really shouldn't do that.747570Documentation71-------------7273Documentation is available at http://docs.python-requests.org/.
2 unmodified lines
76Contribute77----------7879#. 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 lines
modified:requirements.txt+5 added-4 removed
1py==1.4.122pytest==2.3.43pytest-cov==1.64invoke==0.2.01py==1.4.302pytest==2.8.13pytest-cov==2.1.04pytest-httpbin==0.0.75httpbin==0.4.06wheel
modified:setup.py+21 added-10 removed
1#!/usr/bin/env python23import os4import re5import sys66import requests7from codecs import open89try:10 from setuptools import setup11except ImportError:
9 unmodified lines
21 '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]2829requires = []3031version = ''32with open('requests/__init__.py', 'r') as fd:33 version = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]',34 fd.read(), re.MULTILINE).group(1)3536if not version:37 raise RuntimeError('Cannot find version information')3829with open('README.rst') as f:39with open('README.rst', 'r', 'utf-8') as f:40 readme = f.read()31with open('HISTORY.rst') as f:41with open('HISTORY.rst', 'r', 'utf-8') as f:42 history = f.read()33with open('LICENSE') as f:34 license = f.read()4344setup(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 lines
53 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',6168 '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 lines
7import json8import os9import pickle10import unittest11import collections12import contextlib1314import io15import requests16import pytest17from requests.adapters import HTTPAdapter15from requests.auth import HTTPDigestAuth18from requests.auth import HTTPDigestAuth, _basic_auth_str19from requests.compat import (17 Morsel, cookielib, getproxies, str, urljoin, urlparse)20 Morsel, cookielib, getproxies, str, urljoin, urlparse, is_py3,21 builtin_str, OrderedDict22 )23from requests.cookies import cookiejar_from_dict, morsel_to_cookie19from requests.exceptions import InvalidURL, MissingSchema24from requests.exceptions import (ConnectionError, ConnectTimeout,25 InvalidSchema, InvalidURL, MissingSchema,26 ReadTimeout, Timeout, RetryError)27from requests.models import PreparedRequest28from requests.structures import CaseInsensitiveDict29from requests.sessions import SessionRedirectMixin30from requests.models import urlencode31from requests.hooks import default_hooks3233try:34 import StringIO35except ImportError:36 import io as StringIO3727HTTPBIN = os.environ.get('HTTPBIN_URL', 'http://httpbin.org/')28# Issue #1483: Make sure the URL always has a trailing slash29HTTPBIN = HTTPBIN.rstrip('/') + '/'38try:39 from multiprocessing.pool import ThreadPool40except ImportError:41 ThreadPool = None4243if is_py3:44 def u(s):45 return s46else:47 def u(s):48 return s.decode('unicode-escape')4932def httpbin(*suffix):33 """Returns url for HTTPBIN resource."""34 return urljoin(HTTPBIN, '/'.join(suffix))5051@pytest.fixture52def httpbin(httpbin):53 # Issue #1483: Make sure the URL always has a trailing slash54 httpbin_url = httpbin.url.rstrip('/') + '/'5537class RequestsTestCase(unittest.TestCase):56 def inner(*suffix):57 return urljoin(httpbin_url, '/'.join(suffix))5859 return inner606162@pytest.fixture63def httpsbin_url(httpbin_secure):64 # Issue #1483: Make sure the URL always has a trailing slash65 httpbin_url = httpbin_secure.url.rstrip('/') + '/'6667 def inner(*suffix):68 return urljoin(httpbin_url, '/'.join(suffix))6970 return inner717273# Requests to this URL should always fail with a connection timeout (nothing74# listening on that port)75TARPIT = "http://10.255.255.1"7677class TestRequests(object):7879 _multiprocess_can_split_ = True8081 def setUp(self):82 """Create simple data set with headers."""
16 unmodified lines
99100 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://')111112 def test_basic_building(self):
4 unmodified lines
117 pr = req.prepare()118 assert pr.url == req.url119 assert pr.body == 'life=42'12075 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.headers126127 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'134135 def test_path_is_not_double_encoded(self):136 request = requests.Request('GET', "http://0.0.0.0/get/test case").prepare()137138 assert request.path_url == '/get/test%20case'
5 unmodified lines
144 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"147148 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'154155 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'159160 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)16494 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)175106 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()180181 r = s.send(r.prepare())182183 assert r.status_code == 200184115 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_redirect190191 # 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)194123 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'}197198 r = requests.get(httpbin('user-agent'), headers=heads)199200 assert heads['User-agent'] in r.text201 assert r.status_code == 200202131 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'}205206 r = requests.get(httpbin('get') + '?test=true', params={'q': 'test'}, headers=heads)207 assert r.status_code == 200208137 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'214143 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']220149 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 lines
230 }231 )232 assert 'foo' not in s.cookies233162 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"'238167 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']244173 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'252181 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.cookies258187 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 = cj
1 unmodified line
265 # 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):269270 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'277206 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_urls283212 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)293294 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.headers301302 def test_user_agent_transfers(self, httpbin):303304 heads = {305 'User-agent': 'Mozilla/5.0 (github.com/kennethreitz/requests)'306 }307
6 unmodified lines
314315 r = requests.get(httpbin('user-agent'), headers=heads)316 assert heads['user-agent'] in r.text317228 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 == 200321232 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 == 200325236 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')329330 r = requests.get(url, auth=auth)
6 unmodified lines
337 s.auth = auth338 r = s.get(url)339 assert r.status_code == 200340251 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")345346 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)350351 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")355356 def test_basicauth_with_netrc(self, httpbin):357 auth = ('user', 'pass')358 wrong_auth = ('wronguser', 'wrongpass')359 url = httpbin('basic-auth', 'user', 'pass')360256 def get_netrc_auth_mock(url):257 return auth258 requests.sessions.get_netrc_auth = get_netrc_auth_mock361 old_auth = requests.sessions.get_netrc_auth362260 # 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_mock367264 # 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 == 200371268 s = requests.session()372 # Given auth should override and fail.373 r = requests.get(url, auth=wrong_auth)374 assert r.status_code == 401375270 # Should use netrc and work.271 r = s.get(url)272 assert r.status_code == 200376 s = requests.session()377274 # 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 == 200381279 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_auth388389 def test_DIGEST_HTTP_200_OK_GET(self, httpbin):390391 auth = HTTPDigestAuth('user', 'pass')392 url = httpbin('digest-auth', 'auth', 'user', 'pass')393394 r = requests.get(url, auth=auth)
6 unmodified lines
401 s.auth = HTTPDigestAuth('user', 'pass')402 r = s.get(url)403 assert r.status_code == 200404295 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'410411 r = requests.get(url, auth=auth)412 assert r.status_code == 200413304 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'420311 def test_DIGEST_STREAM(self):421 def test_DIGEST_STREAM(self, httpbin):422423 auth = HTTPDigestAuth('user', 'pass')424 url = httpbin('digest-auth', 'auth', 'user', 'pass')425
2 unmodified lines
428429 r = requests.get(url, auth=auth, stream=False)430 assert r.raw.read() == b''431322 def test_DIGESTAUTH_WRONG_HTTP_401_GET(self):432 def test_DIGESTAUTH_WRONG_HTTP_401_GET(self, httpbin):433434 auth = HTTPDigestAuth('user', 'wrongpass')435 url = httpbin('digest-auth', 'auth', 'user', 'pass')436
7 unmodified lines
444 s.auth = auth445 r = s.get(url)446 assert r.status_code == 401447338 def test_DIGESTAUTH_QUOTES_QOP_VALUE(self):448 def test_DIGESTAUTH_QUOTES_QOP_VALUE(self, httpbin):449450 auth = HTTPDigestAuth('user', 'pass')451 url = httpbin('digest-auth', 'auth', 'user', 'pass')452453 r = requests.get(url, auth=auth)454 assert '"auth"' in r.request.headers['Authorization']455346 def test_POSTBIN_GET_POST_FILES(self):456 def test_POSTBIN_GET_POST_FILES(self, httpbin):457458 url = httpbin('post')459 post1 = requests.post(url).raise_for_status()460
7 unmodified lines
468 post4 = requests.post(url, data='[{"some": "json"}]')469 assert post4.status_code == 200470471 with pytest.raises(ValueError):362 requests.post(url, files = ['bad file data'])472 requests.post(url, files=['bad file data'])473364 def test_POSTBIN_GET_POST_FILES_WITH_DATA(self):474 def test_POSTBIN_GET_POST_FILES_WITH_DATA(self, httpbin):475476 url = httpbin('post')477 post1 = requests.post(url).raise_for_status()478479 post1 = requests.post(url, data={'some': 'data'})480 assert post1.status_code == 200481482 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 == 200486487 post4 = requests.post(url, data='[{"some": "json"}]')488 assert post4.status_code == 200489490 with pytest.raises(ValueError):380 requests.post(url, files = ['bad file data'])491 requests.post(url, files=['bad file data'])492382 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})")498388 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.ok502392 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()507508 r = requests.get(httpbin('status', '500'))509 assert not r.ok510400 def test_decompress_gzip(self):511 def test_decompress_gzip(self, httpbin):512 r = requests.get(httpbin('gzip'))513 r.content.decode('ascii')514404 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'})522412 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.528415 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)531532 def test_urlencoded_get_query_multivalued_param(self, httpbin):533534 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')537421 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 == 200544428 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 == 200550551 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 == 200555556 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 == 200560561 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 == 200565449 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 lines
573 prep = r.prepare()574 assert b'name="stuff"' in prep.body575 assert b'name="b\'stuff\'"' not in prep.body576460 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 == 200582583 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"590591 resp = s.send(prep)592 assert resp.status_code == 200593594 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.body603474 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 != {}608479 requests.Request('GET', HTTPBIN, hooks={'response': hook})609 requests.Request('GET', httpbin(), hooks={'response': hook})610481 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]619490 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]629500 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 resp634505 req = requests.Request('GET', HTTPBIN, hooks={'response': hook})635 req = requests.Request('GET', httpbin(), hooks={'response': hook})636 prep = req.prepare()637638 s = requests.Session()639 s.proxies = getproxies()640 resp = s.send(prep)641642 assert hasattr(resp, 'hook_working')643514 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 r
6 unmodified lines
655656 prep = s.prepare_request(req)657 resp = s.send(prep)658529 assert resp.json()['headers']['Dummy-Auth-Test'] == 'dummy-auth-test-ok'659 assert resp.json()['headers'][660 'Dummy-Auth-Test'] == 'dummy-auth-test-ok'661662 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/"667668 def test_links(self):669 r = requests.Response()670 r.headers = {671 'cache-control': 'public, max-age=60, s-maxage=60',
121 unmodified lines
793 assert items == list(items)794 # make sure one can use items multiple times795 assert list(items) == list(items)796660661 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 lines
812 r.raw = io813 assert next(iter(r))814 io.close()815816 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'825826 chunks = r.iter_content(decode_unicode=True)827 assert all(isinstance(chunk, str) for chunk in chunks)828829 # 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)835680 def test_request_and_response_are_pickleable(self):836 def test_request_and_response_are_pickleable(self, httpbin):837 r = requests.get(httpbin('get'))838839 # verify we can pickle the original request840 assert pickle.loads(pickle.dumps(r.request))
16 unmodified lines
857 url = 'http://user:pass pass@complex.url.com/path?query=yes'858 assert ('user', 'pass pass') == requests.utils.get_auth_from_url(url)859860 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)863864 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)867708 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)872873 def test_http_error(self):
5 unmodified lines
879 error = requests.exceptions.HTTPError('message', response=response)880 assert str(error) == 'message'881 assert error.response == response882723 def test_session_pickling(self):883 def test_session_pickling(self, httpbin):884 r = requests.Request('GET', httpbin('get'))885 s = requests.Session()886887 s = pickle.loads(pickle.dumps(s))
1 unmodified line
889890 r = s.send(r.prepare())891 assert r.status_code == 200892733 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 lines
902 assert headers['accept'] == 'application/json'903 assert headers['Accept'] == 'application/json'904 assert headers['ACCEPT'] == 'application/json'905746 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 == 200
36 unmodified lines
947 s2.mount('https://', HTTPAdapter())948 assert 'http://' in s2.adapters949 assert 'https://' in s2.adapters950791 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.headers957798 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'}963804964 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 line
969 )970 r = requests.Request('GET', url).prepare()971 assert r.url == url972814 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()977978 # 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()982824 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()988989 assert 'multipart/form-data' in p.headers['Content-Type']990991 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']10031004 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()10091010 assert 'multipart/form-data' in p.headers['Content-Type']1011832 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()10171018 assert p.headers['Content-Length'] == length1019840 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 lines
1027 req = requests.Request('GET', test_url)1028 preq = req.prepare()1029 assert test_url == preq.url10301031 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', '')10391040 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']10441045 assert h1 == h210461047 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)10521053 # 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_redirect10581059 # 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_redirect10651066 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 = False10701071 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 resp10771078 adapter.build_response = build_response10791080 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)10851086 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"10901091 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 + 110981099 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']11071108 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.body11141115 def test_response_iter_lines(self, httpbin):1116 r = requests.get(httpbin('stream/4'), stream=True)1117 assert r.status_code == 20011181119 it = r.iter_lines()1120 next(it)1121 assert len(list(it)) == 311221123 def test_unconsumed_session_response_closes_connection(self, httpbin):1124 s = requests.session()11251126 with contextlib.closing(s.get(httpbin('stream/4'), stream=True)) as response:1127 pass11281129 assert response._content_consumed is False1130 assert response.raw.closed11311132 @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 == 20011371138 next(r.iter_lines())1139 assert len(list(r.iter_lines())) == 3114011411142class TestContentEncodingDetection(unittest.TestCase):11431144 def test_none(self):1145 encodings = requests.utils.get_encodings_from_content('')
39 unmodified lines
11851186class TestCaseInsensitiveDict(unittest.TestCase):11871188 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 lines
1259 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 lines
1282 assert cid == othercid1283 del othercid['spam']1284 assert cid != othercid1285 assert cid == {'spam': 'blueval', 'eggs': 'redval'}1286 assert cid != object()12871288 def test_setdefault(self):1289 cid = CaseInsensitiveDict({'Spam': 'blueval'})1290 assert cid.setdefault('spam', 'notblueval') == 'blueval'
29 unmodified lines
1320 assert frozenset(i[0] for i in cid.items()) == keyset1321 assert frozenset(cid.keys()) == keyset1322 assert frozenset(cid) == keyset13231324 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_copy133313341335class UtilsTestCase(unittest.TestCase):13361337 def test_super_len_io_streams(self):1338 """ Ensures that we properly deal with different kinds of IO streams. """
1 unmodified line
1340 from io import BytesIO1341 from requests.utils import super_len13421343 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')) == 2913461347 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")) == 4013501351 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...')) == 2513581359 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) == 013651366 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 lines
1375 assert get_environ_proxies('http://192.168.1.1:5000/') != {}1376 assert get_environ_proxies('http://192.168.1.1/') != {}13771378 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/') != {}13861387 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 None13951396 def test_guess_filename_when_int(self):1397 from requests.utils import guess_filename1398 assert None is guess_filename(1)13991400 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)14041405 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)14121413 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)14211422 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 lines
1440 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')14431444 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_chars14571458 def test_requote_uri_with_unquoted_percents(self):1459 """Ensure we handle unquoted percent signs in redirects.14601461 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)14671468 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)147314741475class TestMorselToCookieExpires(unittest.TestCase):14761477 """Tests for morsel_to_cookie when morsel contains expires."""1478
50 unmodified lines
1529 with pytest.raises(TypeError):1530 morsel_to_cookie(morsel)153115321533class 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]15391540 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)15441545 with pytest.raises(ValueError) as e:1546 requests.get(httpbin('get'), timeout="foo")1547 assert 'must be an int or float' in str(e)15481549 def test_none_timeout(self, httpbin):1550 """ Check that you can set None as a valid timeout value.15511552 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 == 20015601561 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 pass15671568 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)15751576 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 pass15821583 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.ok158715881589SendCall = collections.namedtuple('SendCall', ('args', 'kwargs'))159015911592class 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 = False15991600 def send(self, *args, **kwargs):1601 self.calls.append(SendCall(args, kwargs))1602 return self.build_response()16031604 def build_response(self):1605 request = self.calls[-1].args[0]1606 r = requests.Response()16071608 try:1609 r.status_code = int(self.redirects.pop(0))1610 except IndexError:1611 r.status_code = 20016121613 r.headers = CaseInsensitiveDict({'Location': '/'})1614 r.raw = self._build_raw()1615 r.request = request1616 return r16171618 def _build_raw(self):1619 string = StringIO.StringIO('')1620 setattr(string, 'release_conn', lambda *args: args)1621 return string162216231624class TestRedirects:1625 default_keyword_args = {1626 'stream': False,1627 'verify': True,1628 'cert': None,1629 'timeout': None,1630 'allow_redirects': False,1631 'proxies': {},1632 }16331634 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_call1646164716481649@pytest.fixture1650def list_of_tuples():1651 return [1652 (('a', 'b'), ('c', 'd')),1653 (('c', 'd'), ('a', 'b')),1654 (('a', 'b'), ('c', 'd'), ('e', 'f')),1655 ]165616571658def 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)167216731674def assert_copy(p, p_copy):1675 for attr in ('method', 'url', 'headers', '_cookies', 'body', 'hooks'):1676 assert getattr(p, attr) == getattr(p_copy, attr)167716781679def test_prepared_request_empty_copy():1680 p = PreparedRequest()1681 assert_copy(p, p.copy())168216831684def 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())169316941695def 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())170517061707def 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())171417151716def 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 )))17221723 with pytest.raises(RetryError):1724 s.get(httpbin('status/500'))172517261727def test_urllib3_pool_connection_closed(httpbin):1728 s = requests.Session()1729 s.mount('http://', HTTPAdapter(pool_connections=0, pool_maxsize=0))17301731 try:1732 s.get(httpbin('status/200'))1733 except ConnectionError as e:1734 assert u"Pool is closed." in str(e)173517361737def test_vendor_aliases():1738 from requests.packages import urllib31739 from requests.packages import chardet17401741 with pytest.raises(ImportError):1742 from requests.packages import webbrowser174317441745if __name__ == '__main__':1746 unittest.main()