utiility to connect to URL