Skip to content

High Level Rest client should use POST when we have body #28326

@dadoonet

Description

@dadoonet

When elasticsearch is behind a Proxy and this Proxy does not support GET with body (which might be seen as a bug of the Proxy), people can't use our Java Rest Client as explained in https://discuss.elastic.co/t/es-cluster-via-proxy-ip-but-listener-timeout-after-waiting-for-30000-ms/116192/6

For example, the search Request here uses a GET method:

return new Request(HttpGet.METHOD_NAME, endpoint, params.getParams(), entity);

I think we should may be switch to POST instead anytime we might have a body.

Thoughts?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions