<p dir="auto">It's not possible to find which version of TLS was used, or indeed any of the SSL parameters, after a transfer.<br>
Could some of this metadata be made available, perhaps only if specified in the request.</p>
<p dir="auto">Is there any indication that TLS was used at all ?</p>
<p dir="auto">When requests answer is from (atleast) ISO-8859-1, the module take so long for process the response.</p>
<h2 dir="auto">Expected Result</h2>
<p dir="auto">Similar time than curl or browser time around 1 sec</p>
<h2 dir="auto">Actual Result</h2>
<p dir="auto">The answer takes more than 2 minutes<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/30806958/96336246-ae3ba400-107e-11eb-803d-4e3489d42c6f.png"><img src="https://user-images.githubusercontent.com/30806958/96336246-ae3ba400-107e-11eb-803d-4e3489d42c6f.png" alt="image" style="max-width: 100%;"></a></p>
<h2 dir="auto">Reproduction Steps</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="url = 'https://geoportal.minetur.gob.es/VCTEL/infoantenasGeoJSON.do?idCapa=null&amp;bbox=-1.5525697885398,39.26519497205,-1.549179476345,39.273649294864&amp;zoom=4'
r = requests.get(url, headers=headers)
print(r.json())
"><pre class="notranslate"><code class="notranslate">url = 'https://geoportal.minetur.gob.es/VCTEL/infoantenasGeoJSON.do?idCapa=null&amp;bbox=-1.5525697885398,39.26519497205,-1.549179476345,39.273649294864&amp;zoom=4'
r = requests.get(url, headers=headers)
print(r.json())

</code></pre></div>
<h2 dir="auto">System Information</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ python -m requests.help"><pre class="notranslate"><code class="notranslate">$ python -m requests.help
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{
  &quot;chardet&quot;: {
    &quot;version&quot;: &quot;3.0.4&quot;
  },
  &quot;cryptography&quot;: {
    &quot;version&quot;: &quot;&quot;
  },
  &quot;idna&quot;: {
    &quot;version&quot;: &quot;2.10&quot;
  },
  &quot;implementation&quot;: {
    &quot;name&quot;: &quot;CPython&quot;,
    &quot;version&quot;: &quot;3.8.5&quot;
  },
  &quot;platform&quot;: {
    &quot;release&quot;: &quot;5.4.64-1-MANJARO&quot;,
    &quot;system&quot;: &quot;Linux&quot;
  },
  &quot;pyOpenSSL&quot;: {
    &quot;openssl_version&quot;: &quot;&quot;,
    &quot;version&quot;: null
  },
  &quot;requests&quot;: {
    &quot;version&quot;: &quot;2.24.0&quot;
  },
  &quot;system_ssl&quot;: {
    &quot;version&quot;: &quot;1010107f&quot;
  },
  &quot;urllib3&quot;: {
    &quot;version&quot;: &quot;1.25.10&quot;
  },
  &quot;using_pyopenssl&quot;: false
}"><pre class="notranslate"><code class="notranslate">{
  "chardet": {
    "version": "3.0.4"
  },
  "cryptography": {
    "version": ""
  },
  "idna": {
    "version": "2.10"
  },
  "implementation": {
    "name": "CPython",
    "version": "3.8.5"
  },
  "platform": {
    "release": "5.4.64-1-MANJARO",
    "system": "Linux"
  },
  "pyOpenSSL": {
    "openssl_version": "",
    "version": null
  },
  "requests": {
    "version": "2.24.0"
  },
  "system_ssl": {
    "version": "1010107f"
  },
  "urllib3": {
    "version": "1.25.10"
  },
  "using_pyopenssl": false
}
</code></pre></div>
<h2 dir="auto">Thoughts</h2>
<p dir="auto">This looks like a problem with encoding as requests needs to guess the encoding, maybe adding a parameter or a way for specify the answer encoding would speed it up</p>