Download Jar. Libraryless. Click here for Pure Java version (6591L/46K).
!7 p { set NanoHTTPD_debug; NanoHTTPD.LOG.setLevel(Level.FINEST); serveHttps(8443, serverSocketFactory_botCompanyEtc()); } sS demoText() { ret lines(mapI(countIterator(1000), i -> "Line " + (i+1))); } html { if (eq(uri, "/submit")) { S text = params.get("text"); ret "Data received (" + nChars(text) + ")"; } ret hpostform( p(htextarea(demoText(), name := "text", rows := 10, cols := 40)) + p(hsubmit()), action := "submit"); }
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1030030 |
| Snippet name: | Webserver for demonstrating (fixed) FireFox https problem |
| Eternal ID of this version: | #1030030/9 |
| Text MD5: | fbd6d76d1bff69346a3b01e41e23a7ea |
| Transpilation MD5: | 10ad0bc186a8bcac8ae26f9d2c9b28ee |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX source code (desktop) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2020-11-02 16:11:37 |
| Source code size: | 489 bytes / 23 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 558 / 1638 |
| Version history: | 8 change(s) |
| Referenced in: | [show references] |