n=from_client.read(buff);
if(n==-1) break;
headerString.append(String.valueOf(buff, 0, n));
if(n!=4096) break;
}
HTTPHeaders h = HTTPHeaders.read(headerString.toString());
if(h.url.equals("/")){
String r = "HTTP/1.0 307 Temporary Redirect\r\nLocation: " + "http://127.0.0.1:8123/game/index.php?page=overview\r\n\r\n";
client.getOutputStream().write(r.getBytes(), 0, r.getBytes().length);
}else{
Network.copyHTTPGet("http://" + this.parent.baseURL + ".ogame.fr" + h.url, client.getOutputStream(), this.parent.baseURL);