Simplify URL connection handling.