content-type: application/x-www-form-urlencoded でリクエストを投稿しようとしています。しかし、Charles (または Fiddler) でリクエストを表示すると、application/json と表示されます。
HTTP.post(url,
{
:headers => {"Content-Type" => "application/x-www-form-urlencoded"}
}) do |response|
puts response
puts response.body.to_str
end