Use POST if keys > 3000 chars, otherwise GET. JUnit tests updated. Fixed #165.