-
Notifications
You must be signed in to change notification settings - Fork 25.8k
High Level Rest client should use POST when we have body #28326
Copy link
Copy link
Closed
Labels
Description
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:
elasticsearch/client/rest-high-level/src/main/java/org/elasticsearch/client/Request.java
Line 424 in b98514c
| 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?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Type
Fields
Give feedbackNo fields configured for issues without a type.