replaced httplib with requests

Issue:
Error "socket.gaierror: [Errno -2] Name or service not known"
while executing the code httplib.HTTPConnection("192.168.56.104/horizonreg", 80).connect()