refactoring posting code to actually check the response (though it's just a binary pass/fail)