public static void main
(String[] args
) {
try {
out.write("GET /index.html HTTP/1.0\r\n");
out.flush();
while((linea = in.readLine()) != null)
byte[] buffer = new byte[1024];
int leidos = 0;
leidos = in2.read(buffer);
while(leidos != -1){
System.
out.
println(buffer.
toString());
leidos = in2.read(buffer);
}
// TODO Auto-generated catch block
e.printStackTrace();
}
}
0 comment about "Mostrar por pantalla el codigo de una web"