ClickHouse.Client icon indicating copy to clipboard operation
ClickHouse.Client copied to clipboard

Add option to send query as POST

Open tkirill opened this issue 3 years ago • 1 comments

Hi!

I'm trying to send parameterized selects to ClickHouse and getting "414 Request-URI Too Large" from ClickHouse.

ClickHouse supports sending queries in a body of POST request. And it started (issue) to support sending query parameters in a request body recently.

What do you think about giving an option to send query as POST?

tkirill avatar Feb 22 '23 11:02 tkirill

Hi,

This is something I wanted to implement a while ago but it wasn't supported back then, glad to see it was added server-side!

Will definitely take a look

DarkWanderer avatar Feb 22 '23 11:02 DarkWanderer

Hi @DarkWanderer!

I've added the pull request which adds support of the feature, could you check it?

Some tests don't work on version prior Aug 10, 2022

ArtemAstashkin avatar Jul 15 '24 15:07 ArtemAstashkin