Sitemap
Сергей Блохин

Сергей Блохин

Ruby HTTPClient Array in Query

1 min readMay 17, 2019

If you need send array in query, like `example.com/?ids[]=1&ids[]=2`, you can do it.

Get Сергей Блохин’s stories in your inbox

Join Medium for free to get updates from this writer.

parameters = {
'ids[]' => [1, 2]
}

HTTPClient.post 'https://example.com/', parameters

--

--