title: PYTHON REQUESTS ERROR: ('Connection aborted.', OSError("(10054, 'WSAECONNRESET')"))
body: <p>I am trying to get data from a web service,working with soap. Until now, I was able to get successfull responses but now my code throws this error. Any ideas on why a working code a day before throws this error now?
  Note that this is not a public API, your IP needed to be in whitelist to retrieve data.</p>
  
  <p>edit for code:</p>
  
  <pre><code>import requests
  headers = {'x-ibm-client-id': "MY KEY",
         'content-type': 'application/soap+xml',
         'accept':'application/xml'}
  
  url="https://api.epias.com.tr/epias/exchange/electricity/balancingMarket"
  login="""&lt;soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope"&gt;
   &lt;soapenv:Header&gt;
    &lt;wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"&gt;
     &lt;wsse:UsernameToken&gt;
      &lt;wsse:Username&gt;string&lt;/wsse:Username&gt;
      &lt;wsse:Password&gt;string&lt;/wsse:Password&gt;
      &lt;wsse:Nonce EncodingType="string"&gt;string&lt;/wsse:Nonce&gt;
      &lt;wsu:Created&gt;string&lt;/wsu:Created&gt;
     &lt;/wsse:UsernameToken&gt;
     &lt;wsu:Timestamp wsu:Id="string"&gt;
      &lt;wsu:Created&gt;string&lt;/wsu:Created&gt;
      &lt;wsu:Expires&gt;string&lt;/wsu:Expires&gt;
     &lt;/wsu:Timestamp&gt;
    &lt;/wsse:Security&gt;
   &lt;/soapenv:Header&gt;
   &lt;soapenv:Body&gt;
    &lt;dgp:login xmlns:dgp="http://ws.dgpys.deloitte.com"&gt;&lt;!-- mandatory --&gt;
     &lt;loginMessage&gt;
      &lt;Password v="MYPASSWORD"&gt;&lt;/Password&gt;
      &lt;UserName v="MYUSERNAME"&gt;&lt;/UserName&gt;
     &lt;/loginMessage&gt;
    &lt;/dgp:login&gt;
   &lt;/soapenv:Body&gt;
   """
  s=requests.Session()
  
  s.get(url)
  res=s.post(url,data=login,headers=headers)
  </code></pre>