The rails app sends HTTP web service requests (GET and POST) to Elasticsearch and expects JSON messages in return.
Normally, Elasticsearch expects its requests to come via port 9200.
I changed elasticsearch.yml to use 9400 instead.
I tried it out in a web browser and verified that Elasticsearch is indeed now monitoring port 9400, not 9200.
Then I went into the ZAP Options > Local Proxy setup page and changed Port to 9200.
If I now make an HTTP request to port 9200, I get back "Bad Format".
What additional setup do I need to perform? For instance, how do I tell ZAP to forward messages to port 9400?
How do I start ZAP so it allows me to view the message traffic between the rails app and elasticsearch?
I have never used ZAP before, and not sure where in the documentation it describes how to do this, if possible.
I cross-posted this on Stackoverflow.
Paul