\r
public abstract class ThrustCurveAPI {\r
\r
- private static String url_base = "http://www.thrustcurve.org/servlets/";\r
- \r
public static SearchResponse doSearch( SearchRequest request ) throws MalformedURLException, IOException {\r
\r
String requestString = request.toString();\r
\r
AndroidLogWrapper.d(ThrustCurveAPI.class, "doSearch: " + requestString);\r
- URL url = new URL(url_base + "search");\r
+ // Froyo has troubles resolving URLS constructed with protocols. Because of this\r
+ // we need to do it in parts.\r
+ URL url = new URL("http", "www.thrustcurve.org", "/servlets/search");\r
\r
OutputStream stream;\r
\r
String requestString = dr.toString();\r
\r
AndroidLogWrapper.d(ThrustCurveAPI.class, "downloadData: " + requestString);\r
- URL url = new URL(url_base + "download");\r
+ // Froyo has troubles resolving URLS constructed with protocols. Because of this\r
+ // we need to do it in parts.\r
+ URL url = new URL("http", "www.thrustcurve.org", "/servlets/download");\r
\r
OutputStream stream;\r
\r