X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=src%2Forg%2Fxwt%2FHTTP.java;h=7295f1fba8fa17f3e6c3dd159345f01a0b09d932;hb=6a96430e10e27fc1de5754cb5add705f929dd109;hp=3bd0a6b66aa43088ba8d2ca8929826f6df64a03d;hpb=16ea48d834626fb9815da2f7632c3633838fb790;p=org.ibex.core.git diff --git a/src/org/xwt/HTTP.java b/src/org/xwt/HTTP.java index 3bd0a6b..7295f1f 100644 --- a/src/org/xwt/HTTP.java +++ b/src/org/xwt/HTTP.java @@ -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");