Reading server response and sending it to client