So once you have a connection to a web server
it is likely that the first thing you will want to do is get data.
Getting data from a web server is as easy as opening a connection and
uses a data stream to handle the flow of data between your application
and the server.
Typically, you will read in a data file from
a given URL using something like the following:
Socket s = new Socket("www.extropia.com",
DataInputStream d = new DataInputStream
String line = d.readLine();
System.out.println("line: " + line);
System.out.println("" + url.openStream());
catch (IOException e)
System.out.println("Error: " + e);