title: How to write a CURL PUT script in Ruby?
body: <p>I have the following code which runs fine if I enter it one line at a time in the terminal:</p>
  
  <pre><code>curl -X PUT \
  &gt; -H "X-Parse-Application-Id: APPID" \
  &gt; -H "X-Parse-REST-API-Key: APIKEY" \
  &gt; -H "Content-Type: application/json" \
  &gt; -d '{"production":true}' \
  &gt; https://api.parse.com/1/classes/FIELD/OBJECTID
  </code></pre>
  
  <p>How would I turn this into a Ruby script? </p>
  
  <p>I've tried using httparty, uri, net/http, but the syntax of the curl (the \'s and the fact that it's a PUT request) are confusing me.</p>