Sometimes I need to make simple HTTP posts in a Ruby script. Using a 3rd party library may be too clunky for such a simple script. This post helps a lot, but it doesn't cover all my needs. Specifically, when working with the Switchvox API, the API methods are expected to be a JSON parameter. Let's start by imply posting some JSON. Post some JSON require 'net/http' require 'uri' require 'json' uri