version with functionning POST requests