I'm writing a reply in this forum, and taking my sweet old time submitting it. It's long. It's detailed. It has carefully constructed links. At this point I can't even remember what I said in it. When I finally get around to submitting it, the post fails. I hit the back button and my post text is gone! I look under the desk to make sure it didn't drop on the floor accidentally. It didn't. I'm screwed!

Ooorr am I?

I make sure not to close the tab (Firefox) with the post details. If I refresh, it gives me the "blah blah blah POST details blah refresh blah" popup window. So my text is there SOMEWHERE, right? What if I install an extension to view the POST details! Yeah, that will do it, sure! I'll just use one of those cool extension things to view the live headers and POST data as it... This extension will be installed the next time you restart Firefox. CRAP! I'm screwed!

Ooorr am I?

Code:
import java.io.*;
import java.net.*;

public class WebServer {

public static void main(String[] args) {
try {
ServerSocket server = new ServerSocket(80);
server.setSoTimeout(0);
Socket client = server.accept();
BufferedReader in = new BufferedReader(new InputStreamReader(client.getInputStream()));

String data = null;
while((data = in.readLine()) != null)
System.out.println(data);

} catch(Exception e) {
e.printStackTrace();
}
}

}


Edit c:\windows\system32\drivers\etc to add:

Code:
127.0.0.1    empegbbs.com


nbtstat -R on the command line, run my java app, refresh my browser and...

THERE YOU ARE YOU LITTLE POSTING! Get back in my textarea where you belong.
_________________________
Mark Cushman