I'm new to ruby on rails and trying to test if I could do something like the below from my controller:
curl -v -H "Content-Type: application/json" -X GET -d "{bbrequest:BBTest reqid:44 data:{name: "test"}}" http://localhost:8099
And what is the best practice to send JSON in your HTTP requests?
You could do something like this:
Look up Net::HTTP for more information.