changed sendstatement to do a post instead of a put