Tests for http_post