Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

javax.net.ssl.SSLServerSocket reads only a char "G" in https header line but not "GET / HTTP/1.1"

  • No replies
  • 3 have this problem
  • 1 view
more options

trying out NanoHTTPD: http://elonen.iki.fi/code/nanohttpd/

i changed one line in its NanoHTTPD constructor:

// myServerSocket = new ServerSocket(myTcpPort); myServerSocket = SSLServerSocketFactory.getDefault().createServerSocket(myTcpPort);

and also supplied 2048-bit RSA for javax.net.ssl.keyStore. it works (and responding all https) on MSIE8.0 and Firefox 9.0.1, but fails on Firefox 10.0.1 and Google Chrome 17.0.963.56 m, the http header line which is supposed to be "GET / HTTP/1.1" now only gets a char "G" and nothing else.

trying out NanoHTTPD: http://elonen.iki.fi/code/nanohttpd/ i changed one line in its NanoHTTPD constructor: // myServerSocket = new ServerSocket(myTcpPort); myServerSocket = SSLServerSocketFactory.getDefault().createServerSocket(myTcpPort); and also supplied 2048-bit RSA for javax.net.ssl.keyStore. it works (and responding all https) on MSIE8.0 and Firefox 9.0.1, but fails on Firefox 10.0.1 and Google Chrome 17.0.963.56 m, the http header line which is supposed to be "GET / HTTP/1.1" now only gets a char "G" and nothing else.