FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour HB TIPClientHTTP() Freezes
Posts: 25
Joined: Mon Jan 26, 2015 09:53 AM
HB TIPClientHTTP() Freezes
Posted: Sun Oct 08, 2017 11:03 AM

My program freezes when I execute TIPClientHTTP() function.

oInternet:= TIPClientHTTP():New("http://www.google.com", .f.)

What could It be?

Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: HB TIPClientHTTP() Freezes
Posted: Sun Oct 08, 2017 12:08 PM
This sample doesn't freeze here:

Code (fw): Select all Collapse
#include "Fivewin.ch"


FUNCTION MAIN()

    LOCAL oInternet:= TIPClientHTTP():New("http://www.google.com", .f.)

    ? oInternet

    RETURN NIL


EMG
Posts: 2706
Joined: Fri Oct 07, 2005 01:50 PM
Re: HB TIPClientHTTP() Freezes
Posted: Sun Oct 08, 2017 04:27 PM

sistemasit

When you go to Google.com .. your browser tries to resolve Google as a secure connection https://www.google.com/ ... Depending on your default browser .. using http://www.google.com may not resolve the secure connection ?

Rick Lipkin

Posts: 25
Joined: Mon Jan 26, 2015 09:53 AM
Re: HB TIPClientHTTP() Freezes
Posted: Sun Oct 08, 2017 10:07 PM

I already tried others URLs, happens the same. It freezes

Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: HB TIPClientHTTP() Freezes
Posted: Mon Oct 09, 2017 07:50 AM

Have you tried my sample as is? Does it freeze? If yes, you have a problem in your xHarbour installation or in your http connection (a firewall?).

EMG

Posts: 25
Joined: Mon Jan 26, 2015 09:53 AM
Re: HB TIPClientHTTP() Freezes
Posted: Mon Oct 09, 2017 11:07 AM
Enrico Maria Giordano wrote:Have you tried my sample as is? Does it freeze? If yes, you have a problem in your xHarbour installation or in your http connection (a firewall?).

EMG


I did Enrico. I tried your sample. I also downloaded the latest version of xHarbour. :-)
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: HB TIPClientHTTP() Freezes
Posted: Mon Oct 09, 2017 11:12 AM
sistemasit wrote:
Enrico Maria Giordano wrote:Have you tried my sample as is? Does it freeze? If yes, you have a problem in your xHarbour installation or in your http connection (a firewall?).

EMG


I did Enrico. I tried your sample. I also downloaded the latest version of xHarbour. :-)


Does my sample freeze or not for you?

EMG
Posts: 25
Joined: Mon Jan 26, 2015 09:53 AM
Re: HB TIPClientHTTP() Freezes
Posted: Mon Oct 09, 2017 11:13 AM

yes

Posts: 25
Joined: Mon Jan 26, 2015 09:53 AM
Re: HB TIPClientHTTP() Freezes
Posted: Mon Oct 09, 2017 11:21 AM

my TIP.LIB is may,28-2015

Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: HB TIPClientHTTP() Freezes
Posted: Mon Oct 09, 2017 11:27 AM
sistemasit wrote:my TIP.LIB is may,28-2015


It's very old. Mine is sep,2-2017.

EMG
Posts: 25
Joined: Mon Jan 26, 2015 09:53 AM
Re: HB TIPClientHTTP() Freezes
Posted: Mon Oct 09, 2017 11:38 AM

I am downloading from xHarbour.org, and I get this lib from '2015. Is there any other link?

Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: HB TIPClientHTTP() Freezes
Posted: Mon Oct 09, 2017 11:45 AM
sistemasit wrote:I am downloading from xHarbour.org, and I get this lib from '2015. Is there any other link?


Which package do you have downloaded? I just tried to download this:

http://www.xharbour.org/files/download/windows/xhb10205_bcc730.zip

and got a new tip.lib.

EMG
Posts: 139
Joined: Fri Nov 25, 2005 04:38 PM
Re: HB TIPClientHTTP() Freezes
Posted: Tue Oct 17, 2017 03:08 PM

Tive problemas tambem, então troquei por este:

CursorWait()
cURL := "http://bazevani.com.br/asp/pesquisa.asp?tipo=L&serie=" + _Serie

 oHttp := CreateObject("Microsoft.XMLHTTP")
 oHttp:Open("GET",cURL,.F.)
 lNetError:=.f.
 TRY
   oHttp:Send()
 CATCH oError
   lNetError := .T.
 END TRY
 cHtml := ""
 if !lNetError

    cHtml := oHttp:ResponseBody
 Else
     Msgstop("Erro")
 endif
Ronaldo Minacapelli
Sistemas, Hospedagem e Criação de WebSites
http://www.bazevani.com.br

Continue the discussion