title: Simple Curl -H in R
body: <p>I want to do</p>
  
  <pre><code>curl -H "Authorization: Basic YOUR_API_KEY" -d '{"classifier_id":155, "value":"TEST"}' "https://www.machinelearningsite.com/language/classify"
  </code></pre>
  
  <p>I tried</p>
  
  <pre><code>  h = getCurlHandle(header = TRUE, userpwd = YOUR_API_KEY, netrc = TRUE)
  out &lt;- getURL("https://www.machinelearningsite.com/language/classify?classifier_id=155&amp;value=TEST", curl=h,ssl.verifypeer=FALSE)
  </code></pre>
  
  <p>but it says method not allowed</p>