With your script if you use the host "www.google.com" (without the www. you are not receiving the full page text) both ssl/non ssl have .rq > 0. And only in ssl is $sockerr > 0. Additionally, this is not limited to google. It is any ssl connection.

If you echo the same information in my provided script, .rq is 0. (I have seen it larger than 0, but am unable to reproduce).

From mine:
Code:
sockerr: 0
wsmsg: [0] Unknown Error
header size: 734
data size: 33378
Bytes Send: 62 - Bytes to send: 0
Bytes Rcvd: 34114 - Bytes to rcvd: 0
sockerr: 3
wsmsg: [10101] Host disconnected
header size: 734
data size: 33442
Bytes Send: 63 - Bytes to send: 0
Bytes Rcvd: 34178 - Bytes to rcvd: 0


From yours:
Code:
[SockOpen] httptest
[SockClose] httptest
Bytes Send: 62 - Bytes to send: 0
Bytes Rcvd: 34081 - Bytes to rcvd: 9
[SockOpen] httptests
[SockClose Error] httptests: 3 10101 [10101] Host disconnected
Bytes Send: 63 - Bytes to send: 0
Bytes Rcvd: 34103 - Bytes to rcvd: 9