TimStone wrote:Computers need to rattle our cages.
TimStone wrote:Using xHarbour.com I have no problem with this class.
TimStone wrote:That little line about computers is "humor". It means that when a computer has the opportunity, it will make problems for us ! "Rattle our cages" means that something, or someone, likes to do something we don't want, or expect.
TimStone wrote:I'm using an older version of xHarbour.com.
I have two builds of my primary application. One is with the older xHarbour and the other with MSVC 2010 / Harbour. We have resolved every problem with the new one except this issue.
I can certainly consider an alternative, but I don't see there is one.
Any suggestions would be greatly appreciated. I cannot distribute these newer applications until I can get this xml interaction working.
Tim
FUNCTION Test
LOCAL socket, ssl_ctx, buffer, tmp, ssl
hb_inetInit()
socket := hb_inetCreate()
hb_inetTimeout( socket, 2500 )
hb_inetConnect( "www.fortify.net", 443, socket )
IF hb_inetErrorCode( socket ) = 0
SSL_INIT()
ssl_ctx := SSL_CTX_NEW()
ssl := SSL_NEW( ssl_ctx )
hb_inetFD( socket )
SSL_SET_FD( ssl, hb_inetFD( socket ) )
tmp := SSL_CONNECT( ssl )
IF SSL_GET_ERROR( ssl, tmp ) = 0 // Everything OK
tmp := SSL_WRITE( ssl, "GET / http/1.1" + CRLF + "Host: " + "www.fortify.net" + CRLF + CRLF )
IF SSL_GET_ERROR( ssl, tmp ) = 0 // Everything OK
buffer := Space( 1024 )
tmp := SSL_READ( ssl, @buffer )
IF SSL_GET_ERROR( ssl, tmp ) = 0 // Everything OK
msginfo( buffer )
ENDIF
ELSE
msgStop( "SSL_WRITE ERROR" )
ENDIF
ELSE
msgStop( "SSL_CONNECT ERROR" )
ENDIF
hb_inetClose( socket )
ELSE
msgStop( "UNABLE TO CONNECT!" )
ENDIF
FUNCTION Test2
LOCAL oHttp := TIpClientHTTP():new( "https://www.fortify.net", .F. )
IF .NOT. oHttp:open() // Open the connection
MsgAlert( "Connection error:", oHttp:lastErrorMessage( ) )
ELSE
XBROWSE( oHttp )
ENDIF
RETURN ( NIL )
SET HB_TIP_OPENSSL=yes
SET HB_HAS_OPENSSL=yes
SET HB_STATIC_OPENSSL=yes
SET HB_WITH_CURL=e:\libcurl-7.19.3-win32-ssl-msvc\include
SET HB_WITH_OPENSSL=E:\OpenSSL-Win32\include\
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: No registered users and 63 guests