adding code for getting domains data from http