copy tcp_client.c to http_client.c