adds working generic request fucntion to receive domain from client