title: Remote end closed connection without response
body: <p>I am trying to get the HTML source from a webpage using the following code:</p>
  <pre><code>import requests
  url = &quot;https://dictionary.cambridge.org/us/dictionary/english-arabic/hi&quot;
  r = requests.get(url)
  </code></pre>
  <p>but, I am getting the following error:</p>
  <pre><code>Traceback (most recent call last):
    File &quot;/home/username/ak_env/lib/python3.8/site-packages/urllib3/connectionpool.py&quot;, line 699, in urlopen
      httplib_response = self._make_request(
    File &quot;/home/username/ak_env/lib/python3.8/site-packages/urllib3/connectionpool.py&quot;, line 445, in _make_request
      six.raise_from(e, None)
    File &quot;&lt;string&gt;&quot;, line 3, in raise_from
    File &quot;/home/username/ak_env/lib/python3.8/site-packages/urllib3/connectionpool.py&quot;, line 440, in _make_request
      httplib_response = conn.getresponse()
    File &quot;/usr/lib/python3.8/http/client.py&quot;, line 1347, in getresponse
      response.begin()
    File &quot;/usr/lib/python3.8/http/client.py&quot;, line 307, in begin
      version, status, reason = self._read_status()
    File &quot;/usr/lib/python3.8/http/client.py&quot;, line 276, in _read_status
      raise RemoteDisconnected(&quot;Remote end closed connection without&quot;
  http.client.RemoteDisconnected: Remote end closed connection without response
  
  During handling of the above exception, another exception occurred:
  
  Traceback (most recent call last):
    File &quot;/home/username/ak_env/lib/python3.8/site-packages/requests/adapters.py&quot;, line 439, in send
      resp = conn.urlopen(
    File &quot;/home/username/ak_env/lib/python3.8/site-packages/urllib3/connectionpool.py&quot;, line 755, in urlopen
      retries = retries.increment(
    File &quot;/home/username/ak_env/lib/python3.8/site-packages/urllib3/util/retry.py&quot;, line 532, in increment
      raise six.reraise(type(error), error, _stacktrace)
    File &quot;/home/username/ak_env/lib/python3.8/site-packages/urllib3/packages/six.py&quot;, line 734, in reraise
      raise value.with_traceback(tb)
    File &quot;/home/username/ak_env/lib/python3.8/site-packages/urllib3/connectionpool.py&quot;, line 699, in urlopen
      httplib_response = self._make_request(
    File &quot;/home/username/ak_env/lib/python3.8/site-packages/urllib3/connectionpool.py&quot;, line 445, in _make_request
      six.raise_from(e, None)
    File &quot;&lt;string&gt;&quot;, line 3, in raise_from
    File &quot;/home/username/ak_env/lib/python3.8/site-packages/urllib3/connectionpool.py&quot;, line 440, in _make_request
      httplib_response = conn.getresponse()
    File &quot;/usr/lib/python3.8/http/client.py&quot;, line 1347, in getresponse
      response.begin()
    File &quot;/usr/lib/python3.8/http/client.py&quot;, line 307, in begin
      version, status, reason = self._read_status()
    File &quot;/usr/lib/python3.8/http/client.py&quot;, line 276, in _read_status
      raise RemoteDisconnected(&quot;Remote end closed connection without&quot;
  urllib3.exceptions.ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
  
  During handling of the above exception, another exception occurred:
  
  Traceback (most recent call last):
    File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt;
    File &quot;/home/username/ak_env/lib/python3.8/site-packages/requests/api.py&quot;, line 76, in get
      return request('get', url, params=params, **kwargs)
    File &quot;/home/username/ak_env/lib/python3.8/site-packages/requests/api.py&quot;, line 61, in request
      return session.request(method=method, url=url, **kwargs)
    File &quot;/home/username/ak_env/lib/python3.8/site-packages/requests/sessions.py&quot;, line 542, in request
      resp = self.send(prep, **send_kwargs)
    File &quot;/home/username/ak_env/lib/python3.8/site-packages/requests/sessions.py&quot;, line 655, in send
      r = adapter.send(request, **kwargs)
    File &quot;/home/username/ak_env/lib/python3.8/site-packages/requests/adapters.py&quot;, line 498, in send
      raise ConnectionError(err, request=request)
  requests.exceptions.ConnectionError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
  </code></pre>
  <p>Is there any way to fix this issue? any other function to get the source code?
  I used wget and it works. I may consider using wget to download the page if there is no direct fix or another python function.</p>