use fstream rather than BIO to write server response...if SSL_read error, print it