Download Jar. Libraryless. Click here for Pure Java version (5666L/42K).
1 | !7 |
2 | |
3 | set flag LeanMode. |
4 | set flag Standalone. |
5 | |
6 | p { |
7 | serveHttps(1443, new File("keystore.p12"), "bugreport"); |
8 | disableCertificateValidation(); |
9 | S url = "https://localhost:1443"; |
10 | byte[] bytes = loadBinaryPage(url); |
11 | print("Image loaded OK (" + l(bytes) + " bytes). Now please try opening " + url +" with Chrome/Firefox."); |
12 | } |
13 | |
14 | html { |
15 | ret serveFile(new File("roses.png"), "image/png"); |
16 | } |
Began life as a copy of #1024138
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1024140 |
Snippet name: | Test serving big images over HTTPS (JDK 11+ bug), version for Oracle |
Eternal ID of this version: | #1024140/8 |
Text MD5: | 51180564bf775a15fe3d670dba6435f5 |
Transpilation MD5: | 3420e8c9dbf3e518c8f90aad4f74331e |
Author: | stefan |
Category: | javax / networking |
Type: | JavaX source code (desktop) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-07-22 22:56:21 |
Source code size: | 404 bytes / 16 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 302 / 959 |
Version history: | 7 change(s) |
Referenced in: | [show references] |