801802803804805806807808809810811
} buff.append((byte)i); } String httpCode = lineString(buff.getContent()); buff.clean(); doc.setHttpCode(httpCode); // read the HTTP headers boolean finishedHeaders = false;
819820821822823824825826827828829
} // HTTP header processing if (i == LF) { String line = lineString(buff.getContent()); buff.clean(); // empty line means "end of headers" if (line.trim().equals("")) { finishedHeaders = true; } else { HttpHeader head = new HttpHeader(line);
847848849850851852853854855856857
} } } } buff.clean(); // if there is a DownloadRule, ask if we should download // the data if (downloadRules != null) { // if it is not allowed to download this URL, close socket