Better protocol check for posting to endpoint