JHttpTransportSocket::connect

Method to connect to a server and get the resource.