conn = new Socket;if (conn.listen (8890, "UTF-8")) {for(;;){incoming = conn.poll();if (incoming != null){var str = conn.read(999999);for(;;){str = incoming.read(999999);if (str != null){alert(str);incoming.writeln ("HTTP/1.0 200 OK");incoming.writeln ("Content-Type: text/html");incoming.writeln();incoming.writeln ("<html><body><h3>Welcome to my Homepage.</h3></body></html>");incoming.writeln();// done!incoming.close();delete incoming;break}}}}} else {alert ("can't listen.")}
//Web Server for ID