package zutil.test; import java.io.IOException; import java.util.Map; import zutil.net.http.HttpPage; import zutil.net.http.HttpPrintStream; import zutil.net.http.HttpServer; public class HTTPUploaderTest implements HttpPage{ public static void main(String[] args) throws IOException{ HttpServer server = new HttpServer("localhost", 80); server.setDefaultPage(new HTTPUploaderTest()); server.run(); } public void respond(HttpPrintStream out, Map client_info, Map session, Map cookie, Map request) { if(!session.containsKey("file1")){ out.println("" + "
" + "

Please specify a file, or a set of files:
" + " " + "

" + " " + "
" + ""); } } }