[twsocket] ICS SSL support for Delphi4...

2009-04-15 Thread Paul Dirschka
Hello,

I'm looking at ICS-V5 which seems to fully support Delphi4, but I don't see the 
any SSL (esp.
tSSLHttpCli) support for that version.  I've retrieved both OverbyteICSV5 and 
ICSslSrcV5i which I
believe are all that is required.  The ICSslSrcV5i has packages for Delphi 5 
and later but none for
Delphi 4.  Is there some reason that D4 won't be able to implement ICS SSL?

Thanks,
Paul

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


[twsocket] ICS SSL support for Delphi4...

2009-04-15 Thread Paul Dirschka
That was not the answer I'd hoped for but I thank you for it none the less.

I'm thinking that I will create my tsslhttpcli based code in D7 as a DLL and 
link it in my D4 application. Do you think that might
work?

Thanks,
Paul


-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


[twsocket] Proxy question OverbyteICSHttpstst...

2009-05-06 Thread Paul Dirschka
Hello,

I'm testing OverbyteICSHttpstst GET that is failing when passed through Squid 
Proxy 2.7. 
The request is successful when used without the proxy.
The request is successful using Firefox or IE using the Proxy.

Following is the log generated by the failed request in OverbyteICSHttpstst.  
If you notice something that might help me understand
why this is failing please let me know.

The request seems to be handled by the proxy (at least initially) successfully, 
and then SSL handshake to the site also seems to be
successful, but from what I can tell the GET never makes it to the host. 

Thanks,
Paul

Connecting...
13:54:50:800 State = httpNotConnected
13:54:50:800 Login 192.168.123.29
13:54:50:800 State = httpDnsLookup
13:54:50:800 State = httpDnsLookupDone
13:54:50:800 connect to 192.168.123.29/3128
13:54:50:800 TWSocket will connect to 192.168.123.29:3128
13:54:50:800 SessionConnected
13:54:50:815 State = httpConnected
13:54:50:815 State = httpWaitingProxyConnect
13:54:50:815 5 header lines to send
CONNECT thesite.domain.com:443 HTTP/1.1
User-Agent: Mozilla/4.0 (compatible; ICS; MSIE 4.0)
Host: thesite.domain.com:443
Proxy-Connection: Keep-Alive
Content-Length: 0
cmd CONNECT thesite.domain.com:443 HTTP/1.1
cmd User-Agent: Mozilla/4.0 (compatible; ICS; MSIE 4.0)
cmd Host: thesite.domain.com:443
cmd Proxy-Connection: Keep-Alive
cmd Content-Length: 0
cmd 
13:54:50:815 009DD874 PutDataInSendBuffer 3808  len 179 [1]
13:54:50:831 009DD874 TryToSend 3808
13:54:50:831 SendRequest Done
13:54:50:831 009DD874 TryToSend 3808
13:54:50:831 009DD874 TryToSend 3808
13:54:50:940 Data available. Len=39
13:54:50:956 Proxy connected: HTTP/1.0 200 Connection established


13:54:50:956 Start SSL handshake
13:54:50:956 009DD874 StartSslHandshake 3808
13:54:50:956 009DD874 InitSSLConnection 3808
13:54:50:956 009DD874 BIO_ctrl(sslbio, BIO_C_SET_SSL, BIO_NOCLOSE, 0xDD3330) = 
1   [2]
13:54:50:956 ICB SSL_CB_HANDSHAKE_START
13:54:50:971 ICB SSL_connect: before/connect initialization
13:54:50:971 ICB SSL_connect: SSLv2/v3 write client hello A
13:54:50:971 ICB SSL_connect: error in SSLv2/v3 read server hello A
13:54:50:971 009DD874 BIO_read(sslbio, 0x1, 0) = -1   [3]
13:54:50:971 009DD874 BIO_should_retry(sslbio) = 1   [4]
13:54:50:971 009DD874 TriggerEvent sslFdRead 3808
13:54:50:987 009DD874 TriggerEvent sslFdWrite 3808
13:54:50:987 SslAsyncSelect 3808, 1 FD_READ
13:54:50:987 009DD874 TCustomSslWSocket.Do_FD_READ 3808
13:54:50:987 009DD874 BIO_ctrl_get_read_request(nbio) = 7   [5]
13:54:50:987 009DD874 Winsock recv( 3808, 0x12DD4C, 7, 0) = -1   [6]
13:54:50:987 009DD874 TriggerEvents 3808 SslState: SSL_ST_INIT  // MayFD_Read=0 
MayDoRecv=-1 MayFD_Write=-1 MaySslTryToSend=-1
bSslAllSent=-1 bAllSent=-1
13:54:51:003 009DD874 BIO_ctrl_pending(nbio) = 88   [7]
13:54:51:003 009DD874 BIO_ctrl_get_write_guarantee(nbio) = 4096   [8]
13:54:51:003 SslAsyncSelect 3808, 2 FD_WRITE
13:54:51:003 009DD874 TCustomSslWSocket.Do_FD_WRITE 3808
13:54:51:003 009DD874 BIO_ctrl_pending(nbio) = 88   [9]
13:54:51:003 009DD874 BIO_read(nbio, 0x12BD64, 88) = 88   [10]
13:54:51:018 009DD874 my_RealSend (0xEE0, 1228132, 88) = 88   [11]
13:54:51:018 009DD874 BIO_ctrl_pending(nbio) = 0   [12]
13:54:51:018 009DD874 TriggerEvents 3808 SslState: SSL_ST_INIT  // MayFD_Read=0 
MayDoRecv=-1MayFD_Write=-1 MaySslTryToSend=-1
bSslAllSent=-1 bAllSent=-1
13:54:51:018 009DD874 BIO_ctrl_pending(nbio) = 0   [13]
13:54:51:018 009DD874 BIO_ctrl_get_write_guarantee(nbio) = 4096   [14]
13:54:51:018 009DD874 TCustomSslWSocket.Do_FD_WRITE 3808
13:54:51:034 009DD874 BIO_ctrl_pending(nbio) = 0   [15]
13:54:51:034 009DD874 BIO_read(nbio, 0x12BD70, 0) = 0   [16]
13:54:51:034 009DD874 TriggerEvents 3808 SslState: SSL_ST_INIT  // MayFD_Read=0 
MayDoRecv=-1 MayFD_Write=-1 MaySslTryToSend=-1
bSslAllSent=-1 bAllSent=-1
13:54:51:034 009DD874 BIO_ctrl_pending(nbio) = 0   [17]
13:54:51:034 009DD874 BIO_ctrl_get_write_guarantee(nbio) = 4096   [18]
13:54:51:034 009DD874 TCustomSslWSocket.Do_FD_WRITE 3808
13:54:51:050 009DD874 BIO_ctrl_pending(nbio) = 0   [19]
13:54:51:050 009DD874 BIO_read(nbio, 0x12BD70, 0) = 0   [20]
13:54:51:065 009DD874 TriggerEvents 3808 SslState: SSL_ST_INIT  // MayFD_Read=0 
MayDoRecv=-1 MayFD_Write=-1 MaySslTryToSend=-1
bSslAllSent=-1 bAllSent=-1
13:54:51:065 009DD874 BIO_ctrl_pending(nbio) = 0   [21]
13:54:51:065 009DD874 BIO_ctrl_get_write_guarantee(nbio) = 4096   [22]
13:54:51:143 009DD874 TCustomSslWSocket.Do_FD_READ 3808
13:54:51:143 009DD874 BIO_ctrl_get_read_request(nbio) = 7   [23]
13:54:51:143 009DD874 Winsock recv( 3808, 0x12DD74, 7, 0) = 7   [24]
13:54:51:159 009DD874 BIO_write(nbio, 0x12DD74, 7) = 7   [25]
13:54:51:159 009DD874 BIO_ctrl(nbio, BIO_CTRL_FLUSH, 0, 0x0) = 1   [26]
13:54:51:159 ICB SSL_connect: error in SSLv3 read server hello A
13:54:51:159 ICB SSL_connect: error in SSLv3 read server hello A
13:54:51:159 009DD874 BIO_read(sslbio, 0x1, 0) = -1   [27]
13:54:51:159 009DD874 BIO_should_retry(sslbio) = 1   [28]
13:54:51:175 009DD874