title: Python request resulting in blank response
body: <p>I'm relatively new to Python so would like some help, I've created a script which simply use the request library and basic auth to connect to an API and returns the xml or Json result.</p>
  
  <pre><code># Imports
  import requests
  from requests.auth import HTTPBasicAuth
  
  # Set variables 
  url = "api"
  apiuser = 'test'
  apipass = 'testpass'
  
  # CALL API
  r = requests.get(url, auth=HTTPBasicAuth(apiuser, apipass))
  
  # Print Statuscode
  print(r.status_code)
  
  # Print XML
  xmlString = str(r.text)
  print(xmlString)
  </code></pre>
  
  <p>if but it returns a blank string.</p>
  
  <p>If I was to use a browser to call the api and enter the cretentials I get the following response.</p>
  
  <pre><code>&lt;Response&gt;
  &lt;status&gt;SUCCESS&lt;/status&gt;
  &lt;callId&gt;99999903219032190321&lt;/callId&gt;
  &lt;result xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="Dummy"&gt;
  &lt;authorFullName&gt;jack jones&lt;/authorFullName&gt;
  &lt;authorOrderNumber&gt;1&lt;/authorOrderNumber&gt;
  &lt;/result&gt;
  &lt;/Response&gt;
  </code></pre>
  
  <p>Can anyone tell me where I'm going wrong.</p>