fixed bug in http post