I get the same error using xHarbour. Unfortunately, the https protocol is not supported by tip.lib.
EMG
I get the same error using xHarbour. Unfortunately, the https protocol is not supported by tip.lib.
EMG
TimStone wrote:Computers need to rattle our cages.
Enrico,
Using xHarbour.com I have no problem with this class. My older version has been executing it,. as written, just fine. Its the Harbour with MSVC that is having a problem.
When I look at the harbor source code, it would appear that https IS supported.
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.
Tim
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.
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
Sorry, I don't use Harbour.
EMG
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!" )
ENDIFFUNCTION 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 )Could you email me your make file section with the libs you are including, and in what order. I'm wondering if I have a conflict.
"TimStone@MasterLinkSoftware.com"
Thanks
Thanks to Andre who revised the libraries and they now work !
Great! Can I have the new lib? I would try it with xHarbour but the link is not working anymore.
EMG
Sorry, can I have the source code, please?
EMG
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\