use http_client method