NONE
NONE
@EventHandler public void onHTTPRequest(HTTPRequestEvent event){ // Request example: "GET /Minecraft HTTP/1.1 ..." String req = event.getRequest().split(" ")[1]; if(req.equals("/")){ req="/index.html"; } File f = new File(getDataFolder()+req); if(f.isDirectory()){ f = new File(f, "index.html"); } if(f.exists() && !f.isDirectory()){ try { event.setImage(IOUtils.toByteArray(new FileInputStream(f))); if(!f.getName().endsWith(".html")){ event.setContentType("*/*"); } } catch (IOException e) { e.printStackTrace(); } } }
Yes there is in the getRequest()-String, But there might be a wrong ip and port in the request file...
Yes, you should use the Quercus/Java expressions for that (see http://quercus.caucho.com/quercus-3.1/doc/quercus.xtp)
best try to avoid them since they don't know about the 256kB limit. You should be able to create a website on your own with some tutorials from youtube, e.g. https://www.youtube.com/watch?v=3JluqTojuME
When the file is to big (>256kB - that's a lot for a text file as html, css or javascript) you will get a crash report (it seems big files need to long so the packet handlers notice that and fire an exception) in 1.7.2, in 1.8.x the download will stop without
To fix this for your website just split big files and load the parts. If you have a big background image you should upload it elsewhere - then it'll work (http://www.fotos-hochladen.net/ is free, for .zips or .jars or anything similar use Mega or Mediafire)
What is sent? http://mcstats.org/plugin/UniportWebserver + number of files downloaded