rv = pps->ExamineForProxy(uri, proxyInfo);
rv = pps->Resolve(uri, 0, proxyInfo);
NS_ExamineForProxy(const char    *scheme,                   const char    *host,                   PRInt32        port,                    nsIProxyInfo **proxyInfo){    nsresult rv;    static NS_DEFINE_CID(kPPSServiceCID, NS_PROTOCOLPROXYSERVICE_CID);    nsCOMPtr<nsIProtocolProxyService> pps = do_GetService(kPPSServiceCID, &rv);    if (NS_SUCCEEDED(rv)) {        nsCAutoString spec(scheme);        spec.Append("://");        spec.Append(host);        spec.Append(':');        spec.AppendInt(port);        // XXXXX - Under no circumstances whatsoever should any code which        // wants a uri do this. I do this here because I do not, in fact,        // actually want a uri (the dummy uris created here may not be         // syntactically valid for the specific protocol), and all we need        // is something which has a valid scheme, hostname, and a string        // to pass to PAC if needed - bbaetz        static NS_DEFINE_CID(kStandardURLCID, NS_STANDARDURL_CID);            nsCOMPtr<nsIURI> uri = do_CreateInstance(kStandardURLCID, &rv);        if (NS_SUCCEEDED(rv)) {            rv = uri->SetSpec(spec);            if (NS_SUCCEEDED(rv))                rv = pps->ExamineForProxy(uri, proxyInfo);        }    }    return rv;}