Converting curl command to Python request
<p>The curl command that I have that works properly is -  </p>

<pre><code>curl -X GET -H "Authorization: Basic &lt;base64userpass&gt;" -H "Content-Type: application/json" "http://&lt;host&gt;/bamboo/rest/api/latest/result/&lt;plankey&gt;.json?expand=results.result&amp;os_authType=basic"
</code></pre>

<p>In Python, this is what I currently have - </p>

<pre><code>   headers = {'Authorization': 'Basic &lt;base64userpass&gt;', 'Content-Type': 'application/json'}
   datapoints = {'expand': 'results.result', 'os_authType': 'basic'}
   url = "http://&lt;host&gt;/bamboo/rest/api/latest/result/&lt;plankey&gt;.json"
   r = requests.get(url, headers=headers, data=datapoints)
</code></pre>

<p>The response I get when using the Python request is <code>&lt;Response [403]&gt;</code>, but when using curl I get back the expected data.</p>

<p>What am I missing here?</p>

<p>Thanks.</p>