title: Suppressing 302 Error returned by httr POST
body: <p>I'm using the R httr POST function to send a body of jSON to an API.  The API is, properly, returning a 302: Found message, but httr is exiting the function before I'm able to grab the body of response (which is a jSON body, with some key bits of info.)</p>
  
  <p>Running httr with the Verbose() argument, the following is the response:</p>
  
  <pre><code>&lt;- HTTP/1.1 302 Found
  &lt;- Cache-Control: no-cache
  &lt;- Pragma: no-cache
  &lt;- Content-Length: 47
  &lt;- Content-Type: application/json; charset=utf-8
  &lt;- Expires: -1
  Error in function (type, msg, asError = TRUE)  : 
    necessary data rewind wasn't possible
  </code></pre>
  
  <p>I've run the same cURL post from terminal, and can confirm what I'm sending produces a reply from the API with both the 302 and the desired body.</p>
  
  <p>For reference my R code follows.  (note: y is the jSON formatted body)</p>
  
  <pre><code>POST("https://thewebsite",authenticate("myusername","mypassword",type="basic"),
      add_headers("Content-Type" = "application/json"),
      body = y, verbose())
  </code></pre>
  
  <p>Any thoughts on how to bypass the error and capture the 302 message content?</p>