# File lib/cookiejar/jar.rb, line 212
    def get_cookies request_uri, opts = { }
          uri = to_uri request_uri
        hosts = Cookie.compute_search_domains uri
        
        results = []
        hosts.each do |host|
          domain = find_domain host
          domain.each do |path, cookies|
                  if uri.path.start_with? path
                  results += cookies.values.select do |cookie|
                                cookie.should_send? uri, opts[:script]
                        end
                end
        end
      end
        #Sort by path length, longest first
        results.sort do |lhs, rhs|
          rhs.path.length <=> lhs.path.length
        end
    end