client program to send request and chat