HTTP - Writing to streams - fixed example curl post commands

Some of the curl commands were not correct.
It appeared a part of the url was missing and they were not reading from the example json file.
I adapted them to a working version, based on the default ES location, port and example json file.