How do I get the decoded data after the SSL Handshake is complete?
At the moment it seems to decrypt just some of the data.
Steps to reproduce
- Save and Run this code
- Go to https://localhost:1500 - You should notice the beginning and end of the request has something like:
?GET ... #$?+{???u7Y???
/home/myuser/Desktop/Stuff/Test/WebServers; JAVA_HOME=/opt/java/jdk1.8.0_40 /usr/local/netbeans-8.0.2/java/maven/bin/mvn "-Dexec.args=-classpath %classpath com.webservers.HttpsServer" -Dexec.executable=/opt/java/jdk1.8.0_40/bin/java -Dexec.classpathScope=runtime org.codehaus.mojo:exec-maven-plugin:1.2.1:exec
– Reshtrequest = Charset.defaultCharset().decode(inputBuffer).toString();
. Here should be explicitly specified needed charset. This could lead to your problem. – Buck