completed http_client program