Added handling of http post response