net/http

You can just pass a hash representing an HTTP header to the request method. “Content-Type” => “application/x-www-form-urlencoded”.