http logic to server from socket