From: kruland2607 Date: Wed, 9 May 2012 02:37:05 +0000 (+0000) Subject: froyo has problems parsing real urls. We trick it by using the three argument URL... X-Git-Tag: upstream/12.09^2~102^2 X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=c9e07ce31c1d8ad6a1ca48f1f3234584210fc544;p=debian%2Fopenrocket froyo has problems parsing real urls. We trick it by using the three argument URL constructor. git-svn-id: https://openrocket.svn.sourceforge.net/svnroot/openrocket/branches/froyo_12.03@658 180e2498-e6e9-4542-8430-84ac67f01cd8 --- diff --git a/android/src/net/sf/openrocket/android/thrustcurve/ThrustCurveAPI.java b/android/src/net/sf/openrocket/android/thrustcurve/ThrustCurveAPI.java index 6b74c285..0d1a3de4 100644 --- a/android/src/net/sf/openrocket/android/thrustcurve/ThrustCurveAPI.java +++ b/android/src/net/sf/openrocket/android/thrustcurve/ThrustCurveAPI.java @@ -18,14 +18,14 @@ import net.sf.openrocket.motor.ThrustCurveMotorPlaceholder; public abstract class ThrustCurveAPI { - private static String url_base = "http://www.thrustcurve.org/servlets/"; + //private static String url_base = "http://www.thrustcurve.org/servlets/"; public static SearchResponse doSearch( SearchRequest request ) throws MalformedURLException, IOException { String requestString = request.toString(); AndroidLogWrapper.d(ThrustCurveAPI.class, "doSearch: " + requestString); - URL url = new URL(url_base + "search"); + URL url = new URL("http", "www.thurustcurve.org", "servlets/search"); OutputStream stream; @@ -58,7 +58,7 @@ public abstract class ThrustCurveAPI { String requestString = dr.toString(); AndroidLogWrapper.d(ThrustCurveAPI.class, "downloadData: " + requestString); - URL url = new URL(url_base + "download"); + URL url = new URL("http", "www.thurustcurve.org", "servlets/download"); OutputStream stream;