Hi,
I am running an SSL connection code inside a JSP file.
I would like to capture the output of the entire process.
System.setProperty("javax.net.ssl.debug", "all");
ByteArrayOutputStream errorStream = new ByteArrayOutputStream();
PrintStream ps = new PrintStream(errorStream, true);
System.setOut(ps);
System.setErr(ps);
...
// Print debug information.
out.println(errorStream.toString());
It does not print anything, the buffer is empty. any idea why ?
Thanks,
Efi