title: package httr add_headers. httr::get() vs cURL
body: <p>I want to do a httr::GET() with a url and 2 headers. I can't seem to get the syntax correct.</p>
  <p>using cURL, the following works:</p>
  <pre><code>curl -X GET &quot;https://my.url.com/v1/objects/object_4/records&quot; \
    -H &quot;X-Myapp-Application-Id: xyzz1abc123&quot; \
    -H &quot;X-Myapp-REST-API-Key: xyzzy-12345-abcde&quot; 
  </code></pre>
  <p>I have tried many versions of</p>
  <pre><code>object_4&lt;-get(&quot;https://my.url.com/v1/objects/object_4/records&quot;, add_headers(.headers=c('X-Myapp-Application-Id= xyzz1abc123','X-Myapp-REST-API-Key= xyzzy-12345-abcde')))
  </code></pre>
  <p>with :, or with =, with single quotes, double quotes, quotes around 'key = value', 'key' = 'value', &quot;key = value&quot;, 'key: value' etc.</p>
  <p>What is the proper syntax to convert by cURL code to httr::get()</p>
  <p>thanks!</p>