http_post method now supports HTTP basic authentication