Java HTTPS server code failing

' - HTTPS Server Test Program' tutorial was cited in a Stack Overflow forum post in 2015.

The - HTTPS Server Test Program tutorial was cited in a Stack Overflow forum post in 2015.

Subject: Java HTTPS server code failing
Date: Dec 5, 2015
Author: user555303

As I said, I've tried a bunch of other example programs that are 
similar, and they all seem to fail at the same area, after the read
of the request.

NOTE that if I use openssl s_client and type the same input request in
manually it works.

Can anyone help point me to what might be wrong?

Thanks, Jim


I think that I've made some progress, with a different example server 
code, the one from here:

First of all, again, if I run this app and hit it from 
"openssl s_client", it works fine when I manually enter a "GET".

But, if I try using Firefox, as soon as I send a request to (FYI, doesn't matter if I use a hostname that 
matches cert), I get a popup asking me to add an exception and ALSO, 
I get at the app/server end:

Table of Contents

 About This Book

 Reference Citations in 2017

 Reference Citations in 2016

Reference Citations in 2015

 SSL/TLS Overview - Change Cipher Spec Protocol

 PFX to Java Keystore / Extract private key from Java Keystore

 Android talks #08 decompiling android applications

 Cpronto 2.5 Administration Guide


 Cryptographic Protocols - The Peruvian Coin Flip

 How to View XML Files

 Bug 378637 - Add support for connecting to HTTP proxy over HTTPS

 an information literacy technology for chemistry documents

 org.jruby.exceptions.RaiseException: stack level too deep

 Another function that helps programmers calculate


 Application of the Enhanced SHA-1

 New Media Workshop [COMM7200]

 Apex Soap call authentication problem

 Recording Video of an Android Device

Java HTTPS server code failing

 How to Capture Logcat Files Using ADB

 Modifying and Recompiling Settings.APK

 Reference Citations in 2014

 Reference Citations in 2013

 Reference Citations in 2012

 Reference Citations in 2011

 Reference Citations in 2010

 Reference Citations in 2009

 Reference Citations in 2008

 Reference Citations in 2007

 Reference Citations in 2006

 Reference Citations in 2005

 Reference Citations in 2004

 Reference Citations in 2003

 PDF Printing Version