Tighten up url-connection utility