E.g., run echo GET / | openssl s_client -connect host:port
It does the handshake then stalls until you press a key (which will be left unused in the buffer when openssl exits), then it sends the input. I guess the kbhit() in the s_client code is what is waking it up. I've played around with various command-line arguments but haven't found one to bypass the issue. (Windows Server 2008R2, openssl 1.0.1e bindist) -- Born in Roswell... married an alien... http://emptyhammock.com/