adding HTTP POST method for submitting messages