A Dummy Web Server
public class DummyServer {
public static void main(String [] args) throws Exception {
ServerSocket server = new ServerSocket(8080) ;
Socket sock = server.accept() ;
BufferedReader in = new BufferedReader(
new InputStreamReader(sock.getInputStream())) ;
String method = in.readLine() ;
System.out.println(method) ;
String field = in.readLine() ;
System.out.println(field) ;
if(field.length() == 0) break ;
. . . Send a dummy response to client socket . . .