Handle both 'post' and 'data' parameters

For backwards compatibility with previous implementations.