title: Sending HTTP request using ruby on rails
body: <p>I'm new to ruby on rails and trying to test if I could do something like the below from my controller:</p>
  
  <pre><code>curl -v -H "Content-Type: application/json" -X GET -d "{bbrequest:BBTest reqid:44  data:{name: "test"}}" http://localhost:8099
  </code></pre>
  
  <p>And what is the best practice to send JSON in your HTTP requests?</p>