I am trying to execute a simple \"request body search\" on Elasticsearch like the following example but using .NET instead of curl
$ curl -XGET \'http://loca
Changing the Method to POST is a workaround.
Method
POST
request.Method = "POST";
MSDN states that a ProtocolViolationException will be thrown if the GetResponseStream() method is called with a GET or HEAD method.
ProtocolViolationException
GetResponseStream()
GET
HEAD