def unpack_url(url)
      root_url = []
      path_prefix = ''
      parts = URI.split(url)
      root_url << "#{parts[0]}://"
      root_url << "#{parts[1]}@" unless parts[1].nil?
      root_url << "#{parts[2]}"
      root_url << ":#{parts[3]}" unless parts[3].nil?
      path_prefix = parts[5]
      return root_url.join(''), path_prefix
    end
def unpack_url(url)
      root_url = []
      path_prefix = ''
      parts = URI.split(url)
      root_url << "#{parts[0]}://"
      root_url << "#{parts[1]}@" unless parts[1].nil?
      root_url << "#{parts[2]}"
      root_url << ":#{parts[3]}" unless parts[3].nil?
      path_prefix = parts[5]
      return root_url.join(''), path_prefix
    end
Unpack the URL and split it into a root URL and a path prefix, if one
 exists.

 @param url [String] The complete base URL to use when making requests.
 @return [String,String] A (root URL, path) prefix pair.