Getting Information from a Remote Site
try
{
Socket s = new Socket("www.extropia.com",
80);
DataInputStream d = new DataInputStream
(s.getInputStream());
String line = d.readLine();
System.out.println("line: " + line);
System.out.println("" + url.openStream());
}
catch (IOException e)
{
System.out.println("Error: " + e);
}
Additional Resources:
Table of Contents Sending Information to a Remote Site |
|
Hosted by Graphics & Media Lab
http://graphics.cs.msu.su |
|
mailto: Laboratory |