Page 1 of 3
Is TIpClientHttp supposed to work for secured sites?
Posted: Wed Jul 22, 2020 12:58 pm
by HGAutomator
Hi,
TIpClientHttp connects to ordinary sites like google. But it hangs with a secured site.
So e.g., if you try
Code: Select all
Http_o := TIpClientHttp():New( "http://www.google.com" )
, there no issues.
but if you attempt to open
https://harbour.github.io, thus:
Code: Select all
Http_o := TIpClientHttp():New( "https://harbour.github.io" )
, it hangs. The specific point that it hangs, is in httpcli.prg, at this line:
Code: Select all
::super:new( oUrl, iif( hb_defaultValue( xTrace, .F. ), "http", xTrace ), oCredentials )
The parent of TIpClientHttp is TIPClient.
I could try and rewrite this line, but wanted to confirm that I'm sending the right parameters (I tried sending a second parameters xTrace := .T.) to the constructor.
Re: Is TIpClientHttp supposed to work for secured sites?
Posted: Wed Jul 22, 2020 1:47 pm
by danielmaximiliano
Hello: can you publish a small example since the HBTIP library does connect to the different secure sites such as HTTPs, FTPs, POP3s and SMTPs
Hola: puede usted publicar un pequeño ejemplo, ya que la libreria HBTIP si se conecta a los diferentes sitios seguros como HTTPs, FTPs, POP3s y SMTPs
Re: Is TIpClientHttp supposed to work for secured sites?
Posted: Wed Jul 22, 2020 2:13 pm
by serge_girard
Try this:
In your HBC file
Code: Select all
inc=yes
head=native
libs=hbssl
libs=libeay32
libs=ssleay32
in your HBP file
Serge
Re: Is TIpClientHttp supposed to work for secured sites?
Posted: Wed Jul 22, 2020 3:55 pm
by danielmaximiliano
serge_girard wrote: ↑Wed Jul 22, 2020 2:13 pm
Try this:
In your HBC file
Serge
Hello, the browser has the ability to resolve ports and the way to encrypt the data through the SSL tunnel, investigating with a site that tests other sites indicates an error in the connection to a secure port 443

- 2020-07-22 12_48_01-examinator.png (33.04 KiB) Viewed 3627 times
Re: Is TIpClientHttp supposed to work for secured sites?
Posted: Wed Jul 22, 2020 4:53 pm
by HGAutomator
Hi Daniel,
That was the example, above:
Code: Select all
Http_o := TIpClientHttp():New( "https://harbour.github.io" )
This connects with http servers, but hangs if it begins with https.
danielmaximiliano wrote: ↑Wed Jul 22, 2020 1:47 pm
Hello: can you publish a small example since the HBTIP library does connect to the different secure sites such as HTTPs, FTPs, POP3s and SMTPs
Hola: puede usted publicar un pequeño ejemplo, ya que la libreria HBTIP si se conecta a los diferentes sitios seguros como HTTPs, FTPs, POP3s y SMTPs
Re: Is TIpClientHttp supposed to work for secured sites?
Posted: Wed Jul 22, 2020 4:58 pm
by HGAutomator
Hi,
Ok thanks Serge, I'll give it a try.
What would be the command line, to use these hbc and hbp files? I had problems with those, and am just using a simple batch file, until I can figure out what was wrong my hb? files.
This is the command line that I'm using, at this stage of the project:
hbmk2 -b main.prg -oMain -ic:\minigui\Harbour\include -Lc:\hb32\contrib\hbtip -lhbmisc -Lc:\HWDebug -lhbtip -lhwgdebug
serge_girard wrote: ↑Wed Jul 22, 2020 2:13 pm
Try this:
In your HBC file
Code: Select all
inc=yes
head=native
libs=hbssl
libs=libeay32
libs=ssleay32
in your HBP file
Serge
Re: Is TIpClientHttp supposed to work for secured sites?
Posted: Thu Jul 23, 2020 3:40 pm
by serge_girard
Sorry, but I don't use command line. Daniel or Edward? Or Claudio!
Serge
Re: Is TIpClientHttp supposed to work for secured sites?
Posted: Thu Jul 23, 2020 4:08 pm
by HGAutomator
What tool are you using, that compiles with the .hb? files?
It doesn't have to be the command line, but I wasn't aware of any Make tool that integrates everything.
I mean, aside from the commercial xHarbour and Xailer IDEs, and Fivewin.
Re: Is TIpClientHttp supposed to work for secured sites?
Posted: Thu Jul 23, 2020 5:02 pm
by danielmaximiliano
HGAutomator wrote: ↑Thu Jul 23, 2020 4:08 pm
What tool are you using, that compiles with the .hb? files?
It doesn't have to be the command line, but I wasn't aware of any Make tool that integrates everything.
I mean, aside from the commercial xHarbour and Xailer IDEs, and Fivewin.
Hello: only from the CMD command line adding the path where the harbour binaries are hosted to your PATH as indicated in the image.
you can compile your .prg by adding other configuration parameters or compile your .HBP'royect 'file, HBMK2 will automatically use the HBC'onfiguration' file with the same name

- 2020-07-23 13_53_28-Window.png (10.01 KiB) Viewed 3520 times
Re: Is TIpClientHttp supposed to work for secured sites?
Posted: Fri Jul 24, 2020 8:16 am
by serge_girard
HMG ide will compile
Serge