// Stop checks, let the other thread return ASAP
System.out.println("stopChecks()");
}
public Request newRequest(HttpUrl url, String ext) {
Request req = new Request();
String path = url.getPath();
try {
req.setMethod("GET");
req.setVersion("HTTP/1.0");
if (url.getPath().endsWith("/")) {
path = url.getPath();
path = path.substring(0, path.length() - 1);
}
req.setURL(new HttpUrl(url.getScheme() + "://" + url.getHost() + ":" + url.getPort() + path + ext));
req.setHeader("Host", url.getHost() + ":" + url.getPort());
req.setHeader("Connection", "Close");
}
catch (java.net.MalformedURLException e) {
return null;
}
/*