Splitting up URL connection