created connection with server and read html source