I\'m not a Java programmer at all. I try to avoid it at all costs actually, but it is required that I use it for a class (in the school sense). The teacher requires that w
Your HTTP request is not complete without 2 carriage return + linefeed pairs. You should probably also call close after the request is sent:
out.print("GET /index.html HTTP/1.0\r\n"); // maybe print optional headers here // empty line out.print("\r\n"); out.flush(); out.close();