http client and mini chat based on client-server