2003/10/31 09:50:08
[org.ibex.core.git] / src / org / xwt / HTTP.java
index 3bd0a6b..7295f1f 100644 (file)
@@ -181,18 +181,8 @@ public class HTTP {
             return;
         } catch (UnknownHostException uhe) { }
 
-        if (Platform.detectProxy() == null) throw new HTTPException("could not resolve hostname \"" + host + "\" and no proxy configured");
-        if (Log.on) Log.log(this, "  could not resolve host " + host + "; using xmlrpc.xwt.org to ensure security");
-        try {
-            JS.Array args = new JS.Array();
-            args.addElement(host);
-            Object ret = new XMLRPC("http://xmlrpc.xwt.org/RPC2/", "dns.resolve").call(args);
-            if (ret == null || !(ret instanceof String)) throw new Exception("    xmlrpc.xwt.org returned non-String: " + ret);
-            resolvedHosts.put(host, ret);
-            return;
-        } catch (Throwable e) {
-            throw new HTTPException("exception while attempting to use xmlrpc.xwt.org to resolve " + host + ": " + e);
-        }
+        if (Platform.detectProxy() == null)
+            throw new HTTPException("could not resolve hostname \"" + host + "\" and no proxy configured");
     }
 
 
@@ -293,9 +283,11 @@ public class HTTP {
             org.xwt.js.JS.Array args = new org.xwt.js.JS.Array();
             args.addElement(url.toString());
             args.addElement(url.getHost());
+            /* FIXME
             Object obj = pacFunc.call(args);
             if (Log.verbose) Log.log(this, "  PAC script returned \"" + obj + "\"");
             pac = obj.toString();
+            */
         } catch (Throwable e) {
             if (Log.on) Log.log(this, "PAC script threw exception " + e);
             return null;
@@ -789,7 +781,10 @@ public class HTTP {
                 }
 
                 JS.CompiledFunction scr = JS.parse("PAC script at " + url, 0, new StringReader(script));
+                // FIXME
+                /*
                 scr.call(new JS.Array(), proxyAutoConfigRootScope);
+                */
                 return (JS.Callable)proxyAutoConfigRootScope.get("FindProxyForURL");
             } catch (Exception e) {
                 if (Log.on) {
@@ -825,6 +820,8 @@ public class HTTP {
 
                 if (authorization != oldAuth) return;
                 if (Log.on) Log.log(Authorization.class, "displaying proxy authorization dialog");
+                /*
+                  FIXME
                 Message.Q.add(new Message() {
                         public void perform() {
                             Box b = new Box();
@@ -834,7 +831,7 @@ public class HTTP {
                             b.put("proxyIP", proxyIP);
                         }
                     });
-
+                */
                 waitingForUser.block();
                 if (Log.on) Log.log(Authorization.class, "got proxy authorization info; re-attempting connection");