apache => wrong rest routing

Are you using page caching? Perhaps it sees that you have /foo/index.html so redirects POST /foo to GET /foo/.

Try this:

http://mephisto.stikipad.com/help/show/Developer+Tips