Skip to content

Search request with body is missing transfer-encoding or content-length #846

@zerkms

Description

@zerkms

Summary of problem or feature request

It was raised before #737 but closed without further discussion.

It is indeed allowed to send body with GET method.

The problem is that as long as you provide one you must then specify either Content-Length or Transfer-Encoding or both (https://tools.ietf.org/html/rfc7230#section-3.3)

None of those are provided.

So as expected proxies go crazy, since then there is no way to infer the body length, hence return HTTP 411

Code snippet of problem

System details

  • Operating System N/A
  • PHP Version N/A
  • ES-PHP client version 6.1.0
  • Elasticsearch version N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions